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)
committerJakub Kicinski <kuba@kernel.org>
Wed, 22 Dec 2021 00:54:19 +0000 (16:54 -0800)
commit1c15b05baea71a5ff98235783e3e4ad227760876
treec9d145a46707d4e577edbfbafb633cc9feb37300
parentac8c58f5b535d6272324e2b8b4a0454781c9147e
bonding: fix ad_actor_system option setting to default

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>
Documentation/networking/bonding.rst
drivers/net/bonding/bond_options.c