Files
linux/Documentation/networking
Cosmin Ratiu 877e87a450 xfrm: Add explicit dev to .xdo_dev_state_{add,delete,free}
[ Upstream commit 43eca05b6a ]

Previously, device driver IPSec offload implementations would fall into
two categories:
1. Those that used xso.dev to determine the offload device.
2. Those that used xso.real_dev to determine the offload device.

The first category didn't work with bonding while the second did.
In a non-bonding setup the two pointers are the same.

This commit adds explicit pointers for the offload netdevice to
.xdo_dev_state_add() / .xdo_dev_state_delete() / .xdo_dev_state_free()
which eliminates the confusion and allows drivers from the first
category to work with bonding.

xso.real_dev now becomes a private pointer managed by the bonding
driver.

Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Stable-dep-of: fd4e41ebf6 ("bonding: Mark active offloaded xfrm_states")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-19 15:39:43 +02:00
..
2024-12-18 17:27:35 -08:00
2024-11-28 12:08:32 +01:00
2024-05-12 16:51:36 -07:00
2025-03-24 12:20:42 -07:00
2024-12-19 19:12:36 -08:00
2024-12-16 12:47:30 +00:00
2023-12-13 16:16:40 -08:00