net: dsa: lantiq: Allow special tags only on CPU port
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 5 May 2019 22:25:06 +0000 (00:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 May 2019 17:34:44 +0000 (10:34 -0700)
commit30d8938384c75e1aad8addf55cb8d152d9d3a135
tree73e1fa73bcc0eee2ae8429fe47198336d1c6405f
parent14cfbdac6680bc87f6b9f6196d4d4ec044a01481
net: dsa: lantiq: Allow special tags only on CPU port

Allow the special tag in ingress only on the CPU port and not on all
ports. A packet with a special tag could circumvent the hardware
forwarding and should only be allowed on the CPU port where Linux
controls the port.

Fixes: 14fceff4771e ("net: dsa: Add Lantiq / Intel DSA driver for vrx200)"
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lantiq_gswip.c