Message ID | f804c22ca168ec3aedb0ee754bfbee71764eb894.1718919473.git.yan@cloudflare.com (mailing list archive) |
---|---|
State | RFC |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | xdp: allow disable GRO per packet by XDP | expand |
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;