diff options
author | Faisal Latif <flatif@neteffect.com> | 2008-04-29 16:46:54 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-04-29 16:46:54 -0400 |
commit | 37dab4112d7b53c3574426ef7bdd92a78d32ac3e (patch) | |
tree | c6d8e9e04a35baa6a0669281a923c4aa07542c7e /drivers/infiniband/hw/nes/nes_hw.h | |
parent | b4132efa1a47858d741ecb05b8735e6fcb603bc8 (diff) |
RDMA/nes: Use LRO
Signed-off-by: Faisal Latif <flatif@neteffect.com.
Signed-off-by: Glenn Streiff <gstreiff@neteffect.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_hw.h')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_hw.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/nes/nes_hw.h b/drivers/infiniband/hw/nes/nes_hw.h index 8f36e231bdf5..6a0f94cc9f0c 100644 --- a/drivers/infiniband/hw/nes/nes_hw.h +++ b/drivers/infiniband/hw/nes/nes_hw.h | |||
@@ -33,6 +33,8 @@ | |||
33 | #ifndef __NES_HW_H | 33 | #ifndef __NES_HW_H |
34 | #define __NES_HW_H | 34 | #define __NES_HW_H |
35 | 35 | ||
36 | #include <linux/inet_lro.h> | ||
37 | |||
36 | #define NES_PHY_TYPE_1G 2 | 38 | #define NES_PHY_TYPE_1G 2 |
37 | #define NES_PHY_TYPE_IRIS 3 | 39 | #define NES_PHY_TYPE_IRIS 3 |
38 | #define NES_PHY_TYPE_PUMA_10G 6 | 40 | #define NES_PHY_TYPE_PUMA_10G 6 |
@@ -982,8 +984,10 @@ struct nes_hw_tune_timer { | |||
982 | #define NES_TIMER_INT_LIMIT 2 | 984 | #define NES_TIMER_INT_LIMIT 2 |
983 | #define NES_TIMER_INT_LIMIT_DYNAMIC 10 | 985 | #define NES_TIMER_INT_LIMIT_DYNAMIC 10 |
984 | #define NES_TIMER_ENABLE_LIMIT 4 | 986 | #define NES_TIMER_ENABLE_LIMIT 4 |
985 | #define NES_MAX_LINK_INTERRUPTS 128 | 987 | #define NES_MAX_LINK_INTERRUPTS 128 |
986 | #define NES_MAX_LINK_CHECK 200 | 988 | #define NES_MAX_LINK_CHECK 200 |
989 | #define NES_MAX_LRO_DESCRIPTORS 32 | ||
990 | #define NES_LRO_MAX_AGGR 64 | ||
987 | 991 | ||
988 | struct nes_adapter { | 992 | struct nes_adapter { |
989 | u64 fw_ver; | 993 | u64 fw_ver; |
@@ -1183,6 +1187,9 @@ struct nes_vnic { | |||
1183 | u8 of_device_registered; | 1187 | u8 of_device_registered; |
1184 | u8 rdma_enabled; | 1188 | u8 rdma_enabled; |
1185 | u8 rx_checksum_disabled; | 1189 | u8 rx_checksum_disabled; |
1190 | u32 lro_max_aggr; | ||
1191 | struct net_lro_mgr lro_mgr; | ||
1192 | struct net_lro_desc lro_desc[NES_MAX_LRO_DESCRIPTORS]; | ||
1186 | }; | 1193 | }; |
1187 | 1194 | ||
1188 | struct nes_ib_device { | 1195 | struct nes_ib_device { |