virtio_net: use netdev_warn_once to output warn when without enough queues
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>
Sat, 18 Sep 2021 06:06:15 +0000 (14:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Sep 2021 11:46:17 +0000 (12:46 +0100)
commit9ce4e3d6d85600153e61c4b8c3c346bd84d84470
tree8b5de1d26d4684fd0b20761bc9a2cb5a8cb63b4b
parentdb9c8e2b1e246fc2dc20828932949437793146cc
virtio_net: use netdev_warn_once to output warn when without enough queues

This warning is output when virtnet does not have enough queues, but it
only needs to be printed once to inform the user of this situation. It
is not necessary to print it every time. If the user loads xdp
frequently, this log appears too much.

Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c