net: dsa: sja1105: stop using priv->vlan_aware
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 22 Sep 2021 18:36:55 +0000 (21:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Sep 2021 11:53:59 +0000 (12:53 +0100)
commit9aad3e4ede9bebda23579f674420123dacb61fda
tree4414fdecb3227a7e01e7bf0d6eeffc008aea7856
parent5146a574606ae6543adeb04471cc4903ee169fb6
net: dsa: sja1105: stop using priv->vlan_aware

Now that the sja1105 driver is finally sane enough again to stop having
a ternary VLAN awareness state, we can remove priv->vlan_aware and query
DSA for the ds->vlan_filtering value (for SJA1105, VLAN filtering is a
global property).

Also drop the paranoid checking that DSA calls ->port_vlan_filtering
multiple times without the VLAN awareness state changing. It doesn't,
the same check is present inside dsa_port_vlan_filtering too.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_main.c
drivers/net/dsa/sja1105/sja1105_vl.c