From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Lobakin Date: Fri, 4 Feb 2022 11:22:01 +0100 Subject: [Intel-wired-lan] [PATCH net-next 18/19] iecm: add advanced rss In-Reply-To: References: <20220128001009.721392-1-alan.brady@intel.com> <20220128001009.721392-19-alan.brady@intel.com> <20220128195358.31333-1-alexandr.lobakin@intel.com> Message-ID: <20220204102202.78134-1-alexandr.lobakin@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: intel-wired-lan@osuosl.org List-ID: From: Alan Brady From: Alan Brady Date: Thu, 3 Feb 2022 03:55:57 +0100 > > -----Original Message----- > > From: Lobakin, Alexandr > > Sent: Friday, January 28, 2022 11:54 AM > > To: Brady, Alan > > Cc: Lobakin, Alexandr ; Wang, Haiyue > > ; intel-wired-lan at lists.osuosl.org; Burra, Phani R > > ; Chittim, Madhu ; > > Linga, Pavan Kumar > > Subject: Re: [Intel-wired-lan] [PATCH net-next 18/19] iecm: add advanced > > rss > > > > From: Alan Brady > > Date: Thu, 27 Jan 2022 16:10:08 -0800 > > > > > From: Haiyue Wang > > > > > > Continuing with advanced features this implements what's needed to do > > > advanced rss. > > > > I'm sorry for not mentioned it before, but most of the series' > > commit messages are poor and would probably get rejected upstream. > > If they were explaining at least some very basics, it would be better. Even > > better if there were explanations of some tricky code that happens time to > > time. > > > > > > > > Signed-off-by: Haiyue Wang > > > --- > > > drivers/net/ethernet/intel/iecm/iecm_lib.c | 547 > > ++++++++++++++++++ > > > .../net/ethernet/intel/iecm/iecm_virtchnl.c | 71 +++ > > > drivers/net/ethernet/intel/include/iecm.h | 73 +++ > > > 3 files changed, 691 insertions(+) > > > > > > diff --git a/drivers/net/ethernet/intel/iecm/iecm_lib.c > > > b/drivers/net/ethernet/intel/iecm/iecm_lib.c > > > index d11413cb438c..baa1e312652a 100644 > > > --- a/drivers/net/ethernet/intel/iecm/iecm_lib.c > > > +++ b/drivers/net/ethernet/intel/iecm/iecm_lib.c > > > @@ -1013,6 +1013,52 @@ static void iecm_remove_vlan_filters(struct > > iecm_vport *vport) > > > } > > > } > > > > > > +/** > > > + * iecm_remove_adv_rss_cfgs - Remove all RSS configuration > > > + * @vport: vport structure > > > + */ > > > +static void iecm_remove_adv_rss_cfgs(struct iecm_vport *vport) { > > > + struct iecm_adapter *adapter = vport->adapter; > > > + > > > + if (!iecm_is_cap_ena(adapter, IECM_OTHER_CAPS, > > VIRTCHNL2_CAP_ADV_RSS)) > > > + return; > > > + > > > + if (!list_empty(&adapter->config_data.adv_rss_list)) { > > > + struct iecm_adv_rss *rss; > > > + > > > + spin_lock_bh(&adapter->adv_rss_list_lock); > > > + list_for_each_entry(rss, &adapter- > > >config_data.adv_rss_list, > > > + list) { > > > + rss->remove = true; > > > + } > > > > Redundant braces arond an one-liner. > > > > Maybe will fix. It's a pure error here. > > > > + spin_unlock_bh(&adapter->adv_rss_list_lock); > > > + iecm_send_add_del_adv_rss_cfg_msg(vport, false); > > > + } > > > > Invert the condition for -1 indent level. > > > > Will fix. > > > > +} > > > + > > > +/** > > > + * iecm_del_all_adv_rss_cfgs - delete all RSS configuration --- 8< --- > > > -- > > > 2.33.0 > > > > Thanks, > > Al Al