]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4cd6275013b890fe6a73344a41bfe34e732bb98
tree63bf24413aadbfacd3c6eec33772c3d48b088801
parent0193bd3183dd5685e402cb16c22ac6a20f1b478c
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