aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorJianbo Liu <[email protected]>2024-08-23 06:10:54 +0300
committerJakub Kicinski <[email protected]>2024-08-27 13:11:37 -0700
commitec13009472f4a756288eb4e18e20a7845da98d10 (patch)
treec1ded8dae4ad7f3ca478c1ce03bffd274290fc3b /scripts/generate_rust_analyzer.py
parent65a3cce43d5b4c53cf16b0be1a03991f665a0806 (diff)
bonding: implement xdo_dev_state_free and call it after deletion
Add this implementation for bonding, so hardware resources can be freed from the active slave after xfrm state is deleted. The netdev used to invoke xdo_dev_state_free callback, is saved in the xfrm state (xs->xso.real_dev), which is also the bond's active slave. To prevent it from being freed, acquire netdev reference before leaving RCU read-side critical section, and release it after callback is done. And call it when deleting all SAs from old active real interface while switching current active slave. Fixes: 9a5605505d9c ("bonding: Add struct bond_ipesc to manage SA") Signed-off-by: Jianbo Liu <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Reviewed-by: Hangbin Liu <[email protected]> Acked-by: Jay Vosburgh <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions