[PATCH v3] mac80211: Store max_mtu in ieee80211_hw

2019-09-05 Thread Wen Gong
Make it possibly for drivers to adjust the default max_mtu by storing it in the hardware struct. Signed-off-by: Wen Gong --- v2: change to set max_mtu to IEEE80211_MAX_DATA_LEN in alloc_hw v3: change commit log(mat_mtu->max_mtu) include/net/mac80211.h | 3 +++ net/mac80211/iface.c | 2 +-

Re: [PATCH v2] mac80211: Store max_mtu in ieee80211_hw

2019-09-05 Thread Jeff Johnson
On 2019-09-04 01:58, Wen Gong wrote: Make it possibly for drivers to adjust the default mat_mtu nit: mat_mtu => max_mtu ___ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k

Re: [PATCH v4 8/8] ath10k: enable napi on RX path for sdio

2019-09-05 Thread Kalle Valo
Wen Gong writes: >> -Original Message- >> From: ath10k On Behalf Of Wen Gong >> Sent: Monday, September 2, 2019 5:22 PM >> To: ath10k@lists.infradead.org >> Cc: linux-wirel...@vger.kernel.org >> Subject: [EXT] [PATCH v4 8/8] ath10k: enable napi on RX path for sdio >> > Patch v5 sent

Re: [PATCH v4 1/8] ath10k: adjust skb length in ath10k_sdio_mbox_rx_packet

2019-09-05 Thread Kalle Valo
Nicolas Boichat writes: > Kalle: Can you please help prioritize the review and merge of this > patch? This is quite a serious regression (the rest of the series is > performance improvement and probably a little less urgent). Ok, I'll prioritise this (but I have not reviewed it yet). But in

RE: [PATCH v4 8/8] ath10k: enable napi on RX path for sdio

2019-09-05 Thread Wen Gong
> -Original Message- > From: ath10k On Behalf Of Wen Gong > Sent: Monday, September 2, 2019 5:22 PM > To: ath10k@lists.infradead.org > Cc: linux-wirel...@vger.kernel.org > Subject: [EXT] [PATCH v4 8/8] ath10k: enable napi on RX path for sdio > Patch v5 sent with change,

RE: [PATCH v4 7/8] ath10k: enable alt data of TX path for sdio

2019-09-05 Thread Wen Gong
> -Original Message- > From: ath10k On Behalf Of Wen Gong > Sent: Monday, September 2, 2019 5:22 PM > To: ath10k@lists.infradead.org > Cc: linux-wirel...@vger.kernel.org > Subject: [EXT] [PATCH v4 7/8] ath10k: enable alt data of TX path for sdio > Patch v5 sent without change,

RE: [PATCH v4 5/8] ath10k: disable TX complete indication of htt for sdio

2019-09-05 Thread Wen Gong
> -Original Message- > From: ath10k On Behalf Of Wen Gong > Sent: Monday, September 2, 2019 5:22 PM > To: ath10k@lists.infradead.org > Cc: linux-wirel...@vger.kernel.org > Subject: [EXT] [PATCH v4 5/8] ath10k: disable TX complete indication of htt > for sdio > Patch v5 sent without

RE: [PATCH v4 6/8] ath10k: add htt TX bundle for sdio

2019-09-05 Thread Wen Gong
> -Original Message- > From: ath10k On Behalf Of Wen Gong > Sent: Monday, September 2, 2019 5:22 PM > To: ath10k@lists.infradead.org > Cc: linux-wirel...@vger.kernel.org > Subject: [EXT] [PATCH v4 6/8] ath10k: add htt TX bundle for sdio > Patch v5 sent with change,

RE: [PATCH v4 3/8] ath10k: change max RX bundle size from 8 to 32 for sdio

2019-09-05 Thread Wen Gong
> -Original Message- > From: ath10k On Behalf Of Wen Gong > Sent: Monday, September 2, 2019 5:22 PM > To: ath10k@lists.infradead.org > Cc: linux-wirel...@vger.kernel.org > Subject: [EXT] [PATCH v4 3/8] ath10k: change max RX bundle size from 8 to > 32 for sdio > Patch v5 sent without

RE: [PATCH v4 4/8] ath10k: add workqueue for RX path of sdio

2019-09-05 Thread Wen Gong
> -Original Message- > From: ath10k On Behalf Of Wen Gong > Sent: Monday, September 2, 2019 5:22 PM > To: ath10k@lists.infradead.org > Cc: linux-wirel...@vger.kernel.org > Subject: [EXT] [PATCH v4 4/8] ath10k: add workqueue for RX path of sdio > Patch v5 sent without change,

RE: [PATCH v4 2/8] ath10k: enable RX bundle receive for sdio

2019-09-05 Thread Wen Gong
> -Original Message- > From: ath10k On Behalf Of Wen Gong > Sent: Monday, September 2, 2019 5:22 PM > To: ath10k@lists.infradead.org > Cc: linux-wirel...@vger.kernel.org > Subject: [EXT] [PATCH v4 2/8] ath10k: enable RX bundle receive for sdio > Patch v5 sent without change,

RE: [PATCH v4 1/8] ath10k: adjust skb length in ath10k_sdio_mbox_rx_packet

2019-09-05 Thread Wen Gong
> -Original Message- > From: ath10k On Behalf Of Wen Gong > Sent: Monday, September 2, 2019 5:22 PM > To: ath10k@lists.infradead.org > Cc: linux-wirel...@vger.kernel.org > Subject: [EXT] [PATCH v4 1/8] ath10k: adjust skb length in > ath10k_sdio_mbox_rx_packet > Patch v5 sent without

[PATCH v5 6/8] ath10k: add htt TX bundle for sdio

2019-09-05 Thread Wen Gong
The transmission utilization ratio for sdio bus for small packet is slow, because the space and time cost for sdio bus is same for large length packet and small length packet. So the speed of data for large length packet is higher than small length. Test result of different length of data: data

[PATCH v5 4/8] ath10k: add workqueue for RX path of sdio

2019-09-05 Thread Wen Gong
The thread of read rx message by sdio bus from firmware is synchronous, it will cost much time for process the left part of rx message which includes indicate the rx packet to uppper net stack. It will reduce the time of read from sdio. This patch move the indication to a workqueue, it results in

[PATCH v5 1/8] ath10k: adjust skb length in ath10k_sdio_mbox_rx_packet

2019-09-05 Thread Wen Gong
From: Nicolas Boichat When the FW bundles multiple packets, pkt->act_len may be incorrect as it refers to the first packet only (however, the FW will only bundle packets that fit into the same pkt->alloc_len). Before this patch, the skb length would be set (incorrectly) to pkt->act_len in

[PATCH v5 5/8] ath10k: disable TX complete indication of htt for sdio

2019-09-05 Thread Wen Gong
Tx complete message from firmware cost bus bandwidth of sdio, and bus bandwidth is the bollteneck of throughput, it will effect the bandwidth occupancy of data packet of TX and RX. This patch disable TX complete indication from firmware for htt data packet, it results in significant performance

[PATCH v5 7/8] ath10k: enable alt data of TX path for sdio

2019-09-05 Thread Wen Gong
The default credit size is 1792 bytes, but the IP mtu is 1500 bytes, then it has about 290 bytes's waste for each data packet on sdio transfer path for TX bundle, it will reduce the transmission utilization ratio for data packet. This patch enable the small credit size in firmware, firmware will

[PATCH v5 3/8] ath10k: change max RX bundle size from 8 to 32 for sdio

2019-09-05 Thread Wen Gong
The max bundle size support by firmware is 32, change it from 8 to 32 will help performance. This results in significant performance improvement on RX path. Tested with QCA6174 SDIO with firmware WLAN.RMH.4.4.1-7-QCARMSWP-1. Signed-off-by: Wen Gong --- v2: change macro HTC_GET_BUNDLE_COUNT

[PATCH v5 2/8] ath10k: enable RX bundle receive for sdio

2019-09-05 Thread Wen Gong
From: Alagu Sankar The existing implementation of initiating multiple sdio transfers for receive bundling is slowing down the receive speed. Combining the transfers using a bundle method would be ideal. The transmission utilization ratio for sdio bus for small packet is slow, because the space

[PATCH v5 0/8] ath10k: improve throughout of tcp/udp TX/RX of sdio

2019-09-05 Thread Wen Gong
The bottleneck of throughout on sdio chip is the bus bandwidth, to the patches are all to increase the use ratio of sdio bus. udp-rxudp-txtcp-rxtcp-tx without patches(Mbps) 320180 170 151 with patches(Mbps) 450410 400

RE: [PATCH 2/7] ath10k: change max RX bundle size from 8 to 32 for sdio

2019-09-05 Thread Wen Gong
> -Original Message- > From: Dave Taht > Sent: Wednesday, September 4, 2019 9:34 PM > To: Wen Gong > Cc: ath10k@lists.infradead.org; linux-wirel...@vger.kernel.org > Subject: [EXT] Re: [PATCH 2/7] ath10k: change max RX bundle size from 8 to > 32 for sdio > > > Hi Dave, > > So your mean