]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: b53: Use vlan_filtering property from dsa_switch
authorVladimir Oltean <olteanv@gmail.com>
Sun, 28 Apr 2019 18:45:53 +0000 (21:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 03:05:29 +0000 (23:05 -0400)
commit277c9868a75159a496c57e94d5811eb814fa8705
tree162e6cfca270431f829a2fe0ae1676a01cad57e2
parent17ce932b457a91a2851942188fa47e6a2ef96f62
net: dsa: b53: Use vlan_filtering property from dsa_switch

While possible (and safe) to use the newly introduced
dsa_port_is_vlan_filtering helper, fabricating a dsa_port pointer is a
bit awkward, so simply retrieve this from the dsa_switch structure.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c
drivers/net/dsa/b53/b53_priv.h