selftests: mlxsw: Test FID RIF MAC vetoing
authorPetr Machata <petrm@mellanox.com>
Thu, 13 Dec 2018 11:54:56 +0000 (11:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Dec 2018 02:41:39 +0000 (18:41 -0800)
commit9651ee10ce3bc1e7a71242727711da93441602ac
treec60725fc56879f78da1079fa8dd1495b742256c1
parent555afaae121ada40d10e538e888c6ecf3cd731eb
selftests: mlxsw: Test FID RIF MAC vetoing

When a FID RIF is created for a bridge with IP address, its MAC address
must obey the same requirements as other RIFs. Test that attempts to
change the address incompatibly by attaching a device are vetoed with
extack.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/rtnetlink.sh