aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/cns3xxx
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-03-10 01:27:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-03-10 01:27:04 +0000
commit446409f43e9bb0157fbac3d3de3b39928f8772b7 (patch)
treead2a48bfc68238501f02020672bdd91a655d1fc8 /target/linux/cns3xxx
parent95431b7843cfee353703e664698fc269f867d45b (diff)
downloadupstream-446409f43e9bb0157fbac3d3de3b39928f8772b7.tar.gz
upstream-446409f43e9bb0157fbac3d3de3b39928f8772b7.tar.bz2
upstream-446409f43e9bb0157fbac3d3de3b39928f8772b7.zip
cns3xxx: reduce buffer allocation size to 2048 bytes, improves ethernet performance
SVN-Revision: 35917
Diffstat (limited to 'target/linux/cns3xxx')
-rw-r--r--target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c b/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c
index 959589dc14..d554c40e7f 100644
--- a/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c
+++ b/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c
@@ -38,7 +38,7 @@
#define RX_BUFFER_ALIGN_MASK (~(RX_BUFFER_ALIGN - 1))
#define SKB_HEAD_ALIGN (((PAGE_SIZE - NET_SKB_PAD) % RX_BUFFER_ALIGN) + NET_SKB_PAD + NET_IP_ALIGN)
-#define RX_SEGMENT_ALLOC_SIZE 4096
+#define RX_SEGMENT_ALLOC_SIZE 2048
#define RX_SEGMENT_BUFSIZE (SKB_WITH_OVERHEAD(RX_SEGMENT_ALLOC_SIZE))
#define RX_SEGMENT_MRU (((RX_SEGMENT_BUFSIZE - SKB_HEAD_ALIGN) & RX_BUFFER_ALIGN_MASK) - NET_IP_ALIGN)
#define MAX_MTU 9500