]> git.baikalelectronics.ru Git - kernel.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)
commit46fcc6ad8020565ee1b6548bf465ae77fdcf9ddc
tree4dbb3e4e79f1ce5885b89e336b826b9d28f8e3e5
parentcc7fd162584d7065373bcaaadbfbd6a1bd523add
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