]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Nov 2024 01:02:35 +0000 (02:02 +0100)
commit96d996273dc418318cdbcdde9d5154e4f0691647
tree56af78dbf2c8a963d300a594a71d66637dd08ac6
parentc207a4925d1fd06fac7d1f49f5a9dba5a1095311
octeon_ep: Implement helper for iterating packets in Rx queue

[ Upstream commit bd28df26197b2bd0913bf1b36770836481975143 ]

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>
Stable-dep-of: eb592008f79b ("octeon_ep: Add SKB allocation failures handling in __octep_oq_process_rx()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeon_ep/octep_rx.c