diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2010-08-19 09:37:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-19 19:44:22 -0400 |
commit | 1395807091300b84789316cad2a9142b58f9092a (patch) | |
tree | a8535c41d2fc735cf4954447e9508039f974cac9 /drivers | |
parent | f5dc442b4671e2961c2e5bb3e16a86ce7da86cd3 (diff) |
ixgbe: bump PS header size to 512 bytes
Bump the header size for packet split to 512 bytes since this makes the
best use of the 1k buffer that is allocated for any skb 512 bytes or
smaller.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ixgbe/ixgbe.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h index 9e15eb93860e..7233fef7e9b8 100644 --- a/drivers/net/ixgbe/ixgbe.h +++ b/drivers/net/ixgbe/ixgbe.h | |||
@@ -69,15 +69,20 @@ | |||
69 | #define IXGBE_MAX_FCPAUSE 0xFFFF | 69 | #define IXGBE_MAX_FCPAUSE 0xFFFF |
70 | 70 | ||
71 | /* Supported Rx Buffer Sizes */ | 71 | /* Supported Rx Buffer Sizes */ |
72 | #define IXGBE_RXBUFFER_64 64 /* Used for packet split */ | 72 | #define IXGBE_RXBUFFER_512 512 /* Used for packet split */ |
73 | #define IXGBE_RXBUFFER_128 128 /* Used for packet split */ | ||
74 | #define IXGBE_RXBUFFER_256 256 /* Used for packet split */ | ||
75 | #define IXGBE_RXBUFFER_2048 2048 | 73 | #define IXGBE_RXBUFFER_2048 2048 |
76 | #define IXGBE_RXBUFFER_4096 4096 | 74 | #define IXGBE_RXBUFFER_4096 4096 |
77 | #define IXGBE_RXBUFFER_8192 8192 | 75 | #define IXGBE_RXBUFFER_8192 8192 |
78 | #define IXGBE_MAX_RXBUFFER 16384 /* largest size for a single descriptor */ | 76 | #define IXGBE_MAX_RXBUFFER 16384 /* largest size for a single descriptor */ |
79 | 77 | ||
80 | #define IXGBE_RX_HDR_SIZE IXGBE_RXBUFFER_256 | 78 | /* |
79 | * NOTE: netdev_alloc_skb reserves up to 64 bytes, NET_IP_ALIGN mans we | ||
80 | * reserve 2 more, and skb_shared_info adds an additional 384 bytes more, | ||
81 | * this adds up to 512 bytes of extra data meaning the smallest allocation | ||
82 | * we could have is 1K. | ||
83 | * i.e. RXBUFFER_512 --> size-1024 slab | ||
84 | */ | ||
85 | #define IXGBE_RX_HDR_SIZE IXGBE_RXBUFFER_512 | ||
81 | 86 | ||
82 | #define MAXIMUM_ETHERNET_VLAN_SIZE (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN) | 87 | #define MAXIMUM_ETHERNET_VLAN_SIZE (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN) |
83 | 88 | ||