virtio_net: Don't print a message on SIOCGIFSTATS.

Fixes #19304, reduces syslog spam.

Change-Id: I219709645d516134f0e4948e662bd90ee00ab183
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8692
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Augustin Cavalier 2024-12-20 11:19:44 -05:00 committed by waddlesplash
parent 01e97ff280
commit 2f7bf3b339

View File

@ -9,7 +9,7 @@
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/ip6.h>
#include <new>
#include <sys/sockio.h>
#include <ethernet.h>
#include <kernel.h>
@ -926,6 +926,9 @@ virtio_net_ioctl(void* cookie, uint32 op, void* buffer, size_t length)
return B_BAD_ADDRESS;
return virtio_net_receive(cookie, (net_buffer**)buffer);
case SIOCGIFSTATS:
break;
default:
ERROR("ioctl: unknown message %" B_PRIx32 "\n", op);
break;