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] [day] [month] [year] [list]
Message-ID: <CANXQDtYWCH291PE-6vUJJTO4moU23SJnLv4gVrba97CG6UdV8g@mail.gmail.com>
Date: Mon, 24 Nov 2025 23:36:52 +0530
From: Bhargava Chenna Marreddy <bhargava.marreddy@...adcom.com>
To: ALOK TIWARI <alok.a.tiwari@...cle.com>
Cc: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org, 
	pabeni@...hat.com, andrew+netdev@...n.ch, horms@...nel.org, 
	netdev@...r.kernel.org, linux-kernel@...r.kernel.org, 
	michael.chan@...adcom.com, pavan.chebbi@...adcom.com, 
	vsrama-krishna.nemani@...adcom.com, vikas.gupta@...adcom.com, 
	Rajashekar Hudumula <rajashekar.hudumula@...adcom.com>
Subject: Re: [External] : [v2, net-next 07/12] bng_en: Add TPA related functions

On Wed, Nov 19, 2025 at 5:58 PM ALOK TIWARI <alok.a.tiwari@...cle.com> wrote:
>
>
>
> On 11/15/2025 1:22 AM, Bhargava Marreddy wrote:
> > +#define TPA_END_AGG_ID(rx_tpa_end)                                   \
> > +     ((le32_to_cpu((rx_tpa_end)->rx_tpa_end_cmp_misc_v1) &           \
> > +      RX_TPA_END_CMP_AGG_ID) >> RX_TPA_END_CMP_AGG_ID_SHIFT)
> > +
> > +#define TPA_END_TPA_SEGS(rx_tpa_end)                                 \
> > +     ((le32_to_cpu((rx_tpa_end)->rx_tpa_end_cmp_misc_v1) &           \
> > +      RX_TPA_END_CMP_TPA_SEGS) >> RX_TPA_END_CMP_TPA_SEGS_SHIFT)
> > +
> > +#define RX_TPA_END_CMP_FLAGS_PLACEMENT_ANY_GRO                               \
> > +     cpu_to_le32(RX_TPA_END_CMP_FLAGS_PLACEMENT_GRO_JUMBO &          \
> > +                 RX_TPA_END_CMP_FLAGS_PLACEMENT_GRO_HDS)
>
> why ANY_GRO mark with &, how does this match GRO type
> similar code present in bnxt.

AND‐ing GRO_JUMBO and GRO_HDS gives a non-zero result (the GRO bit
overlaps), so ANY_GRO is correct.

Thanks,
Bhargava Marreddy

>
> > +
> > +#define TPA_END_GRO(rx_tpa_end)                                              \
> > +     ((rx_tpa_end)->rx_tpa_end_cmp_len_flags_type &                  \
> > +      RX_TPA_END_CMP_FLAGS_PLACEMENT_ANY_GRO)
> > +
> > +#define TPA_END_GRO_TS(rx_tpa_end)                                   \
> > +     (!!((rx_tpa_end)->rx_tpa_end_cmp_tsdelta &                      \
> > +         cpu_to_le32(RX_TPA_END_GRO_TS)))
> > +
> > +struct rx_tpa_end_cmp_ext {
> > +     __le32 rx_tpa_end_cmp_dup_acks;
> > +     #define RX_TPA_END_CMP_TPA_DUP_ACKS                     (0xf << 0)
> > +     #define RX_TPA_END_CMP_PAYLOAD_OFFSET_P5                (0xff << 16)
> > +      #define RX_TPA_END_CMP_PAYLOAD_OFFSET_SHIFT_P5          16
> > +     #define RX_TPA_END_CMP_AGG_BUFS_P5                      (0xff << 24)
> > +      #define RX_TPA_END_CMP_AGG_BUFS_SHIFT_P5                24
> > +
>
>
> Thanks,
> Alok

Download attachment "smime.p7s" of type "application/pkcs7-signature" (5496 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ