]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Handle PORT_PRE_BRIDGE_FLAGS
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 21 Feb 2019 00:58:20 +0000 (16:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Feb 2019 22:55:13 +0000 (14:55 -0800)
commit7c2539fcfd398c577e4c8d34fceb5fc377b8bb79
tree14f5e3198b29ed2328b82b85dbb7cf1b3abdfef2
parent9ddc21a695e4143078dcbaa218cde3dafca814ba
mlxsw: spectrum: Handle PORT_PRE_BRIDGE_FLAGS

In preparation for getting rid of switchdev_port_attr_get(), have mlxsw
check for the bridge flags being set through switchdev_port_attr_set()
when the SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS attribute identifier is
used.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c