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>
This commit is contained in:
Родитель
b382b191ea
Коммит
2abea2f0a5
|
@ -1126,8 +1126,7 @@ struct qlcnic_eswitch {
|
||||||
/* Return codes for Error handling */
|
/* Return codes for Error handling */
|
||||||
#define QL_STATUS_INVALID_PARAM -1
|
#define QL_STATUS_INVALID_PARAM -1
|
||||||
|
|
||||||
#define MAX_BW 100
|
#define MAX_BW 100 /* % of link speed */
|
||||||
#define MIN_BW 1
|
|
||||||
#define MAX_VLAN_ID 4095
|
#define MAX_VLAN_ID 4095
|
||||||
#define MIN_VLAN_ID 2
|
#define MIN_VLAN_ID 2
|
||||||
#define MAX_TX_QUEUES 1
|
#define MAX_TX_QUEUES 1
|
||||||
|
@ -1135,7 +1134,7 @@ struct qlcnic_eswitch {
|
||||||
#define DEFAULT_MAC_LEARN 1
|
#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_BW(bw) (bw <= MAX_BW)
|
||||||
#define IS_VALID_TX_QUEUES(que) (que > 0 && que <= MAX_TX_QUEUES)
|
#define IS_VALID_TX_QUEUES(que) (que > 0 && que <= MAX_TX_QUEUES)
|
||||||
#define IS_VALID_RX_QUEUES(que) (que > 0 && que <= MAX_RX_QUEUES)
|
#define IS_VALID_RX_QUEUES(que) (que > 0 && que <= MAX_RX_QUEUES)
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче