summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorRobert Hancock <robert.hancock@calian.com>2022-03-05 05:24:37 +0300
committerDavid S. Miller <davem@davemloft.net>2022-03-05 14:12:08 +0300
commit7a7d340ba4d9351e4c8847b898a2b996727a922a (patch)
tree4d42add1ac16e89d49bcc48187456b2bd4a7b011 /tools/perf/scripts/python/syscall-counts.py
parentc409f9b91f7157b8e3de6ddfd10d5a380a26caf4 (diff)
downloadlinux-7a7d340ba4d9351e4c8847b898a2b996727a922a.tar.xz
net: axienet: fix RX ring refill allocation failure handling
If a memory allocation error occurred during an attempt to refill a slot in the RX ring after the packet was received, the hardware tail pointer would still have been updated to point to or past the slot which remained marked as previously completed. This would likely result in the DMA engine raising an error when it eventually tried to use that slot again. If a slot cannot be refilled, then just stop processing and do not move the tail pointer past it. On the next attempt, we should skip receiving the packet from the empty slot and just try to refill it again. This failure mode has not actually been observed, but was found as part of other driver updates. Fixes: 8a3b7a252dca ("drivers/net/ethernet/xilinx: added Xilinx AXI Ethernet driver") Signed-off-by: Robert Hancock <robert.hancock@calian.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions