From: sashiko-bot@kernel.org
To: "Hamza Mahfooz" <hamzamahfooz@linux.microsoft.com>
Cc: linux-hyperv@vger.kernel.org, linux-rdma@vger.kernel.org,
bpf@vger.kernel.org
Subject: Re: [PATCH net-next v3] net: mana: add BQL support
Date: Wed, 14 Oct 2026 21:49:54 +0000 [thread overview]
Message-ID: <sashiko-outbox-171939@kernel.org> (raw)
In-Reply-To: <20261013214937.145312-1-hamzamahfooz@linux.microsoft.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] mana: unratelimited netdev_warn in __mana_start_xmit causes log spam under XDP load
--
commit a6a9466a25f553494605c439f140071b9b0b7068
Author: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com>
net: mana: add BQL support
MANA doesn't support byte queue limits, so each TX queue can hold 256
WQEs by default, and up to 16384, of up to 64 KB TSO packets, before the
qdisc layer sees any backpressure. This adds latency to all the flows
sharing a queue, and defeats AQM qdiscs such as fq_codel. This patch
adds BQL support by reporting the bytes queued and completed to BQL,
except for XDP_TX and XDP_REDIRECT frames.
> diff --git a/drivers/net/ethernet/microsoft/mana/mana_bpf.c b/drivers/net/ethernet/microsoft/mana/mana_bpf.c
> index 484f061bc75e4..7c55f8724441d 100644
> --- a/drivers/net/ethernet/microsoft/mana/mana_bpf.c
> +++ b/drivers/net/ethernet/microsoft/mana/mana_bpf.c
> @@ -21,7 +21,7 @@ void mana_xdp_tx(struct sk_buff *skb, struct net_device *ndev)
> ndevtxq = netdev_get_tx_queue(ndev, txq_idx);
> __netif_tx_lock(ndevtxq, smp_processor_id());
>
> - rc = mana_start_xmit(skb, ndev);
> + rc = __mana_start_xmit(skb, ndev, true);
[Severity: High]
Does this allow unratelimited log spam under heavy XDP load?
XDP traffic directly calls the transmit path here without checking or
honoring the stopped queue state. If the Send Queue fills up,
__mana_start_xmit() unconditionally calls mana_gd_post_work_request(),
which can return -ENOSPC.
When it fails, __mana_start_xmit() prints an unratelimited warning:
if (err) {
(void)skb_dequeue_tail(&txq->pending_skbs);
mana_unmap_skb(skb, apc);
netdev_warn(ndev, "Failed to post TX OOB: %d\n", err);
goto free_sgl_ptr;
}
If XDP blasts packets into a full queue, could this print for every dropped
packet and cause severe log spew?
> __netif_tx_unlock(ndevtxq);
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261013214937.145312-1-hamzamahfooz@linux.microsoft.com?part=1
prev parent reply other threads:[~2026-10-14 21:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-13 21:49 [PATCH net-next v3] net: mana: add BQL support Hamza Mahfooz
2026-10-14 21:49 ` sashiko-bot [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=sashiko-outbox-171939@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=hamzamahfooz@linux.microsoft.com \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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