diff options
author | Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> | 2010-11-16 09:07:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-17 14:49:24 -0500 |
commit | 2abea2f0a5ab161facd865356d2e59b23204414e (patch) | |
tree | f6a454279aab26dd0e69e153741ca0c23197820b /drivers/net/qlcnic | |
parent | b382b191ea9e9ccefc437433d23befe91f4a8925 (diff) |
qlcnic: Allow minimum bandwidth of zero
Allow minimum bandwidth to be set zero
Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic')
-rw-r--r-- | drivers/net/qlcnic/qlcnic.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h index 8ecc170c9b7..a6b71fe81d0 100644 --- a/drivers/net/qlcnic/qlcnic.h +++ b/drivers/net/qlcnic/qlcnic.h | |||
@@ -1126,8 +1126,7 @@ struct qlcnic_eswitch { | |||
1126 | /* Return codes for Error handling */ | 1126 | /* Return codes for Error handling */ |
1127 | #define QL_STATUS_INVALID_PARAM -1 | 1127 | #define QL_STATUS_INVALID_PARAM -1 |
1128 | 1128 | ||
1129 | #define MAX_BW 100 | 1129 | #define MAX_BW 100 /* % of link speed */ |
1130 | #define MIN_BW 1 | ||
1131 | #define MAX_VLAN_ID 4095 | 1130 | #define MAX_VLAN_ID 4095 |
1132 | #define MIN_VLAN_ID 2 | 1131 | #define MIN_VLAN_ID 2 |
1133 | #define MAX_TX_QUEUES 1 | 1132 | #define MAX_TX_QUEUES 1 |
@@ -1135,7 +1134,7 @@ struct qlcnic_eswitch { | |||
1135 | #define DEFAULT_MAC_LEARN 1 | 1134 | #define DEFAULT_MAC_LEARN 1 |
1136 | 1135 | ||
1137 | #define IS_VALID_VLAN(vlan) (vlan >= MIN_VLAN_ID && vlan < MAX_VLAN_ID) | 1136 | #define IS_VALID_VLAN(vlan) (vlan >= MIN_VLAN_ID && vlan < MAX_VLAN_ID) |
1138 | #define IS_VALID_BW(bw) (bw >= MIN_BW && bw <= MAX_BW) | 1137 | #define IS_VALID_BW(bw) (bw <= MAX_BW) |
1139 | #define IS_VALID_TX_QUEUES(que) (que > 0 && que <= MAX_TX_QUEUES) | 1138 | #define IS_VALID_TX_QUEUES(que) (que > 0 && que <= MAX_TX_QUEUES) |
1140 | #define IS_VALID_RX_QUEUES(que) (que > 0 && que <= MAX_RX_QUEUES) | 1139 | #define IS_VALID_RX_QUEUES(que) (que > 0 && que <= MAX_RX_QUEUES) |
1141 | 1140 | ||