We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 023d2a4 commit 7b12469Copy full SHA for 7b12469
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c
@@ -67,14 +67,20 @@ static void mlx5e_ipsec_handle_sw_limits(struct work_struct *_work)
67
return;
68
69
spin_lock_bh(&x->lock);
70
- xfrm_state_check_expire(x);
71
if (x->km.state == XFRM_STATE_EXPIRED) {
72
sa_entry->attrs.drop = true;
73
spin_unlock_bh(&x->lock);
74
75
mlx5e_accel_ipsec_fs_modify(sa_entry);
76
77
}
+
78
+ if (x->km.state != XFRM_STATE_VALID) {
79
+ spin_unlock_bh(&x->lock);
80
+ return;
81
+ }
82
83
+ xfrm_state_check_expire(x);
84
85
86
queue_delayed_work(sa_entry->ipsec->wq, &dwork->dwork,
0 commit comments