mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-13 05:54:23 +08:00
mlxsw: spectrum_switchdev: Add support for querying supported bridge flags
Add support for querying supported bridge flags. Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a989cdb473
commit
c7b566cd2e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user