We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36697c5 commit 58a113aCopy full SHA for 58a113a
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c
@@ -323,8 +323,11 @@ struct sk_buff *mlx5e_xsk_skb_from_cqe_linear(struct mlx5e_rq *rq,
323
net_prefetch(mxbuf->xdp.data);
324
325
prog = rcu_dereference(rq->xdp_prog);
326
- if (likely(prog && mlx5e_xdp_handle(rq, prog, mxbuf)))
+ if (likely(prog && mlx5e_xdp_handle(rq, prog, mxbuf))) {
327
+ if (likely(__test_and_clear_bit(MLX5E_RQ_FLAG_XDP_XMIT, rq->flags)))
328
+ wi->flags |= BIT(MLX5E_WQE_FRAG_SKIP_RELEASE);
329
return NULL; /* page/packet was consumed by XDP */
330
+ }
331
332
/* XDP_PASS: copy the data from the UMEM to a new SKB. The frame reuse
333
* will be handled by mlx5e_free_rx_wqe.
0 commit comments