summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
diff options
context:
space:
mode:
authorEric Dumazet2015-11-18 15:30:56 +0100
committerDavid S. Miller2015-11-18 22:17:39 +0100
commit44fb6fbbac23ee304d113ceb5eed45666d8a32f9 (patch)
tree2723e24ade07f1ecfc8c1aff475724b93bb41bd9 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
parentmlx5: add busy polling support (diff)
downloadkernel-qcow2-linux-44fb6fbbac23ee304d113ceb5eed45666d8a32f9.tar.gz
kernel-qcow2-linux-44fb6fbbac23ee304d113ceb5eed45666d8a32f9.tar.xz
kernel-qcow2-linux-44fb6fbbac23ee304d113ceb5eed45666d8a32f9.zip
mlx5: support napi_complete_done()
A NAPI poll handler should return number of RX packets processed, instead of 0 / budget. This allows proper busy poll accounting through LINUX_MIB_BUSYPOLLRXPACKETS SNMP counter. napi_complete_done() allows /sys/class/net/ethX/gro_flush_timeout to be used for finer GRO aggregation control. Tested: Enabled busy polling, and checked TcpExtBusyPollRxPackets counter is increasing. echo 70 >/proc/sys/net/core/busy_read nstat >/dev/null netperf -H target -t TCP_RR >/dev/null nstat | grep TcpExtBusyPollRxPackets TcpExtBusyPollRxPackets 490958 0.0 Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Eli Cohen <eli@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c')
0 files changed, 0 insertions, 0 deletions