net: dsa: sja1105: remove debugging code in sja1105_vl_gate
This shouldn't be there.
Fixes: 834f8933d5
("net: dsa: sja1105: implement tc-gate using time-triggered virtual links")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b64ee4856c
commit
5b3b396c77
@ -588,14 +588,10 @@ int sja1105_vl_gate(struct sja1105_private *priv, int port,
|
|||||||
|
|
||||||
if (priv->vlan_state == SJA1105_VLAN_UNAWARE &&
|
if (priv->vlan_state == SJA1105_VLAN_UNAWARE &&
|
||||||
key->type != SJA1105_KEY_VLAN_UNAWARE_VL) {
|
key->type != SJA1105_KEY_VLAN_UNAWARE_VL) {
|
||||||
dev_err(priv->ds->dev, "1: vlan state %d key type %d\n",
|
|
||||||
priv->vlan_state, key->type);
|
|
||||||
NL_SET_ERR_MSG_MOD(extack,
|
NL_SET_ERR_MSG_MOD(extack,
|
||||||
"Can only gate based on DMAC");
|
"Can only gate based on DMAC");
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
} else if (key->type != SJA1105_KEY_VLAN_AWARE_VL) {
|
} else if (key->type != SJA1105_KEY_VLAN_AWARE_VL) {
|
||||||
dev_err(priv->ds->dev, "2: vlan state %d key type %d\n",
|
|
||||||
priv->vlan_state, key->type);
|
|
||||||
NL_SET_ERR_MSG_MOD(extack,
|
NL_SET_ERR_MSG_MOD(extack,
|
||||||
"Can only gate based on {DMAC, VID, PCP}");
|
"Can only gate based on {DMAC, VID, PCP}");
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
|
Loading…
Reference in New Issue
Block a user