static int mlx5e_xfrm_fs_add_rule(struct mlx5e_priv *priv,
                                  struct mlx5e_ipsec_sa_entry *sa_entry)
 {
-       if (!mlx5_is_ipsec_device(priv->mdev))
-               return 0;
-
        return mlx5e_accel_ipsec_fs_add_rule(priv, &sa_entry->xfrm->attrs,
                                             sa_entry->ipsec_obj_id,
                                             &sa_entry->ipsec_rule);
 static void mlx5e_xfrm_fs_del_rule(struct mlx5e_priv *priv,
                                   struct mlx5e_ipsec_sa_entry *sa_entry)
 {
-       if (!mlx5_is_ipsec_device(priv->mdev))
-               return;
-
        mlx5e_accel_ipsec_fs_del_rule(priv, &sa_entry->xfrm->attrs,
                                      &sa_entry->ipsec_rule);
 }
                return;
        }
 
-       if (mlx5_is_ipsec_device(mdev))
-               netdev->gso_partial_features |= NETIF_F_GSO_ESP;
-
+       netdev->gso_partial_features |= NETIF_F_GSO_ESP;
        mlx5_core_dbg(mdev, "mlx5e: ESP GSO capability turned on\n");
        netdev->features |= NETIF_F_GSO_ESP;
        netdev->hw_features |= NETIF_F_GSO_ESP;
 
 
        ipsec_st->x = x;
        ipsec_st->xo = xo;
-       if (mlx5_is_ipsec_device(priv->mdev)) {
-               aead = x->data;
-               alen = crypto_aead_authsize(aead);
-               blksize = ALIGN(crypto_aead_blocksize(aead), 4);
-               clen = ALIGN(skb->len + 2, blksize);
-               plen = max_t(u32, clen - skb->len, 4);
-               tailen = plen + alen;
-               ipsec_st->plen = plen;
-               ipsec_st->tailen = tailen;
-       }
+       aead = x->data;
+       alen = crypto_aead_authsize(aead);
+       blksize = ALIGN(crypto_aead_blocksize(aead), 4);
+       clen = ALIGN(skb->len + 2, blksize);
+       plen = max_t(u32, clen - skb->len, 4);
+       tailen = plen + alen;
+       ipsec_st->plen = plen;
+       ipsec_st->tailen = tailen;
 
        return 0;
 }
                   ((struct iphdr *)skb_network_header(skb))->protocol :
                   ((struct ipv6hdr *)skb_network_header(skb))->nexthdr;
 
-       if (mlx5_is_ipsec_device(priv->mdev)) {
-               eseg->flow_table_metadata |= cpu_to_be32(MLX5_ETH_WQE_FT_META_IPSEC);
-               eseg->trailer |= cpu_to_be32(MLX5_ETH_WQE_INSERT_TRAILER);
-               encap = x->encap;
-               if (!encap) {
-                       eseg->trailer |= (l3_proto == IPPROTO_ESP) ?
-                               cpu_to_be32(MLX5_ETH_WQE_TRAILER_HDR_OUTER_IP_ASSOC) :
-                               cpu_to_be32(MLX5_ETH_WQE_TRAILER_HDR_OUTER_L4_ASSOC);
-               } else if (encap->encap_type == UDP_ENCAP_ESPINUDP) {
-                       eseg->trailer |= (l3_proto == IPPROTO_ESP) ?
-                               cpu_to_be32(MLX5_ETH_WQE_TRAILER_HDR_INNER_IP_ASSOC) :
-                               cpu_to_be32(MLX5_ETH_WQE_TRAILER_HDR_INNER_L4_ASSOC);
-               }
+       eseg->flow_table_metadata |= cpu_to_be32(MLX5_ETH_WQE_FT_META_IPSEC);
+       eseg->trailer |= cpu_to_be32(MLX5_ETH_WQE_INSERT_TRAILER);
+       encap = x->encap;
+       if (!encap) {
+               eseg->trailer |= (l3_proto == IPPROTO_ESP) ?
+                       cpu_to_be32(MLX5_ETH_WQE_TRAILER_HDR_OUTER_IP_ASSOC) :
+                       cpu_to_be32(MLX5_ETH_WQE_TRAILER_HDR_OUTER_L4_ASSOC);
+       } else if (encap->encap_type == UDP_ENCAP_ESPINUDP) {
+               eseg->trailer |= (l3_proto == IPPROTO_ESP) ?
+                       cpu_to_be32(MLX5_ETH_WQE_TRAILER_HDR_INNER_IP_ASSOC) :
+                       cpu_to_be32(MLX5_ETH_WQE_TRAILER_HDR_INNER_L4_ASSOC);
        }
 }