net: dsa: tag_8021q: setup tagging via a single function call
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 10 Sep 2020 16:48:55 +0000 (19:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Sep 2020 00:30:43 +0000 (17:30 -0700)
commit7e092af2f3b33694b9117ffd978d42b04ec4f260
tree8553a1560d7292eb7a5c8a7bc03054142db4e644
parent568a36a69bad4f2efcfa4f94c83aa150a463735c
net: dsa: tag_8021q: setup tagging via a single function call

There is no point in calling dsa_port_setup_8021q_tagging for each
individual port. Additionally, it will become more difficult to do that
when we'll have a context structure to tag_8021q (next patch). So
refactor this now.

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_main.c
include/linux/dsa/8021q.h
net/dsa/tag_8021q.c