net/mlx5e: Removed not need synchronize_rcu
authorAviad Yehezkel <aviadye@mellanox.com>
Mon, 29 Jan 2018 11:09:12 +0000 (13:09 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 7 Mar 2018 06:06:09 +0000 (22:06 -0800)
This is already done by xfrm layer between state_dev_del callback
to state_dev_free callback.

Signed-off-by: Aviad Yehezkel <aviadye@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c

index 710521181143442ceccaf114ce405f896a2e4f1c..1b49afca65c0b36621681109461df45f1231348a 100644 (file)
@@ -100,8 +100,8 @@ static void mlx5e_ipsec_sadb_rx_free(struct mlx5e_ipsec_sa_entry *sa_entry)
 {
        struct mlx5e_ipsec *ipsec = sa_entry->ipsec;
 
-       /* Wait for the hash_del_rcu call in sadb_rx_del to affect data path */
-       synchronize_rcu();
+       /* xfrm already doing sync rcu between del and free callbacks */
+
        ida_simple_remove(&ipsec->halloc, sa_entry->handle);
 }