Linux wireless drivers development
 help / color / mirror / Atom feed
From: Luka Gejak <luka.gejak@linux.dev>
To: Ho Jie Feng <hjf3108@gmail.com>
Cc: pkshih@realtek.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH RFT] wifi: rtw88: usb: use a threaded NAPI and GRO for RX
Date: Thu,  3 Dec 2026 16:33:22 +0100	[thread overview]
Message-ID: <20261203153322.41139-1-luka.gejak@linux.dev> (raw)
In-Reply-To: <20261203050057.1768294-1-hjf3108@gmail.com>

Hi Jie Feng,

Thanks for posting this. Two comments below.

On December 3, 2026 1:00:56 PM GMT+08:00, Ho Jie Feng
<hjf3108@gmail.com> wrote:

[ ... ]

> +	while (done < budget) {
>  		rx_skb = skb_dequeue(&rtwusb->rx_queue);
>  		if (!rx_skb)
>  			break;
>
> +		done++;

As far as I can see, done counts completed URBs. With USB RX aggregation
enabled, the inner loop can pass several packets to mac80211 for each
increment, so one poll can process more packets than its budget allows.

Could the poll count packets here and resume a partially processed URB
on the next call?

[ ... ]

>  				rtw_rx_stats(rtwdev, pkt_stat.vif, skb);
>  				memcpy(skb->cb, &rx_status, sizeof(rx_status));
> -				ieee80211_rx_irqsafe(rtwdev->hw, skb);
> +				ieee80211_rx_napi(rtwdev->hw, NULL, skb, napi);

I think this can change the order of RX and TX status in AP mode.
rtw_tx_report_tx_status() still queues the status for a power save poll
response through ieee80211_tx_status_irqsafe(). Before this change, a
later RX frame went behind that status in the same mac80211 queue.

The next power save poll can now reach ieee80211_sta_pspoll() with that
status still pending. If WLAN_STA_SP is still set, mac80211 ignores the
poll. Could we preserve that ordering when moving RX to NAPI?

Best regards,
Luka Gejak

      reply	other threads:[~2026-12-03 15:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  5:00 [PATCH RFT] wifi: rtw88: usb: use a threaded NAPI and GRO for RX Ho Jie Feng
2026-12-03 15:33 ` Luka Gejak [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=20261203153322.41139-1-luka.gejak@linux.dev \
    --to=luka.gejak@linux.dev \
    --cc=hjf3108@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pkshih@realtek.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