]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Add helper function to retrieve VLAN awareness setting
authorVladimir Oltean <olteanv@gmail.com>
Sun, 28 Apr 2019 18:45:49 +0000 (21:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 03:05:29 +0000 (23:05 -0400)
commit2739ec1865f8208f8640c1f40387083410ddd457
treee36dc5253af934d1479e463c489d352d55180d3b
parent0c50b34ba336dec1be2c0f04ef82402039580465
net: dsa: Add helper function to retrieve VLAN awareness setting

Since different types of hardware may or may not support this setting
per-port, DSA keeps it either in dsa_switch or in dsa_port.

While drivers may know the characteristics of their hardware and
retrieve it from the correct place without the need of helpers, it is
cumbersone to find out an unambigous answer from generic DSA code.

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