From: Sascha Hauer <sha@pengutronix.de>
To: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
Ping-Ke Shih <pkshih@realtek.com>
Subject: Re: [PATCH v2 3/4] wifi: rtw88: usb: Support RX aggregation
Date: Mon, 5 Aug 2024 09:23:46 +0200 [thread overview]
Message-ID: <ZrB-AtNmj2NAv752@pengutronix.de> (raw)
In-Reply-To: <ac43a1bb-d735-43df-b6bf-41c44148c9e2@gmail.com>
On Sat, Aug 03, 2024 at 12:34:20AM +0300, Bitterblue Smith wrote:
> The chips can be configured to aggregate several frames into a single
> USB transfer. Modify rtw_usb_rx_handler() to support this case.
>
> RX aggregation improves the RX speed on certain ARM systems, like the
> NanoPi NEO Core2.
>
> Currently none of the chips are configured to aggregate frames.
>
> Tested with RTL8811CU and RTL8723DU.
>
> Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
> ---
> v2:
> - Simplify the code and make it more readable.
> - Rebase on top of latest rtw-next.
> ---
> drivers/net/wireless/realtek/rtw88/usb.c | 61 ++++++++++++++++--------
> 1 file changed, 40 insertions(+), 21 deletions(-)
>
> diff --git a/drivers/net/wireless/realtek/rtw88/usb.c b/drivers/net/wireless/realtek/rtw88/usb.c
> index 10f1d724370e..4c7ba5c76a57 100644
> --- a/drivers/net/wireless/realtek/rtw88/usb.c
> +++ b/drivers/net/wireless/realtek/rtw88/usb.c
> @@ -546,11 +546,12 @@ static void rtw_usb_rx_handler(struct work_struct *work)
> struct rtw_usb *rtwusb = container_of(work, struct rtw_usb, rx_work);
> struct rtw_dev *rtwdev = rtwusb->rtwdev;
> const struct rtw_chip_info *chip = rtwdev->chip;
> - struct rtw_rx_pkt_stat pkt_stat;
> + u32 pkt_desc_sz = chip->rx_pkt_desc_sz;
> struct ieee80211_rx_status rx_status;
> + u32 pkt_offset, next_pkt, urb_len;
> + struct rtw_rx_pkt_stat pkt_stat;
> + struct sk_buff *next_skb = NULL;
Nit: With the changes in this version initialization to NULL is no
longer necessary.
Otherwise:
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2024-08-05 7:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-02 21:31 [PATCH v2 1/4] wifi: rtw88: usb: Init RX burst length according to USB speed Bitterblue Smith
2024-08-02 21:33 ` [PATCH v2 2/4] wifi: rtw88: usb: Update the RX stats after every frame Bitterblue Smith
2024-08-02 21:34 ` [PATCH v2 3/4] wifi: rtw88: usb: Support RX aggregation Bitterblue Smith
2024-08-05 7:23 ` Sascha Hauer [this message]
2024-08-06 8:37 ` Ping-Ke Shih
2024-08-02 21:35 ` [PATCH v2 4/4] wifi: rtw88: Enable USB RX aggregation for 8822c/8822b/8821c Bitterblue Smith
2024-08-05 7:27 ` [PATCH v2 1/4] wifi: rtw88: usb: Init RX burst length according to USB speed Sascha Hauer
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=ZrB-AtNmj2NAv752@pengutronix.de \
--to=sha@pengutronix.de \
--cc=linux-wireless@vger.kernel.org \
--cc=pkshih@realtek.com \
--cc=rtl8821cerfe2@gmail.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;
as well as URLs for NNTP newsgroup(s).