summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJulian Wiedmann <jwi@linux.ibm.com>2020-03-25 12:34:57 +0300
committerDavid S. Miller <davem@davemloft.net>2020-03-25 22:07:15 +0300
commited13615dd32690ca2a9d1f730a596f950eafd905 (patch)
treebd42e8da429767c02521eefd0abb61fdcc175787 /tools/perf/scripts/python
parent29f3490ba9d2399d3d1b20c4aa74592d92bd4e11 (diff)
downloadlinux-ed13615dd32690ca2a9d1f730a596f950eafd905.tar.xz
s390/qeth: simplify RX buffer tracking
Since RX buffers may contain multiple packets, qeth's NAPI poll code can exhaust its budget in the middle of an RX buffer. Thus we keep track of our current position within the active RX buffer, so we can resume processing here in the next NAPI poll period. Clean up that code by tracking the index of the active buffer element, instead of a pointer to it. Also simplify the code that advances to the next RX buffer when the current buffer has been fully processed. v2: - remove QDIO_ELEMENT_NO() macro (davem) Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions