Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203741
b: refs/heads/master
c: 9963a8b
h: refs/heads/master
i:
  203739: bdf06ad
v: v3
  • Loading branch information
Rajesh Borundia authored and David S. Miller committed Jul 25, 2010
1 parent a8ca17c commit ef97ca4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2a88e7e559f2358f4e1422d0b0c0278a74136581
refs/heads/master: 9963a8bde60f3c139b7683e2ec7e0bf83c0d7581
7 changes: 3 additions & 4 deletions trunk/drivers/net/qlcnic/qlcnic.h
Original file line number Diff line number Diff line change
Expand Up @@ -1074,17 +1074,16 @@ struct qlcnic_eswitch {
/* Return codes for Error handling */
#define QL_STATUS_INVALID_PARAM -1

#define MAX_BW 10000
#define MIN_BW 100
#define MAX_BW 100
#define MIN_BW 1
#define MAX_VLAN_ID 4095
#define MIN_VLAN_ID 2
#define MAX_TX_QUEUES 1
#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_BW(bw) (bw >= MIN_BW && bw <= MAX_BW \
&& (bw % 100) == 0)
#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)
#define IS_VALID_MODE(mode) (mode == 0 || mode == 1)
Expand Down

0 comments on commit ef97ca4

Please sign in to comment.