Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
To: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: intel-wired-lan@lists.osuosl.org
Subject: Re: [Intel-wired-lan] [PATCH net] ice: config netdev tc before setting queues number
Date: Mon, 8 Aug 2022 03:13:06 -0400	[thread overview]
Message-ID: <YvC3gijjHdGLmGQA@localhost.localdomain> (raw)
In-Reply-To: <629564b2-75ac-c495-b252-f0184d534283@molgen.mpg.de>

On Mon, Aug 08, 2022 at 08:48:46AM +0200, Paul Menzel wrote:
> Dear Michal,
> 
> 
> Thank you for your patch.
> 
> Am 08.08.22 um 06:23 schrieb Michal Swiatkowski:
> > After lowering number of tx queues the warning appears:
> > "Number of in use tx queues changed invalidating tc mappings. Priority
> > traff ic classification disabled!"
> 
> A space snuck in in *traffic*.
> 
> It’d be also nice, if you added the command to lower the tx queues to the
> commit message.
> 

Thanks, I will fix and add command in v2.

> > Fix this by setting correct tc mapping before setting real number of
> > queues on netdev.
> > 
> > Fixes: 0754d65bd4be5 ("ice: Add infrastructure for mqprio support via ndo_setup_tc")
> > Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
> > ---
> >   drivers/net/ethernet/intel/ice/ice_main.c | 2 ++
> >   1 file changed, 2 insertions(+)
> > 
> > diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c
> > index d992321e74ba..bb17bcfd2529 100644
> > --- a/drivers/net/ethernet/intel/ice/ice_main.c
> > +++ b/drivers/net/ethernet/intel/ice/ice_main.c
> > @@ -6918,6 +6918,8 @@ int ice_vsi_open(struct ice_vsi *vsi)
> >   	if (err)
> >   		goto err_setup_rx;
> > +	ice_vsi_cfg_netdev_tc(vsi, vsi->tc_cfg.ena_tc);
> > +
> >   	if (vsi->type == ICE_VSI_PF) {
> >   		/* Notify the stack of the actual queue counts. */
> >   		err = netif_set_real_num_tx_queues(vsi->netdev, vsi->num_txq);
> 
> 
> Kind regards,
> 
> Paul
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

      reply	other threads:[~2022-08-08 10:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-08  4:23 [Intel-wired-lan] [PATCH net] ice: config netdev tc before setting queues number Michal Swiatkowski
2022-08-08  6:48 ` Paul Menzel
2022-08-08  7:13   ` Michal Swiatkowski [this message]

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=YvC3gijjHdGLmGQA@localhost.localdomain \
    --to=michal.swiatkowski@linux.intel.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=pmenzel@molgen.mpg.de \
    /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