bonding: fix ad_actor_system option setting to default
authorFernando Fernandez Mancera <ffmancera@riseup.net>
Tue, 21 Dec 2021 11:13:45 +0000 (12:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Dec 2021 11:25:57 +0000 (12:25 +0100)
commitc6d2754006c1b75d981dd1b3e4432eaafde81373
tree0705a8a1159c21700cb86c94fb7afc8af6646089
parent6809da5185141e61401da5b01896b79a4deed1ad
bonding: fix ad_actor_system option setting to default

[ Upstream commit 1c15b05baea71a5ff98235783e3e4ad227760876 ]

When 802.3ad bond mode is configured the ad_actor_system option is set to
"00:00:00:00:00:00". But when trying to set the all-zeroes MAC as actors'
system address it was failing with EINVAL.

An all-zeroes ethernet address is valid, only multicast addresses are not
valid values.

Fixes: 171a42c38c6e ("bonding: add netlink support for sys prio, actor sys mac, and port key")
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Acked-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Link: https://lore.kernel.org/r/20211221111345.2462-1-ffmancera@riseup.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/networking/bonding.rst
drivers/net/bonding/bond_options.c