aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen/netxen_nic.h
diff options
context:
space:
mode:
authorDhananjay Phadke <dhananjay@netxen.com>2009-07-26 16:07:44 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-27 14:15:30 -0400
commit9b08beba2d1bf7e4598deba2800a9ea5e5c3a282 (patch)
tree9074bf9ee63c967e24820a1800bcd9f8b590e5b9 /drivers/net/netxen/netxen_nic.h
parentf17443f4b01659a5c44d5fc6f5c502c39c293959 (diff)
netxen: fix skb alloc size for legacy firmware
Request 1532 bytes skb data size for NX3031. NX2031 firmware needs 1760 sized buffers. Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic.h')
-rw-r--r--drivers/net/netxen/netxen_nic.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h
index b58d0b217424..e7702f603346 100644
--- a/drivers/net/netxen/netxen_nic.h
+++ b/drivers/net/netxen/netxen_nic.h
@@ -143,18 +143,13 @@
143#define NX_ETHERMTU 1500 143#define NX_ETHERMTU 1500
144#define NX_MAX_ETHERHDR 32 /* This contains some padding */ 144#define NX_MAX_ETHERHDR 32 /* This contains some padding */
145 145
146#define NX_RX_NORMAL_BUF_MAX_LEN (NX_MAX_ETHERHDR + NX_ETHERMTU) 146#define NX_P2_RX_BUF_MAX_LEN 1760
147#define NX_P3_RX_BUF_MAX_LEN (NX_MAX_ETHERHDR + NX_ETHERMTU)
147#define NX_P2_RX_JUMBO_BUF_MAX_LEN (NX_MAX_ETHERHDR + P2_MAX_MTU) 148#define NX_P2_RX_JUMBO_BUF_MAX_LEN (NX_MAX_ETHERHDR + P2_MAX_MTU)
148#define NX_P3_RX_JUMBO_BUF_MAX_LEN (NX_MAX_ETHERHDR + P3_MAX_MTU) 149#define NX_P3_RX_JUMBO_BUF_MAX_LEN (NX_MAX_ETHERHDR + P3_MAX_MTU)
149#define NX_CT_DEFAULT_RX_BUF_LEN 2048 150#define NX_CT_DEFAULT_RX_BUF_LEN 2048
150 151
151#define MAX_RX_BUFFER_LENGTH 1760 152#define NX_RX_LRO_BUFFER_LENGTH (8060)
152#define MAX_RX_JUMBO_BUFFER_LENGTH 8062
153#define MAX_RX_LRO_BUFFER_LENGTH (8062)
154#define RX_DMA_MAP_LEN (MAX_RX_BUFFER_LENGTH - 2)
155#define RX_JUMBO_DMA_MAP_LEN \
156 (MAX_RX_JUMBO_BUFFER_LENGTH - 2)
157#define RX_LRO_DMA_MAP_LEN (MAX_RX_LRO_BUFFER_LENGTH - 2)
158 153
159/* 154/*
160 * Maximum number of ring contexts 155 * Maximum number of ring contexts