]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a580b5439d01f61be5c924c76bf07339c369a6f
tree73e1fa73bcc0eee2ae8429fe47198336d1c6405f
parentfc32816bc2db4f68f51b981ee967ee6254fc2b90
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: 82a04c5f5814 ("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