Fix generating skb from non-linear xdp_buff for mlx5
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 4 repliesIn review
- v12 patches 5 repliesSuperseded
Changes in v2 from the cover letter
- Simplify truesize calculation (Tariq)
- Narrow the scope of local variables (Tariq)
- Make truesize adjustment conditional (Tariq)
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net/mlx5e: RX, Fix generating skb from non-linear xdp_buff for legacy RQdrivers/ | +18 | 0 replies | |
| 2/2 | net/mlx5e: RX, Fix generating skb from non-linear xdp_buff for striding RQdrivers/ | +20 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Dragos Tatulea | Tariq Toukan |
|---|---|---|
| Series | R-b | |
| 1/2 | R-b | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net v2 0/2] Fix generating skb from non-linear xdp_buff for mlx5
v1 -> v2
- Simplify truesize calculation (Tariq)
- Narrow the scope of local variables (Tariq)
- Make truesize adjustment conditional (Tariq)
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/[email protected]/
---
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 | 47 +++++++++++++++---- 1 file changed, 38 insertions(+), 9 deletions(-)
Signature · 1 line
2.47.3