diff options
author | Nikolay Aleksandrov <razor@blackwall.org> | 2024-08-16 14:48:13 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-08-20 15:29:29 +0200 |
commit | c4c5c5d2ef40a9f67a9241dc5422eac9ffe19547 (patch) | |
tree | 78df452048f436b9c430951ade98c6220e4ccb41 /drivers/net/ethernet/intel/ice/ice_txrx.c | |
parent | f8cde9805981c50d0c029063dc7d82821806fc44 (diff) |
bonding: fix xfrm state handling when clearing active slave
If the active slave is cleared manually the xfrm state is not flushed.
This leads to xfrm add/del imbalance and adding the same state multiple
times. For example when the device cannot handle anymore states we get:
[ 1169.884811] bond0: (slave eni0np1): bond_ipsec_add_sa_all: failed to add SA
because it's filled with the same state after multiple active slave
clearings. This change also has a few nice side effects: user-space
gets a notification for the change, the old device gets its mac address
and promisc/mcast adjusted properly.
Fixes: 18cb261afd7b ("bonding: support hardware encryption offload to slaves")
Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_txrx.c')
0 files changed, 0 insertions, 0 deletions