]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeon_ep: Implement helper for iterating packets in Rx queue
authorAleksandr Mishin <amishin@t-argos.ru>
Thu, 17 Oct 2024 10:06:50 +0000 (13:06 +0300)
committerAndrew Lunn <andrew@lunn.ch>
Sat, 19 Oct 2024 21:20:07 +0000 (16:20 -0500)
commitbd28df26197b2bd0913bf1b36770836481975143
tree3fe4aead891287c9ab1512617a3262c34b82929b
parent4ab3e4983bcc9d9b9dd9720253cb93f44e9e657c
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>
drivers/net/ethernet/marvell/octeon_ep/octep_rx.c