[Intel-wired-lan] [PATCH iwl-next v4 1/3] i40e: move ATR sample rate from ring to PF level

Rinitha, SX sx.rinitha at intel.com
Fri Sep 11 15:23:19 UTC 2026


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of mheib at redhat.com
> Sent: 23 July 2026 19:34
> To: intel-wired-lan at lists.osuosl.org
> Cc: netdev at vger.kernel.org; jiri at resnulli.us; davem at davemloft.net; edumazet at google.com; kuba at kernel.org; pabeni at redhat.com; corbet at lwn.net; Nguyen, Anthony L <anthony.l.nguyen at intel.com>; Kitszel, Przemyslaw <przemyslaw.kitszel at intel.com>; andrew+netdev at lunn.ch; horms at kernel.org; Mohammad Heib <mheib at redhat.com>
> Subject: [Intel-wired-lan] [PATCH iwl-next v4 1/3] i40e: move ATR sample rate from ring to PF level
>
> From: Mohammad Heib <mheib at redhat.com>
>
> The ATR sample rate is currently stored per-ring and initialized when each TX ring is configured. Since the sample rate is a global policy that applies uniformly across all rings, it makes more sense to store it at the PF level.
>
> Move atr_sample_rate from struct i40e_ring to struct i40e_pf and initialize it once during i40e_sw_init(). Update i40e_atr() to reference the PF-level field. Change atr_count from u8 to u32 to match the sample rate type.
>
> Signed-off-by: Mohammad Heib <mheib at redhat.com>
> ---
> drivers/net/ethernet/intel/i40e/i40e.h      | 1 +
> drivers/net/ethernet/intel/i40e/i40e_main.c | 9 +++------  drivers/net/ethernet/intel/i40e/i40e_txrx.c | 6 ++++--  drivers/net/ethernet/intel/i40e/i40e_txrx.h | 3 +--
> 4 files changed, 9 insertions(+), 10 deletions(-)
>

Tested-by: Rinitha S <sx.rinitha at intel.com> (A Contingent worker at Intel)



More information about the Intel-wired-lan mailing list