From: Arkadi Sharshevsky Date: Thu, 8 Jun 2017 06:44:17 +0000 (+0200) Subject: mlxsw: spectrum_switchdev: Add support for querying supported bridge flags X-Git-Tag: Ubuntu-5.0.0-8.9~4590^2~252^2~11 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c7b566cd2e7433785c8879b004940de3793901e1;p=mirror_ubuntu-disco-kernel.git mlxsw: spectrum_switchdev: Add support for querying supported bridge flags Add support for querying supported bridge flags. Signed-off-by: Arkadi Sharshevsky Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c index eb88b721d2f7..033349364a6d 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c @@ -456,6 +456,9 @@ static int mlxsw_sp_port_attr_get(struct net_device *dev, mlxsw_sp_port_bridge_flags_get(mlxsw_sp->bridge, attr->orig_dev, &attr->u.brport_flags); break; + case SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT: + attr->u.brport_flags_support = BR_LEARNING | BR_FLOOD; + break; default: return -EOPNOTSUPP; }