aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2007-12-12 14:17:43 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:57:29 -0500
commit5d5d001504b4a415a008f7ac1adb9fbec1637811 (patch)
treec73dd0b4231e29c8586dd75a807901716f7df7e1 /drivers/net/bnx2.h
parent85833c6269016d009ada17b04ac288e2ab9c37ea (diff)
[BNX2]: Restructure RX ring init. code.
Factor out the common functions that will be used to initialize the normal RX rings and the page rings. Change the copybreak constant RX_COPY_THRESH to 128. This same constant will be used for the max. size of the linear SKB when pages are used. Copybreak will be turned off when pages are used. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r--drivers/net/bnx2.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index e6a2153e8b95..8354efc1111d 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -332,6 +332,11 @@ struct l2_fhdr {
332#define BNX2_L2CTX_NX_BDHADDR_LO 0x00000014 332#define BNX2_L2CTX_NX_BDHADDR_LO 0x00000014
333#define BNX2_L2CTX_NX_BDIDX 0x00000018 333#define BNX2_L2CTX_NX_BDIDX 0x00000018
334 334
335#define BNX2_L2CTX_HOST_PG_BDIDX 0x00000044
336#define BNX2_L2CTX_PG_BUF_SIZE 0x00000048
337#define BNX2_L2CTX_RBDC_KEY 0x0000004c
338#define BNX2_L2CTX_NX_PG_BDHADDR_HI 0x00000050
339#define BNX2_L2CTX_NX_PG_BDHADDR_LO 0x00000054
335 340
336/* 341/*
337 * pci_config_l definition 342 * pci_config_l definition
@@ -6336,7 +6341,7 @@ struct l2_fhdr {
6336#define MAX_ETHERNET_PACKET_SIZE 1514 6341#define MAX_ETHERNET_PACKET_SIZE 1514
6337#define MAX_ETHERNET_JUMBO_PACKET_SIZE 9014 6342#define MAX_ETHERNET_JUMBO_PACKET_SIZE 9014
6338 6343
6339#define RX_COPY_THRESH 92 6344#define RX_COPY_THRESH 128
6340 6345
6341#define BNX2_MISC_ENABLE_DEFAULT 0x7ffffff 6346#define BNX2_MISC_ENABLE_DEFAULT 0x7ffffff
6342 6347
@@ -6513,6 +6518,7 @@ struct bnx2 {
6513 u32 rx_offset; 6518 u32 rx_offset;
6514 u32 rx_buf_use_size; /* useable size */ 6519 u32 rx_buf_use_size; /* useable size */
6515 u32 rx_buf_size; /* with alignment */ 6520 u32 rx_buf_size; /* with alignment */
6521 u32 rx_copy_thresh;
6516 u32 rx_max_ring_idx; 6522 u32 rx_max_ring_idx;
6517 6523
6518 u32 rx_prod_bseq; 6524 u32 rx_prod_bseq;