]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab6fdfb95ce8a98aba66b34b18d4268e5a0a12a2
treec9d145a46707d4e577edbfbafb633cc9feb37300
parent129d07d61ff3db1b63e1836cdb32978c0a2c6ab1
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: 577d3caa271d ("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