From: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
To: Michal Schmidt <mschmidt@redhat.com>
Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
pawel.chmielewski@intel.com, sridhar.samudrala@intel.com,
jacob.e.keller@intel.com, pio.raczynski@gmail.com,
konrad.knitter@intel.com, marcin.szycik@intel.com,
wojciech.drewek@intel.com, nex.sw.ncis.nat.hpm.dev@intel.com,
przemyslaw.kitszel@intel.com, jiri@resnulli.us, horms@kernel.org,
David.Laight@aculab.com, pmenzel@molgen.mpg.de
Subject: Re: [Intel-wired-lan] [iwl-next v7 2/9] ice: devlink PF MSI-X max and min parameter
Date: Tue, 12 Nov 2024 09:58:18 +0100 [thread overview]
Message-ID: <ZzMYqp8A59lfnLa9@mev-dev.igk.intel.com> (raw)
In-Reply-To: <CADEbmW2=9s8iGJibWpPnVUraMOr7ecE6Hbpb1n3d9es-aUvA7Q@mail.gmail.com>
On Mon, Nov 11, 2024 at 12:44:11PM +0100, Michal Schmidt wrote:
> On Mon, Nov 4, 2024 at 1:13 PM Michal Swiatkowski
> <michal.swiatkowski@linux.intel.com> wrote:
> >
> > Use generic devlink PF MSI-X parameter to allow user to change MSI-X
> > range.
> >
> > Add notes about this parameters into ice devlink documentation.
> >
> > Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
> > ---
> > Documentation/networking/devlink/ice.rst | 11 +++
> > .../net/ethernet/intel/ice/devlink/devlink.c | 83 ++++++++++++++++++-
> > drivers/net/ethernet/intel/ice/ice.h | 7 ++
> > drivers/net/ethernet/intel/ice/ice_irq.c | 7 ++
> > 4 files changed, 107 insertions(+), 1 deletion(-)
> >
> [...]
> > @@ -1648,6 +1710,7 @@ void ice_devlink_unregister(struct ice_pf *pf)
> > int ice_devlink_register_params(struct ice_pf *pf)
> > {
> > struct devlink *devlink = priv_to_devlink(pf);
> > + union devlink_param_value value;
> > struct ice_hw *hw = &pf->hw;
> > int status;
> >
> > @@ -1656,11 +1719,27 @@ int ice_devlink_register_params(struct ice_pf *pf)
> > if (status)
> > return status;
> >
> > + status = devl_params_register(devlink, ice_dvl_msix_params,
> > + ARRAY_SIZE(ice_dvl_msix_params));
> > + if (status)
> > + return status;
> > +
> > if (hw->func_caps.common_cap.tx_sched_topo_comp_mode_en)
> > status = devl_params_register(devlink, ice_dvl_sched_params,
> > ARRAY_SIZE(ice_dvl_sched_params));
> > + if (status)
> > + return status;
>
> Error handling looks wrong in this function.
> You have to unwind the registration of the params from above or they will leak.
> Sorry I did not notice this earlier.
>
Right, I will send fixed version.
Thanks for reviewing,
Michal
> Michal
>
next prev parent reply other threads:[~2024-11-12 9:01 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-04 12:13 [Intel-wired-lan] [iwl-next v7 0/9] ice: managing MSI-X in driver Michal Swiatkowski
2024-11-04 12:13 ` [Intel-wired-lan] [iwl-next v7 1/9] ice: count combined queues using Rx/Tx count Michal Swiatkowski
2024-11-14 14:03 ` Pucha, HimasekharX Reddy
2024-11-04 12:13 ` [Intel-wired-lan] [iwl-next v7 2/9] ice: devlink PF MSI-X max and min parameter Michal Swiatkowski
2024-11-11 11:44 ` Michal Schmidt
2024-11-12 8:58 ` Michal Swiatkowski [this message]
2024-11-14 14:04 ` Pucha, HimasekharX Reddy
2024-11-04 12:13 ` [Intel-wired-lan] [iwl-next v7 3/9] ice: remove splitting MSI-X between features Michal Swiatkowski
2024-11-14 14:06 ` Pucha, HimasekharX Reddy
2024-11-04 12:13 ` [Intel-wired-lan] [iwl-next v7 4/9] ice: get rid of num_lan_msix field Michal Swiatkowski
2024-11-14 14:08 ` Pucha, HimasekharX Reddy
2024-11-04 12:13 ` [Intel-wired-lan] [iwl-next v7 5/9] ice, irdma: move interrupts code to irdma Michal Swiatkowski
2024-11-13 16:21 ` Lukasz Czapnik
2024-11-14 6:05 ` Michal Swiatkowski
2024-11-04 12:13 ` [Intel-wired-lan] [iwl-next v7 6/9] ice: treat dyn_allowed only as suggestion Michal Swiatkowski
2024-11-14 14:09 ` Pucha, HimasekharX Reddy
2024-11-04 12:13 ` [Intel-wired-lan] [iwl-next v7 7/9] ice: enable_rdma devlink param Michal Swiatkowski
2024-11-04 12:13 ` [Intel-wired-lan] [iwl-next v7 8/9] ice: simplify VF MSI-X managing Michal Swiatkowski
2024-11-13 9:20 ` Romanowski, Rafal
2024-11-04 12:13 ` [Intel-wired-lan] [iwl-next v7 9/9] ice: init flow director before RDMA Michal Swiatkowski
2024-11-14 14:11 ` Pucha, HimasekharX Reddy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZzMYqp8A59lfnLa9@mev-dev.igk.intel.com \
--to=michal.swiatkowski@linux.intel.com \
--cc=David.Laight@aculab.com \
--cc=horms@kernel.org \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jacob.e.keller@intel.com \
--cc=jiri@resnulli.us \
--cc=konrad.knitter@intel.com \
--cc=marcin.szycik@intel.com \
--cc=mschmidt@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=nex.sw.ncis.nat.hpm.dev@intel.com \
--cc=pawel.chmielewski@intel.com \
--cc=pio.raczynski@gmail.com \
--cc=pmenzel@molgen.mpg.de \
--cc=przemyslaw.kitszel@intel.com \
--cc=sridhar.samudrala@intel.com \
--cc=wojciech.drewek@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox