net/funeth: Unify skb/XDP packet mapping.
authorDimitris Michailidis <d.michailidis@fungible.com>
Fri, 29 Jul 2022 07:32:56 +0000 (00:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Aug 2022 11:38:57 +0000 (12:38 +0100)
commit1c45b0cd6cf064e21ae1eda027b3e1699e15494d
tree63bf24413aadbfacd3c6eec33772c3d48b088801
parenta3b461bbd1847e02bb83957bbba0a195bc274e7a
net/funeth: Unify skb/XDP packet mapping.

Instead of passing an skb to the mapping function pass an
skb_shared_info plus an additional address/length pair. This makes it
usable for both skbs and XDP. Call it from the XDP path and adjust the
skb path.

Signed-off-by: Dimitris Michailidis <dmichail@fungible.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/fungible/funeth/funeth_tx.c