diff options
| author | Cosmin Ratiu <[email protected]> | 2025-04-11 07:49:56 +0000 |
|---|---|---|
| committer | Steffen Klassert <[email protected]> | 2025-04-16 09:01:41 +0000 |
| commit | 43eca05b6a3b917c600e10cc6b06bfa57fa57401 (patch) | |
| tree | 69f22de7f62496144a4a0d638df48cea3638eab8 /net/core/dev_api.c | |
| parent | xfrm: Remove unneeded device check from validate_xmit_xfrm (diff) | |
| download | kernel-43eca05b6a3b917c600e10cc6b06bfa57fa57401.tar.gz kernel-43eca05b6a3b917c600e10cc6b06bfa57fa57401.zip | |
xfrm: Add explicit dev to .xdo_dev_state_{add,delete,free}
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 <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Reviewed-by: Nikolay Aleksandrov <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'net/core/dev_api.c')
0 files changed, 0 insertions, 0 deletions
