Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> wrote: > "iperf3 -c 192.168.0.1 -R --udp -b 0" shows about 40% of datagrams > are lost. Many torrents don't download faster than 3 MiB/s, probably > because the Bittorrent protocol uses UDP. This is somehow related to > the use of skb_clone() in the RX path. > > Don't use skb_clone(). Instead allocate a new skb for each 802.11 frame > received and copy the data from the big (32768 byte) skb. > > With this patch, "iperf3 -c 192.168.0.1 -R --udp -b 0" shows only 1-2% > of datagrams are lost, and torrents can reach download speeds of 36 > MiB/s. > > Tested with RTL8812AU and RTL8822CU. > > Signed-off-by: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> > Acked-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> 3 patch(es) applied to rtw-next branch of rtw.git, thanks. e9048e2935f7 wifi: rtw88: usb: Copy instead of cloning the RX skb 13221be72034 wifi: rtw88: Handle C2H_ADAPTIVITY in rtw_fw_c2h_cmd_handle() 3e3aa566dd18 wifi: rtw88: usb: Preallocate and reuse the RX skbs --- https://github.com/pkshih/rtw.git