Message ID | b7c75daecca9c4e36ef79af683d288653a9b5b82.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/veth.c b/drivers/net/veth.c index 426e68a95067..c799362a839c 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c @@ -703,6 +703,8 @@ static void veth_xdp_rcv_bulk_skb(struct veth_rq *rq, void **frames, stats->rx_drops++; continue; } + + xdp_frame_fixup_skb_offloading(frames[i], skb); napi_gro_receive(&rq->xdp_napi, skb); } } @@ -855,6 +857,8 @@ static struct sk_buff *veth_xdp_rcv_skb(struct veth_rq *rq, metalen = xdp->data - xdp->data_meta; if (metalen) skb_metadata_set(skb, metalen); + + xdp_buff_fixup_skb_offloading(xdp, skb); out: return skb; drop:
Add a common point to transfer offloading info from XDP context to skb. Signed-off-by: Yan Zhai <yan@cloudflare.com> --- drivers/net/veth.c | 4 ++++ 1 file changed, 4 insertions(+)