|
@@ -341,6 +341,7 @@ union db_prod {
|
|
#define SGE_PAGE_SIZE PAGE_SIZE
|
|
#define SGE_PAGE_SIZE PAGE_SIZE
|
|
#define SGE_PAGE_SHIFT PAGE_SHIFT
|
|
#define SGE_PAGE_SHIFT PAGE_SHIFT
|
|
#define SGE_PAGE_ALIGN(addr) PAGE_ALIGN((typeof(PAGE_SIZE))(addr))
|
|
#define SGE_PAGE_ALIGN(addr) PAGE_ALIGN((typeof(PAGE_SIZE))(addr))
|
|
|
|
+#define SGE_PAGES (SGE_PAGE_SIZE * PAGES_PER_SGE)
|
|
|
|
|
|
/* SGE ring related macros */
|
|
/* SGE ring related macros */
|
|
#define NUM_RX_SGE_PAGES 2
|
|
#define NUM_RX_SGE_PAGES 2
|
|
@@ -1210,6 +1211,7 @@ struct bnx2x {
|
|
#define ETH_MAX_JUMBO_PACKET_SIZE 9600
|
|
#define ETH_MAX_JUMBO_PACKET_SIZE 9600
|
|
/* TCP with Timestamp Option (32) + IPv6 (40) */
|
|
/* TCP with Timestamp Option (32) + IPv6 (40) */
|
|
#define ETH_MAX_TPA_HEADER_SIZE 72
|
|
#define ETH_MAX_TPA_HEADER_SIZE 72
|
|
|
|
+#define ETH_MIN_TPA_HEADER_SIZE 40
|
|
|
|
|
|
/* Max supported alignment is 256 (8 shift) */
|
|
/* Max supported alignment is 256 (8 shift) */
|
|
#define BNX2X_RX_ALIGN_SHIFT min(8, L1_CACHE_SHIFT)
|
|
#define BNX2X_RX_ALIGN_SHIFT min(8, L1_CACHE_SHIFT)
|
|
@@ -1329,6 +1331,8 @@ struct bnx2x {
|
|
|
|
|
|
u8 wol;
|
|
u8 wol;
|
|
|
|
|
|
|
|
+ bool gro_check;
|
|
|
|
+
|
|
int rx_ring_size;
|
|
int rx_ring_size;
|
|
|
|
|
|
u16 tx_quick_cons_trip_int;
|
|
u16 tx_quick_cons_trip_int;
|