mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ratheesh Kannoth <rkannoth@marvell.com>
To: <netdev-bot+sashiko@kernel.org>
Cc: <bpf@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<netdev@vger.kernel.org>, <andrew+netdev@lunn.ch>,
	<ast@kernel.org>, <daniel@iogearbox.net>, <davem@davemloft.net>,
	<edumazet@google.com>, <hawk@kernel.org>,
	<john.fastabend@gmail.com>, <kuba@kernel.org>,
	<pabeni@redhat.com>, <sdf@fomichev.me>, <sgoutham@marvell.com>
Subject: Re: [PATCH v16 net-next 2/2] octeontx2-pf: add mqprio bandwidth offload for NIX TX schedulers
Date: Wed, 23 Sep 2026 07:16:15 +0530	[thread overview]
Message-ID: <arMvZ-N227m8lpCL@rkannoth-OptiPlex-7090> (raw)
In-Reply-To: <179004355373.2160803.6964448826928226346@kernel.org>

On 2026-09-22 at 07:49:13, netdev-bot+sashiko@kernel.org (netdev-bot+sashiko@kernel.org) wrote:
> Thank you for your contribution! Sashiko AI review found 17 potential
> issue(s) to consider.
>
> Critical: 0 · High: 7 · Medium: 9 · Low: 1
>
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
>
> - [High] otx2_mqprio_restart_netdev() manipulates the core-owned
>   __LINK_STATE_START bit directly (clear_bit()/set_bit()) to fake…
> - [High] When otx2_nix_tm_clear_queue_shaper() fails, otx2_mqprio_down()
>   deliberately returns the error and keeps pfvf->mqprio.rate_limit =…
> - [High] otx2_mqprio_netdev_tc_work() reads pfvf->mqprio.rate_limit and
>   pfvf->old_mq_snap before taking rtnl_lock() and never re-validates…
> - [High] Every early validation return in otx2_setup_tc_mqprio()
>   (interface not UP, wrong shaper, no CIR+PIR, SDP rep, PFC enabled, XDP…
> - [High] A successful mqprio replacement is rolled back when
>   NETIF_F_HW_TC is not enabled, which is the default for these devices.
> - [High] Replacing a software mqprio root with an offloaded mqprio
>   succeeds but loses the newly installed traffic-class layout.
> - [High] The new mqprio.netdev_tc_work dereferences pfvf->netdev and
>   pfvf->old_mq_snap and mutates core netdev TC state, but…
> - [Medium] Two changes to code shared by all PF/VF configurations are
>   bundled into this feature patch with no mention in the commit message:…
> - [Medium] The commit message claims failed setup 'rolls back via netdev
>   restart' and the code reports 'mqprio: replace failed; prior…
> - [Medium] otx2_mqprio_max_rate_bytes_ps() derives a maximum *rate*
>   (bytes/s) from the NIX *burst-size* constants MAX_BURST_SIZE (130816…
> - [Medium] The driver reconstructs the core qdisc replace state machine:
>   otx2_mqprio_keep_netdev_tc() strcmp()s…
> - [Medium] otx2_txschq_stop() now zeroes pfvf->hw.txschq_cnt[] on every
>   interface stop, but otx2_get_smq_idx() computes 'idx = qidx %…
> - [Medium] A failed mqprio replacement can leave the surviving old qdisc
>   inconsistent with both the driver's cached state and the programmed…
> - [Medium] pf->refill_wrk (devm_kcalloc'd array of INIT_DELAYED_WORK'd
>   struct refill_work, allocated in otx2_config_nix_queues() from…
> - [Medium] INIT_WORK(&nic->mqprio.netdev_tc_work,
>   otx2_mqprio_netdev_tc_work) is performed in otx2_init_tc(), which runs…
> - [Medium] otx2_nix_tm_set_queue_shaper() programs both MDQ PIR and CIR
>   via otx2_get_txschq_rate_regval(pfvf, rate, 0), and burst == 0 in…
> - [Low] Two new comments describe the hard-coded burst value 65536 in the
>   HTB shaper path as 'the kernel-side default burst when HTB does not…
>
Will address in v17.

pw-bot: changes-requested

      reply	other threads:[~2026-09-23  1:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-18  1:59 [PATCH v16 net-next 0/2] octeontx2: " Ratheesh Kannoth
2026-09-18  1:59 ` [PATCH v16 net-next 1/2] octeontx2: use atomic bitops for PF/VF and rep flags Ratheesh Kannoth
2026-09-22  2:19   ` netdev-bot+sashiko
2026-09-18  1:59 ` [PATCH v16 net-next 2/2] octeontx2-pf: add mqprio bandwidth offload for NIX TX schedulers Ratheesh Kannoth
2026-09-22  2:19   ` netdev-bot+sashiko
2026-09-23  1:46     ` Ratheesh Kannoth [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=arMvZ-N227m8lpCL@rkannoth-OptiPlex-7090 \
    --to=rkannoth@marvell.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hawk@kernel.org \
    --cc=john.fastabend@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sdf@fomichev.me \
    --cc=sgoutham@marvell.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

all inboxes | Powered by JetHome®