BPF List
 help / color / mirror / Atom feed
* [PATCH net v1 0/2] Fix generating skb from non-linear xdp_buff for mlx5
@ 2025-09-10  3:41 Amery Hung
  2025-09-10  3:41 ` [PATCH net v1 1/2] net/mlx5e: RX, Fix generating skb from non-linear xdp_buff for legacy RQ Amery Hung
  2025-09-10  3:41 ` [PATCH net v1 2/2] net/mlx5e: RX, Fix generating skb from non-linear xdp_buff for striding RQ Amery Hung
  0 siblings, 2 replies; 8+ messages in thread
From: Amery Hung @ 2025-09-10  3:41 UTC (permalink / raw)
  To: netdev
  Cc: bpf, andrew+netdev, davem, edumazet, pabeni, kuba, martin.lau,
	noren, dtatulea, saeedm, tariqt, mbloch, cpaasch, ameryhung,
	kernel-team

v1
  - Separate the set from [0] (Dragos)
  - Split legacy RQ and striding RQ fixes (Dragos)
  - Drop conditional truesize and end frag ptr update (Dragos)
  - Fix truesize calculation in striding RQ (Dragos)
  - Fix the always zero headlen passed to __pskb_pull_tail() that
    causes kernel panic (Nimrod)


Hi all,

This patchset, separated from [0], contains fixes to mlx5 when handling
non-linear xdp_buff. The driver currently generates skb based on
information obtained before the XDP program runs, such as the number of
fragments and the size of the linear data. However, the XDP program can
actually change them through bpf_adjust_{head,tail}(). Fix the bugs
bygenerating skb according to xdp_buff after the XDP program runs.


[0] https://lore.kernel.org/bpf/20250905173352.3759457-1-ameryhung@gmail.com/

Amery Hung (2):
  net/mlx5e: RX, Fix generating skb from non-linear xdp_buff for legacy
    RQ
  net/mlx5e: RX, Fix generating skb from non-linear xdp_buff for
    striding RQ

 .../net/ethernet/mellanox/mlx5/core/en_rx.c   | 30 +++++++++++++++++--
 1 file changed, 27 insertions(+), 3 deletions(-)

-- 
2.47.3


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-09-15 20:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-10  3:41 [PATCH net v1 0/2] Fix generating skb from non-linear xdp_buff for mlx5 Amery Hung
2025-09-10  3:41 ` [PATCH net v1 1/2] net/mlx5e: RX, Fix generating skb from non-linear xdp_buff for legacy RQ Amery Hung
2025-09-10 16:23   ` Dragos Tatulea
2025-09-10 16:39     ` Amery Hung
2025-09-11  5:47   ` Tariq Toukan
2025-09-10  3:41 ` [PATCH net v1 2/2] net/mlx5e: RX, Fix generating skb from non-linear xdp_buff for striding RQ Amery Hung
2025-09-11  6:19   ` Tariq Toukan
2025-09-15 20:39     ` Amery Hung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox