kernel_samsung_a53x/drivers/net/bonding
Nikolay Aleksandrov 08a3b787ac bonding: fix xfrm state handling when clearing active slave
[ Upstream commit c4c5c5d2ef40a9f67a9241dc5422eac9ffe19547 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:48 +01:00
..
bond_3ad.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bond_alb.c bonding: return -ENOMEM instead of BUG in alb_upper_dev_walk 2024-11-18 12:13:12 +01:00
bond_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bond_main.c bonding: fix xfrm real_dev null pointer dereference 2024-11-23 23:20:48 +01:00
bond_netlink.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bond_options.c bonding: fix xfrm state handling when clearing active slave 2024-11-23 23:20:48 +01:00
bond_procfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bond_sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bond_sysfs_slave.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bonding_priv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00