Changeset 35917


Ignore:
Timestamp:
2013-03-10T02:27:04+01:00 (5 years ago)
Author:
nbd
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c

    r35908 r35917  
    3939 
    4040#define SKB_HEAD_ALIGN (((PAGE_SIZE - NET_SKB_PAD) % RX_BUFFER_ALIGN) + NET_SKB_PAD + NET_IP_ALIGN) 
    41 #define RX_SEGMENT_ALLOC_SIZE 4096 
     41#define RX_SEGMENT_ALLOC_SIZE 2048 
    4242#define RX_SEGMENT_BUFSIZE (SKB_WITH_OVERHEAD(RX_SEGMENT_ALLOC_SIZE)) 
    4343#define RX_SEGMENT_MRU (((RX_SEGMENT_BUFSIZE - SKB_HEAD_ALIGN) & RX_BUFFER_ALIGN_MASK) - NET_IP_ALIGN) 
Note: See TracChangeset for help on using the changeset viewer.