#include "en/devlink.h"
 #include "lib/mlx5.h"
 #include "en/ptp.h"
+#include "fpga/ipsec.h"
 
 bool mlx5e_check_fragmented_striding_rq_cap(struct mlx5_core_dev *mdev)
 {
        if (!mlx5e_check_fragmented_striding_rq_cap(mdev))
                return false;
 
-       if (MLX5_IPSEC_DEV(mdev))
+       if (mlx5_fpga_is_ipsec_device(mdev))
                return false;
 
        if (params->xdp_prog) {
        int i;
 
 #ifdef CONFIG_MLX5_EN_IPSEC
-       if (MLX5_IPSEC_DEV(mdev))
+       if (mlx5_fpga_is_ipsec_device(mdev))
                byte_count += MLX5E_METADATA_ETHER_LEN;
 #endif
 
 
 
                rq->handle_rx_cqe = priv->profile->rx_handlers->handle_rx_cqe_mpwqe;
 #ifdef CONFIG_MLX5_EN_IPSEC
-               if (MLX5_IPSEC_DEV(mdev)) {
-                       netdev_err(netdev, "MPWQE RQ with IPSec offload not supported\n");
+               if (mlx5_fpga_is_ipsec_device(mdev)) {
+                       netdev_err(netdev, "MPWQE RQ with Innova IPSec offload not supported\n");
                        return -EINVAL;
                }
 #endif
 
        struct ida halloc;
 };
 
-static bool mlx5_fpga_is_ipsec_device(struct mlx5_core_dev *mdev)
+bool mlx5_fpga_is_ipsec_device(struct mlx5_core_dev *mdev)
 {
        if (!mdev->fpga || !MLX5_CAP_GEN(mdev, fpga))
                return false;
 
 const struct mlx5_flow_cmds *
 mlx5_fs_cmd_get_default_ipsec_fpga_cmds(enum fs_flow_table_type type);
 void mlx5_fpga_ipsec_build_fs_cmds(void);
+bool mlx5_fpga_is_ipsec_device(struct mlx5_core_dev *mdev);
 #else
 static inline
 const struct mlx5_accel_ipsec_ops *mlx5_fpga_ipsec_ops(struct mlx5_core_dev *mdev)
 }
 
 static inline void mlx5_fpga_ipsec_build_fs_cmds(void) {};
+static inline bool mlx5_fpga_is_ipsec_device(struct mlx5_core_dev *mdev) { return false; }
 
 #endif /* CONFIG_MLX5_FPGA_IPSEC */
 #endif /* __MLX5_FPGA_IPSEC_H__ */