> -----Original Message----- > From: Intel-wired-lan <intel-wired-lan-boun...@osuosl.org> On Behalf Of Ivan > Vecera > Sent: Wednesday, March 27, 2024 1:28 PM > To: intel-wired-...@lists.osuosl.org > Cc: net...@vger.kernel.org; linux-ker...@vger.kernel.org; Loktionov, > Aleksandr <aleksandr.loktio...@intel.com>; eduma...@google.com; Nguyen, > Anthony L <anthony.l.ngu...@intel.com>; k...@kernel.org; pab...@redhat.com; > da...@davemloft.net > Subject: [Intel-wired-lan] [PATCH iwl-next v2 7/7] i40e: Add and use helper > to reconfigure TC for given VSI > > Add helper i40e_vsi_reconfig_tc(vsi) that configures TC for given VSI using > previously stored TC bitmap. > > Effectively replaces open-coded patterns: > > enabled_tc = vsi->tc_config.enabled_tc; > vsi->tc_config.enabled_tc = 0; > i40e_vsi_config_tc(vsi, enabled_tc); > > Reviewed-by: Michal Schmidt <mschm...@redhat.com> > Signed-off-by: Ivan Vecera <ivec...@redhat.com> > --- > drivers/net/ethernet/intel/i40e/i40e_main.c | 31 +++++++++++++++------ > 1 file changed, 23 insertions(+), 8 deletions(-) >
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pu...@intel.com> (A Contingent worker at Intel)