aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorCosmin Ratiu <cratiu@nvidia.com>2025-04-11 10:49:53 +0300
committerSteffen Klassert <steffen.klassert@secunet.com>2025-04-16 11:00:51 +0200
commitd79444e8c3d40b11f5e155e5591d53bd1e512e1f (patch)
treef3033b7d932ae16417a4aac1d3eea0c6842eee8a /scripts/gdb/linux/utils.py
parentxfrm: Remove unnecessary strscpy_pad() size arguments (diff)
downloadwireguard-linux-d79444e8c3d40b11f5e155e5591d53bd1e512e1f.tar.xz
wireguard-linux-d79444e8c3d40b11f5e155e5591d53bd1e512e1f.zip
net/mlx5: Avoid using xso.real_dev unnecessarily
xso.real_dev is the active device of an offloaded xfrm state and is managed by bonding. As such, it's subject to change when states are migrated to a new device. Using it in places other than offloading/unoffloading the states is risky. This commit saves the device into the driver-specific struct mlx5e_ipsec_sa_entry and switches mlx5e_ipsec_init_macs() and mlx5e_ipsec_netevent_event() to make use of it. Additionally, mlx5e_xfrm_update_stats() used xso.real_dev to validate that correct net locks are held. But in a bonding config, the net of the master device is the same as the underlying devices, and the net is already a local var, so use that instead. The only remaining references to xso.real_dev are now in the .xdo_dev_state_add() / .xdo_dev_state_delete() path. 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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions