ionic: refactor skb building
authorShannon Nelson <shannon.nelson@amd.com>
Wed, 6 Mar 2024 23:29:53 +0000 (15:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Mar 2024 11:54:34 +0000 (11:54 +0000)
commit36a47c906b23240b3d7fd0cc3f36d511d5b36700
treeb913cbade0b722e8afd9642bdd21cec2715683a1
parent8599bd4cf30f0e32954ae3915f65db05a0c3d5ea
ionic: refactor skb building

The existing ionic_rx_frags() code is a bit of a mess and can
be cleaned up by unrolling the first frag/header setup from
the loop, then reworking the do-while-loop into a for-loop.  We
rename the function to a more descriptive ionic_rx_build_skb().
We also change a couple of related variable names for readability.

Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_txrx.c