Skip to content
Snippets Groups Projects
Commit 446409f4 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

cns3xxx: reduce buffer allocation size to 2048 bytes, improves ethernet performance

SVN-Revision: 35917
parent 95431b78
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment