]> asedeno.scripts.mit.edu Git - linux.git/commit
net: dsa: sja1105: Move sja1105_change_tpid into sja1105_vlan_filtering
authorVladimir Oltean <olteanv@gmail.com>
Sat, 8 Jun 2019 12:04:30 +0000 (15:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Jun 2019 22:20:39 +0000 (15:20 -0700)
commit070ca3bb95e2cd3add9b521251774ec5dd1c544d
tree4dbb3e4e79f1ce5885b89e336b826b9d28f8e3e5
parentd461933638ae9fa49ad22f60a40de5b3ed414912
net: dsa: sja1105: Move sja1105_change_tpid into sja1105_vlan_filtering

This is a cosmetic patch, pre-cursor to making another change to the
General Parameters Table (incl_srcpt) which does not logically pertain
to the sja1105_change_tpid function name, but not putting it there would
otherwise create a need of resetting the switch twice.

So simply move the existing code into the .port_vlan_filtering callback,
where the incl_srcpt change will be added as well.

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