]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
netpoll: Don't drop all received packets.
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 15 Mar 2014 03:48:28 +0000 (20:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Mar 2014 19:47:22 +0000 (15:47 -0400)
commitb6bacd550c33124ea76291bd84ac42c8d30767eb
tree19a5fb4f432141125a0bbc16254f8e83b57f3645
parentff6076314339e079806d9d2f3de9c9b768e94db1
netpoll: Don't drop all received packets.

Change the strategy of netpoll from dropping all packets received
during netpoll_poll_dev to calling napi poll with a budget of 0
(to avoid processing drivers rx queue), and to ignore packets received
with netif_rx (those will safely be placed on the backlog queue).

All of the netpoll supporting drivers have been reviewed to ensure
either thay use netif_rx or that a budget of 0 is supported by their
napi poll routine and that a budget of 0 will not process the drivers
rx queues.

Not dropping packets makes NETPOLL_RX_DROP unnecesary so it is removed.

npinfo->rx_flags is removed  as rx_flags with just the NETPOLL_RX_ENABLED
flag becomes just a redundant mirror of list_empty(&npinfo->rx_np).

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netpoll.h
net/core/netpoll.c