hash_init(ipsec->sadb_rx);
        spin_lock_init(&ipsec->sadb_rx_lock);
-       ida_init(&ipsec->halloc);
        ipsec->en_priv = priv;
        ipsec->no_trailer = !!(mlx5_accel_ipsec_device_caps(priv->mdev) &
                               MLX5_ACCEL_IPSEC_CAP_RX_NO_TRAILER);
        mlx5e_accel_ipsec_fs_cleanup(priv);
        destroy_workqueue(ipsec->wq);
 
-       ida_destroy(&ipsec->halloc);
        kfree(ipsec);
        priv->ipsec = NULL;
 }
 
        struct mlx5e_priv *en_priv;
        DECLARE_HASHTABLE(sadb_rx, MLX5E_IPSEC_SADB_RX_BITS);
        bool no_trailer;
-       spinlock_t sadb_rx_lock; /* Protects sadb_rx and halloc */
-       struct ida halloc;
+       spinlock_t sadb_rx_lock; /* Protects sadb_rx */
        struct mlx5e_ipsec_sw_stats sw_stats;
        struct mlx5e_ipsec_stats stats;
        struct workqueue_struct *wq;