]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt: refactor bnxt_rx_pages operate on skb_shared_info
authorAndy Gospodarek <gospo@broadcom.com>
Fri, 8 Apr 2022 07:58:58 +0000 (03:58 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2022 10:52:47 +0000 (11:52 +0100)
commit2ab4bca52b67f0aa19e250aa50d3399cf1817ffb
tree17bfe321ada653dcb14534b961838a6664e519bd
parent4a3b095a68467cb2af1829587e7d99c1360d07ce
bnxt: refactor bnxt_rx_pages operate on skb_shared_info

Rather than operating on an sk_buff, add frags from the aggregation
ring into the frags of an skb_shared_info.  This will allow the
caller to use either an sk_buff or xdp_buff.

Signed-off-by: Andy Gospodarek <gospo@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c