lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89iJa+fWdR4jUqeJyhgwHMa5ujZ96WR6jv6iVFUhOXC+jhA@mail.gmail.com>
Date: Sat, 17 May 2025 00:38:32 -0700
From: Eric Dumazet <edumazet@...gle.com>
To: Aurelien Aptel <aaptel@...dia.com>
Cc: linux-nvme@...ts.infradead.org, netdev@...r.kernel.org, sagi@...mberg.me, 
	hch@....de, kbusch@...nel.org, axboe@...com, chaitanyak@...dia.com, 
	davem@...emloft.net, kuba@...nel.org, Boris Pismenny <borisp@...dia.com>, 
	aurelien.aptel@...il.com, smalin@...dia.com, malin1024@...il.com, 
	ogerlitz@...dia.com, yorayz@...dia.com, galshalom@...dia.com, 
	mgurtovoy@...dia.com, tariqt@...dia.com, gus@...labora.com, pabeni@...hat.com, 
	dsahern@...nel.org, ast@...nel.org, jacob.e.keller@...el.com
Subject: Re: [PATCH v28 01/20] net: Introduce direct data placement tcp offload

On Fri, May 16, 2025 at 7:47 AM Aurelien Aptel <aaptel@...dia.com> wrote:
>
> Hi Eric,
>
> We have looked into your suggestions, but both have drawbacks.
>
> The first idea was to make the tailroom small/empty to prevent
> condensing. The issue is that the header is already placed at the skb
> head, and there could be another PDU after the first payload.

What function in the driver puts the headers in skb->head ? Of course
you would need to change it.

Something like this

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
index 5fd70b4d55beb4ed277a5ea896a6859350b72d21..9a87b3bb46c01dc09d729923e705ca6df93f1df1
100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
@@ -553,6 +553,11 @@ mlx5e_copy_skb_header(struct mlx5e_rq *rq, struct
sk_buff *skb,

        dma_sync_single_for_cpu(rq->pdev, addr + dma_offset, len,
                                rq->buff.map_dir);
+
+       if (ddp_mode) {
+               skb_reserve(skb, skb->end - skb->tail);
+               len = headlen;
+       }
        skb_copy_to_linear_data(skb, from, len);
 }

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ