Revert "i40e: Fix reset bw limit when DCB enabled with 1 TC"
Subsystems (2)
PATCH 1/1 Revert "i40e: Fix reset bw limit when DCB enabled with 1 TC"
Revert of a patch that instead of fixing a AQ error when trying to reset bw limit introduced a several regression related to creation and managing tc. Currently there are errors when creating a tc on both pf and vf.
This reverts commit 3d2504663c41104b4359a15f35670cfa82de1bbf.
--- drivers/net/ethernet/intel/i40e/i40e_main.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_main.c +1 -11
@@ -5372,15 +5372,7 @@ static int i40e_vsi_configure_bw_alloc(struct i40e_vsi *vsi, u8 enabled_tc,/* There is no need to reset BW when mqprio mode is on. */ if (pf->flags &I40E_FLAG_TC_MQPRIO )return 0 ; - -if (!vsi->mqprio_qopt.qopt.hw) { -if (pf->flags &I40E_FLAG_DCB_ENABLED ) - goto skip_reset; - -if (IS_ENABLED (CONFIG_I40E_DCB ) && -i40e_dcb_hw_get_num_tc (&pf->hw) ==1 ) - goto skip_reset; - +if (!vsi->mqprio_qopt.qopt.hw && !(pf->flags &I40E_FLAG_DCB_ENABLED )) { ret =i40e_set_bw_limit (vsi, vsi->seid,0 );if (ret) dev_info(&pf->pdev->dev,
@@ -5388,8 +5380,6 @@ static int i40e_vsi_configure_bw_alloc(struct i40e_vsi *vsi, u8 enabled_tc, vsi->seid);return ret; } - -skip_reset:memset (&bw_data,0 ,sizeof (bw_data)); bw_data.tc_valid_bits = enabled_tc;for (i =0 ; i <I40E_MAX_TRAFFIC_CLASS ; i++)
Signature · 1 line
2.27.0
PATCH 1/1 Revert "i40e: Fix reset bw limit when DCB enabled with 1 TC"
Dear Mateusz,
Am 17.02.22 um 10:45 schrieb Mateusz Palczewski:
Quoted 2 lines
Revert of a patch that instead of fixing a AQ error when trying to reset bw limit introduced a several regression related to
a regression/several regressions?
Quoted 2 lines
creation and managing tc. Currently there are errors when creating a tc on both pf and vf.
Please paste the error.
Quoted 3 lines
This reverts commit
3d2504663c41104b4359a15f35670cfa82de1bbf.Fixes 3d250466 (i40e: Fix reset bw limit when DCB enabled with 1 TC)
checkpatch.pl should have asked you to use the first 12 characters of the hash.
Quoted 27 lines
Signed-off-by Mateusz Palczewski <[email protected]>--- drivers/net/ethernet/intel/i40e/i40e_main.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)drivers/net/ethernet/intel/i40e/i40e_main.c +1
-9@@ -5372,15 +5372,7 @@ static int i40e_vsi_configure_bw_alloc(struct i40e_vsi *vsi, u8 enabled_tc,/* There is no need to reset BW when mqprio mode is on. */ if (pf->flags &I40E_FLAG_TC_MQPRIO )return 0 ; - -if (!vsi->mqprio_qopt.qopt.hw) { -if (pf->flags &I40E_FLAG_DCB_ENABLED ) - goto skip_reset; - -if (IS_ENABLED (CONFIG_I40E_DCB ) && -i40e_dcb_hw_get_num_tc (&pf->hw) ==1 ) - goto skip_reset; - +if (!vsi->mqprio_qopt.qopt.hw && !(pf->flags &I40E_FLAG_DCB_ENABLED )) { ret =i40e_set_bw_limit (vsi, vsi->seid,0 );if (ret) dev_info(&pf->pdev->dev,
drivers/net/ethernet/intel/i40e/i40e_main.c static int i40e_vsi_configure_bw_alloc(struct i40e_vsi *vsi, u8 enabled_tc, · line 5385
Quoted 8 lines
drivers/net/ethernet/intel/i40e/i40e_main.c +0
-2@@ -5388,8 +5380,6 @@ static int i40e_vsi_configure_bw_alloc(struct i40e_vsi *vsi, u8 enabled_tc, vsi->seid);return ret; } - -skip_reset:memset (&bw_data,0 ,sizeof (bw_data)); bw_data.tc_valid_bits = enabled_tc;for (i =0 ; i <I40E_MAX_TRAFFIC_CLASS ; i++)
Rest looks good.
Kind regards,
Paul