diff options
author | Hangbin Liu <liuhangbin@gmail.com> | 2025-09-10 02:43:34 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-09-15 17:48:42 -0700 |
commit | 35ae4e86292ef7dfe4edbb9942955c884e984352 (patch) | |
tree | b1bdc97f51e5aef172ecbef3e129d754a14866ea /scripts/gdb/linux/vmalloc.py | |
parent | 4351ca3fcb3ffecf12631b4996bf085a2dad0db6 (diff) |
bonding: set random address only when slaves already exist
After commit 5c3bf6cba791 ("bonding: assign random address if device
address is same as bond"), bonding will erroneously randomize the MAC
address of the first interface added to the bond if fail_over_mac =
follow.
Correct this by additionally testing for the bond being empty before
randomizing the MAC.
Fixes: 5c3bf6cba791 ("bonding: assign random address if device address is same as bond")
Reported-by: Qiuling Ren <qren@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://patch.msgid.link/20250910024336.400253-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions