• Bryan Whitehead's avatar
    lan743x: fix return value for lan743x_tx_napi_poll · 18dd9bf5
    Bryan Whitehead authored
    [ Upstream commit cc592205 ]
    
    The lan743x driver, when under heavy traffic load, has been noticed
    to sometimes hang, or cause a kernel panic.
    
    Debugging reveals that the TX napi poll routine was returning
    the wrong value, 'weight'. Most other drivers return 0.
    And call napi_complete, instead of napi_complete_done.
    
    Additionally when creating the tx napi poll routine.
    Changed netif_napi_add, to netif_tx_napi_add.
    
    Updates for v3:
        changed 'fixes' tag to match defined format
    
    Updates for v2:
    use napi_complete, instead of napi_complete_done in
        lan743x_tx_napi_poll
    use netif_tx_napi_add, instead of netif_napi_add for
        registration of tx napi poll routine
    
    fixes: 23f0703c ("lan743x: Add main source files for new lan743x driver")
    Signed-off-by: default avatarBryan Whitehead <Bryan.Whitehead@microchip.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    18dd9bf5
lan743x_main.c 82.8 KB