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)
commitca1df2dd8e2f2c18a90d21e59ad56d43c2e9322e
tree17bfe321ada653dcb14534b961838a6664e519bd
parentee536dcbdce4966009b4ea15f03cba045161249a
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