2020-12-18 20:46:51

by Felix Fietkau

[permalink] [raw]
Subject: Re: [PATCH] mt76: mt7915: increase buffer size to receive large MPDUs

On 2020-12-16 18:24, Ryder Lee wrote:
> This improves 5G/HE Rx performance around 70mbps.
>
> Tested-by: Chih-Min Chen <[email protected]>
> Signed-off-by: Ryder Lee <[email protected]>
> ---
> 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