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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMzD94SjV35aPV5tUxKNEfpAk36yjZMQJz63bSnMeshHc8BSBQ@mail.gmail.com>
Date: Thu, 21 Aug 2025 10:14:28 -0400
From: Brian Vazquez <brianvv@...gle.com>
To: "Hay, Joshua A" <joshua.a.hay@...el.com>
Cc: Eric Dumazet <edumazet@...gle.com>, "David S . Miller" <davem@...emloft.net>, 
	Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Simon Horman <horms@...nel.org>, 
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>, "eric.dumazet@...il.com" <eric.dumazet@...il.com>, 
	"Nguyen, Anthony L" <anthony.l.nguyen@...el.com>, 
	"Kitszel, Przemyslaw" <przemyslaw.kitszel@...el.com>, "Keller, Jacob E" <jacob.e.keller@...el.com>, 
	"Chittim, Madhu" <madhu.chittim@...el.com>, 
	"Linga, Pavan Kumar" <pavan.kumar.linga@...el.com>, Willem de Bruijn <willemb@...gle.com>, 
	Andrew Lunn <andrew+netdev@...n.ch>
Subject: Re: [PATCH net-next] idpf: do not linearize big TSO packets

Tested-by: Brian Vazquez <brianvv@...gle.com>


On Wed, Aug 20, 2025 at 12:27 AM Hay, Joshua A <joshua.a.hay@...el.com> wrote:
>
> > From: Eric Dumazet <edumazet@...gle.com>
> >
> > idpf has a limit on number of scatter-gather frags
> > that can be used per segment.
> >
> > Currently, idpf_tx_start() checks if the limit is hit
> > and forces a linearization of the whole packet.
> >
> > This requires high order allocations that can fail
> > under memory pressure. A full size BIG-TCP packet
> > would require order-7 alocation on x86_64 :/
> >
> > We can move the check earlier from idpf_features_check()
> > for TSO packets, to force GSO in this case, removing the
> > cost of a big copy.
> >
> > This means that a linearization will eventually happen
> > with sizes smaller than one MSS.
> >
> > __idpf_chk_linearize() is renamed to idpf_chk_tso_segment()
> > and moved to idpf_lib.c
> >
> > Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> > Cc: Tony Nguyen <anthony.l.nguyen@...el.com>
> > Cc: Przemek Kitszel <przemyslaw.kitszel@...el.com>
> > Cc: Jacob Keller <jacob.e.keller@...el.com>
> > Cc: Madhu Chittim <madhu.chittim@...el.com>
> > Cc: Pavan Kumar Linga <pavan.kumar.linga@...el.com>
> > Cc: Joshua Hay <joshua.a.hay@...el.com>
> > Cc: Brian Vazquez <brianvv@...gle.com>
> > Cc: Willem de Bruijn <willemb@...gle.com>
> > Cc: Andrew Lunn <andrew+netdev@...n.ch>
> > ---
> Reviewed-by: Joshua Hay <joshua.a.hay@...el.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ