diff options
author | Hangbin Liu <liuhangbin@gmail.com> | 2025-09-25 02:33:03 +0000 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-09-30 09:55:11 +0200 |
commit | 5b66169f6be4847008c0aea50885ff0632151479 (patch) | |
tree | d2a5396f01bfda081ec8cff997318ffa3c3e14f7 /rust/helpers/vmalloc.c | |
parent | eb11f02f3151e86f41bb15cc47b7400e91c07a4f (diff) |
bonding: fix xfrm offload feature setup on active-backup mode
The active-backup bonding mode supports XFRM ESP offload. However, when
a bond is added using command like `ip link add bond0 type bond mode 1
miimon 100`, the `ethtool -k` command shows that the XFRM ESP offload is
disabled. This occurs because, in bond_newlink(), we change bond link
first and register bond device later. So the XFRM feature update in
bond_option_mode_set() is not called as the bond device is not yet
registered, leading to the offload feature not being set successfully.
To resolve this issue, we can modify the code order in bond_newlink() to
ensure that the bond device is registered first before changing the bond
link parameters. This change will allow the XFRM ESP offload feature to be
correctly enabled.
Fixes: 007ab5345545 ("bonding: fix feature flag setting at init time")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://patch.msgid.link/20250925023304.472186-1-liuhangbin@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions