From: Sony Chacko Date: Tue, 26 Oct 2010 17:53:09 +0000 (+0000) Subject: qlcnic: define valid vlan id range X-Git-Tag: upstream/snapshot3+hdmi~12461^2~133 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0184bbba1cb535dec2eaacacabe188964fbddd7c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git qlcnic: define valid vlan id range 4095 vlan id is reserved and should not be use. Signed-off-by: Sony Chacko Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller --- diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h index 6400e6a..8ecc170 100644 --- a/drivers/net/qlcnic/qlcnic.h +++ b/drivers/net/qlcnic/qlcnic.h @@ -1134,7 +1134,7 @@ struct qlcnic_eswitch { #define MAX_RX_QUEUES 4 #define DEFAULT_MAC_LEARN 1 -#define IS_VALID_VLAN(vlan) (vlan >= MIN_VLAN_ID && vlan <= MAX_VLAN_ID) +#define IS_VALID_VLAN(vlan) (vlan >= MIN_VLAN_ID && vlan < MAX_VLAN_ID) #define IS_VALID_BW(bw) (bw >= MIN_BW && bw <= MAX_BW) #define IS_VALID_TX_QUEUES(que) (que > 0 && que <= MAX_TX_QUEUES) #define IS_VALID_RX_QUEUES(que) (que > 0 && que <= MAX_RX_QUEUES)