Linux wireless drivers development
 help / color / mirror / Atom feed
From: "Luka Gejak" <luka.gejak@linux.dev>
To: "Ho Jie Feng" <hjf3108@gmail.com>, "Ping-Ke Shih" <pkshih@realtek.com>
Cc: linux-wireless@vger.kernel.org, "Ho Jie Feng" <hjf3108@gmail.com>,
	"Kalle Valo" <kvalo@kernel.org>,
	"Hans Ulli Kroll" <linux@ulli-kroll.de>,
	"neo_jou" <neo_jou@realtek.com>,
	"Sascha Hauer" <s.hauer@pengutronix.de>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH rtw-next v2] wifi: rtw88: usb: don't report the aggregation buffer as a frame
Date: Fri, 30 Oct 2026 15:13:55 +0000	[thread overview]
Message-ID: <3a48ce3d110a35e7b6683ea3228340fbaef445d4@linux.dev> (raw)
In-Reply-To: <20261030034649.300288-1-hjf3108@gmail.com>

Hi Jie Feng,

Thanks for the v2. The fix looks right to me, just one small comment
below.

October 30, 2026 at 4:46 AM, "Ho Jie Feng" <hjf3108@gmail.com> wrote:

> diff --git a/drivers/net/wireless/realtek/rtw88/usb.c b/drivers/net/wireless/realtek/rtw88/usb.c
> index 715a2ce342d92..d6ad0770657d7 100644
> --- a/drivers/net/wireless/realtek/rtw88/usb.c
> +++ b/drivers/net/wireless/realtek/rtw88/usb.c
> @@ -342,6 +342,11 @@ static void rtw_usb_write_port_tx_complete(struct urb *urb)
>
>               skb_pull(skb, rtwdev->chip->tx_pkt_desc_sz);
>
> +             if (tx_data->drv_frame) {
> +                     dev_kfree_skb_any(skb);
> +                     continue;
> +             }
> +

As far as I can see this is the normal TX completion of the aggregate
buffer, so I think dev_consume_skb_any() fits better here.
dev_kfree_skb_any() frees it with SKB_DROP_REASON_NOT_SPECIFIED, so each
aggregated transfer would now show up as a drop in the skb:kfree_skb
tracepoint and in drop monitor.

Before this patch the buffer went through mac80211, which in the usual
case freed it with dev_kfree_skb(), and that is consume_skb().

Best regards,
Luka Gejak

      reply	other threads:[~2026-10-30 15:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30  3:46 [PATCH rtw-next v2] wifi: rtw88: usb: don't report the aggregation buffer as a frame Ho Jie Feng
2026-10-30 15:13 ` 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=3a48ce3d110a35e7b6683ea3228340fbaef445d4@linux.dev \
    --to=luka.gejak@linux.dev \
    --cc=hjf3108@gmail.com \
    --cc=kvalo@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linux@ulli-kroll.de \
    --cc=neo_jou@realtek.com \
    --cc=pkshih@realtek.com \
    --cc=s.hauer@pengutronix.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