diff options
Diffstat (limited to 'drivers/infiniband/hw/nes')
-rw-r--r-- | drivers/infiniband/hw/nes/nes.c | 4 | ||||
-rw-r--r-- | drivers/infiniband/hw/nes/nes.h | 1 | ||||
-rw-r--r-- | drivers/infiniband/hw/nes/nes_hw.c | 6 |
3 files changed, 5 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/nes/nes.c b/drivers/infiniband/hw/nes/nes.c index 9f7364a9096d..a4e9269a29bd 100644 --- a/drivers/infiniband/hw/nes/nes.c +++ b/drivers/infiniband/hw/nes/nes.c | |||
@@ -91,10 +91,6 @@ unsigned int nes_debug_level = 0; | |||
91 | module_param_named(debug_level, nes_debug_level, uint, 0644); | 91 | module_param_named(debug_level, nes_debug_level, uint, 0644); |
92 | MODULE_PARM_DESC(debug_level, "Enable debug output level"); | 92 | MODULE_PARM_DESC(debug_level, "Enable debug output level"); |
93 | 93 | ||
94 | unsigned int nes_lro_max_aggr = NES_LRO_MAX_AGGR; | ||
95 | module_param(nes_lro_max_aggr, int, NES_LRO_MAX_AGGR); | ||
96 | MODULE_PARM_DESC(nes_mro_max_aggr, " nic LRO MAX packet aggregation"); | ||
97 | |||
98 | LIST_HEAD(nes_adapter_list); | 94 | LIST_HEAD(nes_adapter_list); |
99 | static LIST_HEAD(nes_dev_list); | 95 | static LIST_HEAD(nes_dev_list); |
100 | 96 | ||
diff --git a/drivers/infiniband/hw/nes/nes.h b/drivers/infiniband/hw/nes/nes.h index 1f9f7bf73862..61b46e9c7d2d 100644 --- a/drivers/infiniband/hw/nes/nes.h +++ b/drivers/infiniband/hw/nes/nes.h | |||
@@ -173,7 +173,6 @@ extern int disable_mpa_crc; | |||
173 | extern unsigned int send_first; | 173 | extern unsigned int send_first; |
174 | extern unsigned int nes_drv_opt; | 174 | extern unsigned int nes_drv_opt; |
175 | extern unsigned int nes_debug_level; | 175 | extern unsigned int nes_debug_level; |
176 | extern unsigned int nes_lro_max_aggr; | ||
177 | 176 | ||
178 | extern struct list_head nes_adapter_list; | 177 | extern struct list_head nes_adapter_list; |
179 | 178 | ||
diff --git a/drivers/infiniband/hw/nes/nes_hw.c b/drivers/infiniband/hw/nes/nes_hw.c index 8dc70f9bad2f..d3278f111ca7 100644 --- a/drivers/infiniband/hw/nes/nes_hw.c +++ b/drivers/infiniband/hw/nes/nes_hw.c | |||
@@ -42,6 +42,10 @@ | |||
42 | 42 | ||
43 | #include "nes.h" | 43 | #include "nes.h" |
44 | 44 | ||
45 | static unsigned int nes_lro_max_aggr = NES_LRO_MAX_AGGR; | ||
46 | module_param(nes_lro_max_aggr, uint, 0444); | ||
47 | MODULE_PARM_DESC(nes_lro_max_aggr, "NIC LRO max packet aggregation"); | ||
48 | |||
45 | static u32 crit_err_count; | 49 | static u32 crit_err_count; |
46 | u32 int_mod_timer_init; | 50 | u32 int_mod_timer_init; |
47 | u32 int_mod_cq_depth_256; | 51 | u32 int_mod_cq_depth_256; |
@@ -1738,7 +1742,7 @@ int nes_init_nic_qp(struct nes_device *nesdev, struct net_device *netdev) | |||
1738 | jumbomode = 1; | 1742 | jumbomode = 1; |
1739 | nes_nic_init_timer_defaults(nesdev, jumbomode); | 1743 | nes_nic_init_timer_defaults(nesdev, jumbomode); |
1740 | } | 1744 | } |
1741 | nesvnic->lro_mgr.max_aggr = NES_LRO_MAX_AGGR; | 1745 | nesvnic->lro_mgr.max_aggr = nes_lro_max_aggr; |
1742 | nesvnic->lro_mgr.max_desc = NES_MAX_LRO_DESCRIPTORS; | 1746 | nesvnic->lro_mgr.max_desc = NES_MAX_LRO_DESCRIPTORS; |
1743 | nesvnic->lro_mgr.lro_arr = nesvnic->lro_desc; | 1747 | nesvnic->lro_mgr.lro_arr = nesvnic->lro_desc; |
1744 | nesvnic->lro_mgr.get_skb_header = nes_lro_get_skb_hdr; | 1748 | nesvnic->lro_mgr.get_skb_header = nes_lro_get_skb_hdr; |