aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2007-12-12 14:19:35 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:57:31 -0500
commit1db82f2aec0766edd4a4f8d86283e91559350de7 (patch)
tree7f356cec78c596ca2c6143c5c2fdbfeed13fe802 /drivers/net/bnx2.h
parent47bf4246a357d36762c9e7c282d7307152eb92e1 (diff)
[BNX2]: Add fast path code to handle RX pages.
Add function to reuse a page in case of allocation or other errors. Add code to construct the completed SKB with the additional data in the pages. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index 93c2436cb8b9..1f244faf3624 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -259,6 +259,7 @@ struct l2_fhdr {
259 #define L2_FHDR_STATUS_TCP_SEGMENT (1<<14) 259 #define L2_FHDR_STATUS_TCP_SEGMENT (1<<14)
260 #define L2_FHDR_STATUS_UDP_DATAGRAM (1<<15) 260 #define L2_FHDR_STATUS_UDP_DATAGRAM (1<<15)
261 261
262 #define L2_FHDR_STATUS_SPLIT (1<<16)
262 #define L2_FHDR_ERRORS_BAD_CRC (1<<17) 263 #define L2_FHDR_ERRORS_BAD_CRC (1<<17)
263 #define L2_FHDR_ERRORS_PHY_DECODE (1<<18) 264 #define L2_FHDR_ERRORS_PHY_DECODE (1<<18)
264 #define L2_FHDR_ERRORS_ALIGNMENT (1<<19) 265 #define L2_FHDR_ERRORS_ALIGNMENT (1<<19)
@@ -6537,6 +6538,7 @@ struct bnx2 {
6537 u32 rx_buf_use_size; /* useable size */ 6538 u32 rx_buf_use_size; /* useable size */
6538 u32 rx_buf_size; /* with alignment */ 6539 u32 rx_buf_size; /* with alignment */
6539 u32 rx_copy_thresh; 6540 u32 rx_copy_thresh;
6541 u32 rx_jumbo_thresh;
6540 u32 rx_max_ring_idx; 6542 u32 rx_max_ring_idx;
6541 u32 rx_max_pg_ring_idx; 6543 u32 rx_max_pg_ring_idx;
6542 6544