Add a common point to transfer offloading info from XDP context to skb. Signed-off-by: Yan Zhai <yan@xxxxxxxxxxxxxx> Signed-off-by: Jesper Dangaard Brouer <hawk@xxxxxxxxxx> --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index 7dc00c0d8992..0036c4752f0d 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -2252,6 +2252,10 @@ static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, } } } + + if (xdp_active) + xdp_buff_fixup_skb_offloading(&xdp, skb); + bnxt_deliver_skb(bp, bnapi, skb); rc = 1; -- 2.30.2