summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/dsa_loop.h
diff options
context:
space:
mode:
authorAleksandr Mishin <amishin@t-argos.ru>2024-10-17 13:06:50 +0300
committerAndrew Lunn <andrew@lunn.ch>2024-10-19 16:20:07 -0500
commitbd28df26197b2bd0913bf1b36770836481975143 (patch)
tree3fe4aead891287c9ab1512617a3262c34b82929b /drivers/net/dsa/dsa_loop.h
parent4ab3e4983bcc9d9b9dd9720253cb93f44e9e657c (diff)
octeon_ep: Implement helper for iterating packets in Rx queue
The common code with some packet and index manipulations is extracted and moved to newly implemented helper to make the code more readable and avoid duplication. This is a preparation for skb allocation failure handling. Found by Linux Verification Center (linuxtesting.org) with SVACE. Suggested-by: Simon Horman <horms@kernel.org> Suggested-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.h')
0 files changed, 0 insertions, 0 deletions