summaryrefslogtreecommitdiffstats
path: root/net/dsa/switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dsa/switch.c')
-rw-r--r--net/dsa/switch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/dsa/switch.c b/net/dsa/switch.c
index 489eb7b430a4..6a9607518823 100644
--- a/net/dsa/switch.c
+++ b/net/dsa/switch.c
@@ -232,7 +232,7 @@ static bool dsa_switch_vlan_match(struct dsa_switch *ds, int port,
232 if (ds->index == info->sw_index && port == info->port) 232 if (ds->index == info->sw_index && port == info->port)
233 return true; 233 return true;
234 234
235 if (dsa_is_cpu_port(ds, port) || dsa_is_dsa_port(ds, port)) 235 if (dsa_is_dsa_port(ds, port))
236 return true; 236 return true;
237 237
238 return false; 238 return false;
@@ -288,6 +288,9 @@ static int dsa_switch_vlan_del(struct dsa_switch *ds,
288 if (ds->index == info->sw_index) 288 if (ds->index == info->sw_index)
289 return ds->ops->port_vlan_del(ds, info->port, info->vlan); 289 return ds->ops->port_vlan_del(ds, info->port, info->vlan);
290 290
291 /* Do not deprogram the DSA links as they may be used as conduit
292 * for other VLAN members in the fabric.
293 */
291 return 0; 294 return 0;
292} 295}
293 296