]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: Stop calling switchdev_port_attr_get()
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 21 Feb 2019 00:58:24 +0000 (16:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Feb 2019 22:55:14 +0000 (14:55 -0800)
commit7f1469a73ae69ef51ff3257631dacc139dd3a31c
tree6076808f1930f89db190ebad17be26b438e951e7
parentf241268d64252bfa0d02485eea6922215571e476
net: bridge: Stop calling switchdev_port_attr_get()

Now that all switchdev drivers have been converted to check the
SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS flags and report flags that they
do not support accordingly, we can migrate the bridge code to try to set
that attribute first, check the results and then do the actual setting.

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>
net/bridge/br_switchdev.c