File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3167,8 +3167,7 @@ static int sja1105_setup(struct dsa_switch *ds)
3167
3167
ds -> vlan_filtering_is_global = true;
3168
3168
ds -> untag_bridge_pvid = true;
3169
3169
ds -> fdb_isolation = true;
3170
- /* tag_8021q has 3 bits for the VBID, and the value 0 is reserved */
3171
- ds -> max_num_bridges = 7 ;
3170
+ ds -> max_num_bridges = DSA_TAG_8021Q_MAX_NUM_BRIDGES ;
3172
3171
3173
3172
/* Advertise the 8 egress queues */
3174
3173
ds -> num_tx_queues = SJA1105_NUM_TC ;
Original file line number Diff line number Diff line change 8
8
#include <net/dsa.h>
9
9
#include <linux/types.h>
10
10
11
+ /* VBID is limited to three bits only and zero is reserved.
12
+ * Only 7 bridges can be enumerated.
13
+ */
14
+ #define DSA_TAG_8021Q_MAX_NUM_BRIDGES 7
15
+
11
16
int dsa_tag_8021q_register (struct dsa_switch * ds , __be16 proto );
12
17
13
18
void dsa_tag_8021q_unregister (struct dsa_switch * ds );
You can’t perform that action at this time.
0 commit comments