diff mbox series

mt76: mt7915: increase buffer size to receive large MPDUs

Message ID 00af8edba9bad0e3635ca6024fcf56b3bcd407f8.1608139125.git.ryder.lee@mediatek.com (mailing list archive)
State New, archived
Headers show
Series mt76: mt7915: increase buffer size to receive large MPDUs | expand

Commit Message

Ryder Lee Dec. 16, 2020, 5:24 p.m. UTC
This improves 5G/HE Rx performance around 70mbps.

Tested-by: Chih-Min Chen <chih-min.chen@mediatek.com>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
---
 drivers/net/wireless/mediatek/mt76/mt7915/dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Felix Fietkau Dec. 18, 2020, 6:48 p.m. UTC | #1
On 2020-12-16 18:24, Ryder Lee wrote:
> This improves 5G/HE Rx performance around 70mbps.
> 
> Tested-by: Chih-Min Chen <chih-min.chen@mediatek.com>
> Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
> ---
>  drivers/net/wireless/mediatek/mt76/mt7915/dma.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/dma.c b/drivers/net/wireless/mediatek/mt76/mt7915/dma.c
> index 8c1f9c77b14f..a8c783be297f 100644
> --- a/drivers/net/wireless/mediatek/mt76/mt7915/dma.c
> +++ b/drivers/net/wireless/mediatek/mt76/mt7915/dma.c
> @@ -203,7 +203,7 @@ int mt7915_dma_init(struct mt7915_dev *dev)
>  {
>  	/* Increase buffer size to receive large VHT/HE MPDUs */
>  	struct mt76_bus_ops *bus_ops;
> -	int rx_buf_size = MT_RX_BUF_SIZE * 2;
> +	int rx_buf_size = MT_RX_BUF_SIZE * 4;
This will not be needed after adding rx decapsulation offload.

- Felix
diff mbox series

Patch

diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/dma.c b/drivers/net/wireless/mediatek/mt76/mt7915/dma.c
index 8c1f9c77b14f..a8c783be297f 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/dma.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/dma.c
@@ -203,7 +203,7 @@  int mt7915_dma_init(struct mt7915_dev *dev)
 {
 	/* Increase buffer size to receive large VHT/HE MPDUs */
 	struct mt76_bus_ops *bus_ops;
-	int rx_buf_size = MT_RX_BUF_SIZE * 2;
+	int rx_buf_size = MT_RX_BUF_SIZE * 4;
 	int ret;
 
 	dev->bus_ops = dev->mt76.bus;