diff options
author | Jan-Bernd Themann <themann@de.ibm.com> | 2007-09-25 19:16:34 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:47:47 -0400 |
commit | d4dc4ec9d84e0578b9bfbe56a11fafdb7cbac771 (patch) | |
tree | 03813a60023b75752ebcb8b3217018d472b21c86 /drivers/net/ehea/ehea.h | |
parent | 71c87e0cedca843162206c698cfa02e5fea9e2e3 (diff) |
[EHEA]: Use LRO.
Signed-off-by: Jan-Bernd Themann <themann@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ehea/ehea.h')
-rw-r--r-- | drivers/net/ehea/ehea.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ehea/ehea.h b/drivers/net/ehea/ehea.h index a154681165b9..c0cbd949e336 100644 --- a/drivers/net/ehea/ehea.h +++ b/drivers/net/ehea/ehea.h | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <linux/ethtool.h> | 33 | #include <linux/ethtool.h> |
34 | #include <linux/vmalloc.h> | 34 | #include <linux/vmalloc.h> |
35 | #include <linux/if_vlan.h> | 35 | #include <linux/if_vlan.h> |
36 | #include <linux/inet_lro.h> | ||
36 | 37 | ||
37 | #include <asm/ibmebus.h> | 38 | #include <asm/ibmebus.h> |
38 | #include <asm/abs_addr.h> | 39 | #include <asm/abs_addr.h> |
@@ -58,6 +59,7 @@ | |||
58 | 59 | ||
59 | #define EHEA_SMALL_QUEUES | 60 | #define EHEA_SMALL_QUEUES |
60 | #define EHEA_NUM_TX_QP 1 | 61 | #define EHEA_NUM_TX_QP 1 |
62 | #define EHEA_LRO_MAX_AGGR 64 | ||
61 | 63 | ||
62 | #ifdef EHEA_SMALL_QUEUES | 64 | #ifdef EHEA_SMALL_QUEUES |
63 | #define EHEA_MAX_CQE_COUNT 1023 | 65 | #define EHEA_MAX_CQE_COUNT 1023 |
@@ -84,6 +86,8 @@ | |||
84 | #define EHEA_RQ2_PKT_SIZE 1522 | 86 | #define EHEA_RQ2_PKT_SIZE 1522 |
85 | #define EHEA_L_PKT_SIZE 256 /* low latency */ | 87 | #define EHEA_L_PKT_SIZE 256 /* low latency */ |
86 | 88 | ||
89 | #define MAX_LRO_DESCRIPTORS 8 | ||
90 | |||
87 | /* Send completion signaling */ | 91 | /* Send completion signaling */ |
88 | 92 | ||
89 | /* Protection Domain Identifier */ | 93 | /* Protection Domain Identifier */ |
@@ -376,6 +380,8 @@ struct ehea_port_res { | |||
376 | u64 tx_packets; | 380 | u64 tx_packets; |
377 | u64 rx_packets; | 381 | u64 rx_packets; |
378 | u32 poll_counter; | 382 | u32 poll_counter; |
383 | struct net_lro_mgr lro_mgr; | ||
384 | struct net_lro_desc lro_desc[MAX_LRO_DESCRIPTORS]; | ||
379 | }; | 385 | }; |
380 | 386 | ||
381 | 387 | ||
@@ -429,6 +435,7 @@ struct ehea_port { | |||
429 | u32 msg_enable; | 435 | u32 msg_enable; |
430 | u32 sig_comp_iv; | 436 | u32 sig_comp_iv; |
431 | u32 state; | 437 | u32 state; |
438 | u32 lro_max_aggr; | ||
432 | u8 phy_link; | 439 | u8 phy_link; |
433 | u8 full_duplex; | 440 | u8 full_duplex; |
434 | u8 autoneg; | 441 | u8 autoneg; |