diff options
| author | Eric Dumazet <[email protected]> | 2015-11-18 06:30:56 -0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-11-18 16:17:39 -0500 |
| commit | 44fb6fbbac23ee304d113ceb5eed45666d8a32f9 (patch) | |
| tree | 2723e24ade07f1ecfc8c1aff475724b93bb41bd9 /tools/perf/scripts/python | |
| parent | 7ae92ae588c9f78006c106bb3398d50274c5d7de (diff) | |
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 <[email protected]>
Cc: Eli Cohen <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions