• Eric W. Biederman's avatar
    netpoll: Don't drop all received packets. · b6bacd55
    Eric W. Biederman authored
    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: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b6bacd55
netpoll.c 30.8 KB