0 Replies Latest reply on Dec 27, 2016 8:07 PM by praoreo1

    DPDK-L3FWD PROX Compilation Error with MLX5 params disabled

    praoreo1

      Hi Team,

       

      This has further reference to the thread DPDK-L3FWD PROX Compilation Error :: mlx5_mr.c:39:30: fatal error: infiniband/verbs.h: No such file or directory

       

      Based on the resolution provided in the above thread, I have disabled the mlx5 pmd in the config file and tried to compile the code, but encountered many errors. Please find below a snippet of the errors. To make sure that the mlx5 package is not taken, I have changed the value of CONFIG_RTE_LIBRTE_MLX5_PMD=n  in config/common_linuxapp so that its not taken while compiling.

       

      Can you please guide me to proceed further?

       

      /**************************************************************************************************************************************/

       

      /usr/src/dpdk/drivers/net/mlx4/mlx4.c:3749:33: error: unused variable 'status' [-Werror=unused-variable]

        enum ibv_exp_query_intf_status status;

                                       ^

      /usr/src/dpdk/drivers/net/mlx4/mlx4.c:3748:4: error: variable 'attr' set but not used [-Werror=unused-but-set-variable]

        } attr;

          ^

      /usr/src/dpdk/drivers/net/mlx4/mlx4.c:3743:25: error: unused variable 'mod' [-Werror=unused-variable]

        struct ibv_exp_qp_attr mod;

                               ^

      /usr/src/dpdk/drivers/net/mlx4/mlx4.c:3734:29: error: unused parameter 'inactive' [-Werror=unused-parameter]

          unsigned int socket, int inactive, const struct rte_eth_rxconf *conf,

                                   ^

      /usr/src/dpdk/drivers/net/mlx4/mlx4.c: In function 'rxq_setup_qp':

      /usr/src/dpdk/drivers/net/mlx4/mlx4.c:3438:1: error: control reaches end of non-void function [-Werror=return-type]

      }

      ^

      cc1: all warnings being treated as errors

      /usr/src/dpdk/mk/internal/rte.compile-pre.mk:126: recipe for target 'mlx4.o' failed

      make[6]: *** [mlx4.o] Error 1

      /usr/src/dpdk/mk/rte.subdir.mk:61: recipe for target 'mlx4' failed

      make[5]: *** [mlx4] Error 2

      /usr/src/dpdk/mk/rte.subdir.mk:61: recipe for target 'net' failed

      make[4]: *** [net] Error 2

      /usr/src/dpdk/mk/rte.sdkbuild.mk:77: recipe for target 'drivers' failed

      make[3]: *** [drivers] Error 2

      /usr/src/dpdk/mk/rte.sdkroot.mk:123: recipe for target 'all' failed

      make[2]: *** [all] Error 2

      /usr/src/dpdk/mk/rte.sdkinstall.mk:84: recipe for target 'pre_install' failed

      make[1]: *** [pre_install] Error 2

      /usr/src/dpdk/mk/rte.sdkroot.mk:98: recipe for target 'install' failed

       

      /**************************************************************************************************************************************/

       

      Thanks

      Praveen