diff options
author | Petr Machata | 2018-12-13 12:54:52 +0100 |
---|---|---|
committer | David S. Miller | 2018-12-14 03:41:39 +0100 |
commit | 74bc99397438352bf063329bf22c7a7b4f7e8220 (patch) | |
tree | 2047343ba379bf436a16e6aa30f3825686e7a112 /.gitattributes | |
parent | mlxsw: spectrum: Add mlxsw_sp.mac_mask (diff) | |
download | kernel-qcow2-linux-74bc99397438352bf063329bf22c7a7b4f7e8220.tar.gz kernel-qcow2-linux-74bc99397438352bf063329bf22c7a7b4f7e8220.tar.xz kernel-qcow2-linux-74bc99397438352bf063329bf22c7a7b4f7e8220.zip |
mlxsw: spectrum_router: Veto unsupported RIF MAC addresses
On NETDEV_PRE_CHANGEADDR, if the change is related to a RIF interface,
verify that it satisfies the criterion that all RIF interfaces have the
same MAC address prefix, as indicated by mlxsw_sp.mac_mask.
Additionally, besides explicit address changes, check that the address
of an interface for which a RIF is about to be added matches the
required pattern as well.
Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions