netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tariq Toukan <ttoukan.linux@gmail.com>
To: Amery Hung <ameryhung@gmail.com>, netdev@vger.kernel.org
Cc: bpf@vger.kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net,
	edumazet@google.com, pabeni@redhat.com, kuba@kernel.org,
	martin.lau@kernel.org, noren@nvidia.com, dtatulea@nvidia.com,
	saeedm@nvidia.com, tariqt@nvidia.com, mbloch@nvidia.com,
	cpaasch@openai.com, kernel-team@meta.com
Subject: Re: [PATCH net v2 0/2] Fix generating skb from non-linear xdp_buff for mlx5
Date: Sun, 21 Sep 2025 14:24:53 +0300	[thread overview]
Message-ID: <0eb722b9-bad9-43b4-a8a7-6f91f926e9f5@gmail.com> (raw)
In-Reply-To: <b67f9d89-72e0-4c6d-b89b-87ac5443ba2e@gmail.com>



On 16/09/2025 16:52, Tariq Toukan wrote:
> 
> 
> On 16/09/2025 1:58, Amery Hung wrote:
>> 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)
>>
>>    Link: https://lore.kernel.org/bpf/20250910034103.650342-1- 
>> ameryhung@gmail.com/
>>
>> ---
>>
>> 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   | 47 +++++++++++++++----
>>   1 file changed, 38 insertions(+), 9 deletions(-)
>>
> 
> Thanks for your patches.
> They LGTM.
> 
> As these are touching a sensitive area, I am taking them into internal 
> functional and perf testing.
> I'll update with results once completed.
> 

Initial testing passed.
Thanks for your patches.

Reviewed-by: Tariq Toukan <tariqt@nvidia.com>


  reply	other threads:[~2025-09-21 11:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-15 22:58 [PATCH net v2 0/2] Fix generating skb from non-linear xdp_buff for mlx5 Amery Hung
2025-09-15 22:58 ` [PATCH net v2 1/2] net/mlx5e: RX, Fix generating skb from non-linear xdp_buff for legacy RQ Amery Hung
2025-09-15 22:58 ` [PATCH net v2 2/2] net/mlx5e: RX, Fix generating skb from non-linear xdp_buff for striding RQ Amery Hung
2025-09-16 13:52 ` [PATCH net v2 0/2] Fix generating skb from non-linear xdp_buff for mlx5 Tariq Toukan
2025-09-21 11:24   ` Tariq Toukan [this message]
2025-09-22 17:51     ` Amery Hung
2025-09-22 18:03     ` Jakub Kicinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0eb722b9-bad9-43b4-a8a7-6f91f926e9f5@gmail.com \
    --to=ttoukan.linux@gmail.com \
    --cc=ameryhung@gmail.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=bpf@vger.kernel.org \
    --cc=cpaasch@openai.com \
    --cc=davem@davemloft.net \
    --cc=dtatulea@nvidia.com \
    --cc=edumazet@google.com \
    --cc=kernel-team@meta.com \
    --cc=kuba@kernel.org \
    --cc=martin.lau@kernel.org \
    --cc=mbloch@nvidia.com \
    --cc=netdev@vger.kernel.org \
    --cc=noren@nvidia.com \
    --cc=pabeni@redhat.com \
    --cc=saeedm@nvidia.com \
    --cc=tariqt@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).