[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>
This commit is contained in:
committed by
David S. Miller
parent
47bf4246a3
commit
1db82f2aec
@@ -259,6 +259,7 @@ struct l2_fhdr {
|
||||
#define L2_FHDR_STATUS_TCP_SEGMENT (1<<14)
|
||||
#define L2_FHDR_STATUS_UDP_DATAGRAM (1<<15)
|
||||
|
||||
#define L2_FHDR_STATUS_SPLIT (1<<16)
|
||||
#define L2_FHDR_ERRORS_BAD_CRC (1<<17)
|
||||
#define L2_FHDR_ERRORS_PHY_DECODE (1<<18)
|
||||
#define L2_FHDR_ERRORS_ALIGNMENT (1<<19)
|
||||
@@ -6537,6 +6538,7 @@ struct bnx2 {
|
||||
u32 rx_buf_use_size; /* useable size */
|
||||
u32 rx_buf_size; /* with alignment */
|
||||
u32 rx_copy_thresh;
|
||||
u32 rx_jumbo_thresh;
|
||||
u32 rx_max_ring_idx;
|
||||
u32 rx_max_pg_ring_idx;
|
||||
|
||||
|
Reference in New Issue
Block a user