Commit bd28df26 authored by Aleksandr Mishin's avatar Aleksandr Mishin Committed by Andrew Lunn
Browse files

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: default avatarSimon Horman <horms@kernel.org>
Suggested-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarAleksandr Mishin <amishin@t-argos.ru>
Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
parent 4ab3e498
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment