[Intel-wired-lan] [PATCH net v1] i40e: Fix reset bw limit when DCB enabled with 1 TC
Hassan Reza Biswas, Imam
imam.hassan.reza.biswas at intel.com
Thu Jan 20 13:31:20 UTC 2022
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Jagielski, Jedrzej
> Sent: Tuesday, December 14, 2021 3:38 PM
> To: intel-wired-lan at lists.osuosl.org
> Cc: Dziedziuch, SylwesterX <sylwesterx.dziedziuch at intel.com>; Jagielski,
> Jedrzej <jedrzej.jagielski at intel.com>
> Subject: [Intel-wired-lan] [PATCH net v1] i40e: Fix reset bw limit when DCB
> enabled with 1 TC
>
> There was an AQ error I40E_AQ_RC_EINVAL when trying to reset bw limit as
> part of bw allocation setup.
> This was caused by trying to reset bw limit with DCB enabled. Bw limit should
> not be reset when DCB is enabled. The code was relying on the pf->flags to
> check if DCB is enabled but if only 1 TC is available this flag will not be set
> even though DCB is enabled.
> Add a check for number of TC and if it is 1 don't try to reset bw limit even if
> pf->flags shows DCB as disabled.
>
> Fixes: fa38e30ac73f ("i40e: Fix for Tx timeouts when interface is brought up if
> DCB is enabled")
> Suggested-by: Alexander Lobakin <alexandr.lobakin at intel.com> # Flatten
> the condition
> Signed-off-by: Sylwester Dziedziuch <sylwesterx.dziedziuch at intel.com>
> Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski at intel.com>
> Reviewed-by: Alexander Lobakin <alexandr.lobakin at intel.com>
> ---
> drivers/net/ethernet/intel/i40e/i40e_main.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
Tested-by: Imam Hassan Reza Biswas (imam.hassan.reza.biswas at intel.com)
More information about the Intel-wired-lan
mailing list