net: bonding: Give bond_set_dev_addr() a return value
authorPetr Machata <petrm@mellanox.com>
Thu, 13 Dec 2018 11:54:44 +0000 (11:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Dec 2018 02:41:39 +0000 (18:41 -0800)
commitb9245914282c3ddf86e60ff5dbb3136c2298f842
tree7326651339c3a661db4f7064d83c093d9c586808
parent61345fab484b97cca47149c90396c74ac76072f5
net: bonding: Give bond_set_dev_addr() a return value

Before NETDEV_CHANGEADDR, bond driver should emit NETDEV_PRE_CHANGEADDR,
and allow consumers to veto the address change. To propagate further the
return code from NETDEV_PRE_CHANGEADDR, give the function that
implements address change a return value.

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>
drivers/net/bonding/bond_main.c