diff options
author | Aleksandr Mishin <amishin@t-argos.ru> | 2024-10-17 13:06:50 +0300 |
---|---|---|
committer | Andrew Lunn <andrew@lunn.ch> | 2024-10-19 16:20:07 -0500 |
commit | bd28df26197b2bd0913bf1b36770836481975143 (patch) | |
tree | 3fe4aead891287c9ab1512617a3262c34b82929b /drivers/net/dsa | |
parent | 4ab3e4983bcc9d9b9dd9720253cb93f44e9e657c (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')
0 files changed, 0 insertions, 0 deletions