net: dsa: Store vlan_filtering as a property of dsa_port
authorVladimir Oltean <olteanv@gmail.com>
Sun, 28 Apr 2019 18:45:43 +0000 (21:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 03:05:28 +0000 (23:05 -0400)
commit33162e9a0590f16e1b21be764caae517e2bb310c
tree92868bb5ede7bb5a76b650d19eab0f6e3bae915a
parent85478d73c911e3991c14c6d88b91b77455d2722d
net: dsa: Store vlan_filtering as a property of dsa_port

This allows drivers to query the VLAN setting imposed by the bridge
driver directly from DSA, instead of keeping their own state based on
the .port_vlan_filtering callback.

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>
include/net/dsa.h
net/dsa/port.c