diff options
author | Sony Chacko <sony.chacko@qlogic.com> | 2010-10-26 13:53:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-27 15:21:54 -0400 |
commit | 0184bbba1cb535dec2eaacacabe188964fbddd7c (patch) | |
tree | c54b43e9ec17a925f536a5dfec876dc7371db1bf /drivers/net/qlcnic | |
parent | 90d190055589b35986c2ff3f56e2f47613b9a67f (diff) |
qlcnic: define valid vlan id range
4095 vlan id is reserved and should not be use.
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')
-rw-r--r-- | drivers/net/qlcnic/qlcnic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h index 6400e6a6d7ea..8ecc170c9b74 100644 --- a/drivers/net/qlcnic/qlcnic.h +++ b/drivers/net/qlcnic/qlcnic.h | |||
@@ -1134,7 +1134,7 @@ struct qlcnic_eswitch { | |||
1134 | #define MAX_RX_QUEUES 4 | 1134 | #define MAX_RX_QUEUES 4 |
1135 | #define DEFAULT_MAC_LEARN 1 | 1135 | #define DEFAULT_MAC_LEARN 1 |
1136 | 1136 | ||
1137 | #define IS_VALID_VLAN(vlan) (vlan >= MIN_VLAN_ID && vlan <= MAX_VLAN_ID) | 1137 | #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) | 1138 | #define IS_VALID_BW(bw) (bw >= MIN_BW && bw <= MAX_BW) |
1139 | #define IS_VALID_TX_QUEUES(que) (que > 0 && que <= MAX_TX_QUEUES) | 1139 | #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) | 1140 | #define IS_VALID_RX_QUEUES(que) (que > 0 && que <= MAX_RX_QUEUES) |