]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
MIPS: lantiq: dma: increase descritor count
authorAleksander Jan Bajkowski <olek2@wp.pl>
Tue, 4 Jan 2022 15:11:42 +0000 (16:11 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 6 Jan 2022 01:18:03 +0000 (17:18 -0800)
NAT Performance results on BT Home Hub 5A (kernel 5.10.89, mtu 1500):

Down Up
Before 539 Mbps 599 Mbps
After 545 Mbps 625 Mbps

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
arch/mips/include/asm/mach-lantiq/xway/xway_dma.h

index 31ca9151b539d545c5acecad9c571f5eb329a236..3dee15c61c8ab19e806407e5be2adcbafb0150bf 100644 (file)
@@ -8,7 +8,7 @@
 #define LTQ_DMA_H__
 
 #define LTQ_DESC_SIZE          0x08    /* each descriptor is 64bit */
-#define LTQ_DESC_NUM           0x40    /* 64 descriptors / channel */
+#define LTQ_DESC_NUM           0xC0    /* 192 descriptors / channel */
 
 #define LTQ_DMA_OWN            BIT(31) /* owner bit */
 #define LTQ_DMA_C              BIT(30) /* complete bit */