Thank you Olga What I'm trying to do is to run ovs-dpdk w connectx4 card, I don't care about the versions but only try to find a combination of versions (dpdk/ovs/kernel) that is working. As you've suggested, now I'm working with dpdk.17.05 (ovs 2.8.1) . I'm following the http://dpdk.org/doc/guides-17.05/nics/mlx5.html And I have compilation error when building dpdk - [ note that dpdk 18.02 and dpdk.17.11 build pass ok, but then ovs failed with undefined mlx ref.]
Dpdk.17.05 - compilation error: -------------- In file included from /home/avi/dpdk-stable-17.05.2/drivers/net/mlx5/mlx5.h:68:0, from /home/avi/dpdk-stable-17.05.2/drivers/net/mlx5/mlx5.c:67: /home/avi/dpdk-stable-17.05.2/drivers/net/mlx5/mlx5_rxtx.h:46:32: fatal error: infiniband/mlx5_hw.h: No such file or directory ------------------- Best Regards Avi > -----Original Message----- > From: Olga Shern [mailto:ol...@mellanox.com] > Sent: Monday, 19 February, 2018 11:31 PM > To: Avi Cohen (A); ovs-discuss@openvswitch.org > Cc: Erez Ferber > Subject: RE: [ovs-discuss] OvS build (w DPDK) failed - Undefined Mellanox > references > > Hi Avi, > > Can you please explain what you are trying to do? > Are you trying to test latest DPDK with OVS 2.8.1? > OVS 2.8.1 supports DPDK 17.05.1 , and as far as I know, it also working with > DPDK 17.08 DPDK 17.11 is supported with OVS 2.9. > > If you want help regarding DPDK you should send emails to the us...@dpdk.org > > Now, regarding what I stated before, you need to follow procedure from > DPDK.org for mlx PMDs : > For 17.08: http://dpdk.org/doc/guides-17.08/nics/mlx5.html , Please go to > section 20.7. Quick Start Guide and check section 20.5. Prerequisites > MLNX_OFED 4.1 ./mlnxofedinstall For 17.11: http://dpdk.org/doc/guides- > 17.11/nics/mlx5.html , please go to section 21.7 (Quick Start Guide on OFED) > and check section 21.5.1.2. Mellanox OFED for the right MLNX_OFED to use > MLNX_OFED 4.2 ./mlnxofedinstall --upstream-libs --dpdk > > Etc ... > > Hope this helps > > Best Regards, > Olga > > > -----Original Message----- > From: ovs-discuss-boun...@openvswitch.org [mailto:ovs-discuss- > boun...@openvswitch.org] On Behalf Of Avi Cohen (A) > Sent: Monday, February 19, 2018 6:21 PM > To: ovs-discuss@openvswitch.org > Subject: [ovs-discuss] OvS build (w DPDK) failed - Undefined Mellanox > references > > Hi, > I build dpdk-18.02 with MLX5_PMD - ok.. > Then I failed to build ovs - 2.8.1] with dpdk and get many undefined > reference > for mlx I have mellanox OFED installed > > Some of the errors here : > > > /home/avi/dpdk-18.02/x86_64-native-linuxapp- > gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o): In function `mlx5_glue_dv_init_obj': > /home/avi/dpdk-18.02/drivers/net/mlx5/mlx5_glue.c:307: undefined reference > to `mlx5dv_init_obj' > /home/avi/dpdk-18.02/x86_64-native-linuxapp- > gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o): In function > `mlx5_glue_dv_set_context_attr': > /home/avi/dpdk-18.02/drivers/net/mlx5/mlx5_glue.c:301: undefined reference > to `mlx5dv_set_context_attr' > /home/avi/dpdk-18.02/x86_64-native-linuxapp- > gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o): In function > `mlx5_glue_dv_query_device': > /home/avi/dpdk-18.02/drivers/net/mlx5/mlx5_glue.c:294: undefined reference > to `mlx5dv_query_device' > /home/avi/dpdk-18.02/x86_64-native-linuxapp- > gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o): In function > `mlx5_glue_dv_create_cq': > /home/avi/dpdk-18.02/drivers/net/mlx5/mlx5_glue.c:287: undefined reference > to `mlx5dv_create_cq' > /home/avi/dpdk-18.02/x86_64-native-linuxapp- > gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o): In function > `mlx5_glue_port_state_str': > /home/avi/dpdk-18.02/drivers/net/mlx5/mlx5_glue.c:273: undefined reference > to `ibv_port_state_str' > /home/avi/dpdk-18.02/x86_64-native-linuxapp- > gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o): In function > `mlx5_glue_get_async_event': > /home/avi/dpdk-18.02/drivers/net/mlx5/mlx5_glue.c:267: undefined reference > to `ibv_get_async_event' > /home/avi/dpdk-18.02/x86_64-native-linuxapp- > gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o): In function > `mlx5_glue_ack_async_event': > /home/avi/dpdk-18.02/drivers/net/mlx5/mlx5_glue.c:260: undefined reference > to `ibv_ack_async_event' > /home/avi/dpdk-18.02/x86_64-native-linuxapp- > gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o): In function `mlx5_glue_dereg_mr': > > Who can help ? > Best Regards > Avi > _______________________________________________ > discuss mailing list > disc...@openvswitch.org > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.op > envswitch.org%2Fmailman%2Flistinfo%2Fovs- > discuss&data=02%7C01%7Colgas%40mellanox.com%7Cbd7017779e624a247e3 > 508d577b4d322%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C6365 > 46540872320081&sdata=qPOVcZSoBvPQzpSKw9632jOC0iRhPwpnGdULr3u8KU > Q%3D&reserved=0 _______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss