diff options
author | Sony Chacko <sony.chacko@qlogic.com> | 2010-10-26 13:53:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-27 15:21:54 -0400 |
commit | 90d190055589b35986c2ff3f56e2f47613b9a67f (patch) | |
tree | ac6fb50686a870aa6d2aa6aa9e6d0ccb67781a2e /drivers/net/qlcnic/qlcnic.h | |
parent | e5edb7b19fd207f78adfdf4d9d5e1dd74a7eabd3 (diff) |
qlcnic: reduce rx ring size
If eswitch is enabled, rcv ring size can be reduce, as
physical port is partition-ed.
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic.h')
-rw-r--r-- | drivers/net/qlcnic/qlcnic.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h index a60ff17eafd8..6400e6a6d7ea 100644 --- a/drivers/net/qlcnic/qlcnic.h +++ b/drivers/net/qlcnic/qlcnic.h | |||
@@ -146,11 +146,13 @@ | |||
146 | #define MAX_CMD_DESCRIPTORS 1024 | 146 | #define MAX_CMD_DESCRIPTORS 1024 |
147 | #define MAX_RCV_DESCRIPTORS_1G 4096 | 147 | #define MAX_RCV_DESCRIPTORS_1G 4096 |
148 | #define MAX_RCV_DESCRIPTORS_10G 8192 | 148 | #define MAX_RCV_DESCRIPTORS_10G 8192 |
149 | #define MAX_RCV_DESCRIPTORS_VF 2048 | ||
149 | #define MAX_JUMBO_RCV_DESCRIPTORS_1G 512 | 150 | #define MAX_JUMBO_RCV_DESCRIPTORS_1G 512 |
150 | #define MAX_JUMBO_RCV_DESCRIPTORS_10G 1024 | 151 | #define MAX_JUMBO_RCV_DESCRIPTORS_10G 1024 |
151 | 152 | ||
152 | #define DEFAULT_RCV_DESCRIPTORS_1G 2048 | 153 | #define DEFAULT_RCV_DESCRIPTORS_1G 2048 |
153 | #define DEFAULT_RCV_DESCRIPTORS_10G 4096 | 154 | #define DEFAULT_RCV_DESCRIPTORS_10G 4096 |
155 | #define DEFAULT_RCV_DESCRIPTORS_VF 1024 | ||
154 | #define MAX_RDS_RINGS 2 | 156 | #define MAX_RDS_RINGS 2 |
155 | 157 | ||
156 | #define get_next_index(index, length) \ | 158 | #define get_next_index(index, length) \ |
@@ -971,6 +973,8 @@ struct qlcnic_adapter { | |||
971 | u16 num_txd; | 973 | u16 num_txd; |
972 | u16 num_rxd; | 974 | u16 num_rxd; |
973 | u16 num_jumbo_rxd; | 975 | u16 num_jumbo_rxd; |
976 | u16 max_rxd; | ||
977 | u16 max_jumbo_rxd; | ||
974 | 978 | ||
975 | u8 max_rds_rings; | 979 | u8 max_rds_rings; |
976 | u8 max_sds_rings; | 980 | u8 max_sds_rings; |