On 11/10/2017 9:05 PM, Rajesh Althi wrote:
Hi All,


I'am trying to install OVS-2.5 with dpdk.

I have downloaded and installed dpdk-2.2.0 version.

Executed the following steps to install OVS-2.5 with dpdk.
    - export DPDK_BUILD=$DPDK_DIR/x86_64-native-linuxapp-gcc/
- ./configure --with-dpdk=$DPDK_BUILD - make
- make install

But during make the below compilation errors i got:


    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I
    ./include -I ./lib -I ./lib -Wstrict-prototypes -Wall -Wextra
    -Wno-sign-compare -Wpointer-arith -Wformat -Wformat-security
    -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align
    -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
    -Wmissing-field-initializers -fno-strict-aliasing -Wswitch-bool
    -Wlogical-not-parentheses -Wsizeof-array-argument -Wbool-compare
    -mssse3 -I/usr/src/dpdk-2.2.0/x86_64-native-linuxapp-gcc//include
    -D_FILE_OFFSET_BITS=64 -g -O2 -MT lib/bfd.lo -MD -MP -MF
    lib/.deps/bfd.Tpo -c lib/bfd.c -o lib/bfd.o
    In file included from lib/bfd.c:27:0:
    lib/dp-packet.h: In function ‘dp_packet_ip_checksum_valid’:
    lib/dp-packet.h:643:32: error: ‘PKT_RX_IP_CKSUM_MASK’ undeclared
    (first use in this function)
         return (p->mbuf.ol_flags & PKT_RX_IP_CKSUM_MASK) ==
                                    ^
    lib/dp-packet.h:643:32: note: each undeclared identifier is
    reported only once for each function it appears in
    lib/dp-packet.h:644:13: error: ‘PKT_RX_IP_CKSUM_GOOD’ undeclared
    (first use in this function)
                 PKT_RX_IP_CKSUM_GOOD;
                 ^
    lib/dp-packet.h: In function ‘dp_packet_ip_checksum_bad’:
    lib/dp-packet.h:654:32: error: ‘PKT_RX_IP_CKSUM_MASK’ undeclared
    (first use in this function)
         return (p->mbuf.ol_flags & PKT_RX_IP_CKSUM_MASK) ==
                                    ^
    lib/dp-packet.h: In function ‘dp_packet_l4_checksum_valid’:
    lib/dp-packet.h:665:32: error: ‘PKT_RX_L4_CKSUM_MASK’ undeclared
    (first use in this function)
         return (p->mbuf.ol_flags & PKT_RX_L4_CKSUM_MASK) ==
                                    ^
    lib/dp-packet.h:666:13: error: ‘PKT_RX_L4_CKSUM_GOOD’ undeclared
    (first use in this function)
                 PKT_RX_L4_CKSUM_GOOD;
                 ^
    lib/dp-packet.h: In function ‘dp_packet_l4_checksum_bad’:
    lib/dp-packet.h:676:32: error: ‘PKT_RX_L4_CKSUM_MASK’ undeclared
    (first use in this function)
         return (p->mbuf.ol_flags & PKT_RX_L4_CKSUM_MASK) ==
                                    ^
    lib/dp-packet.h: In function ‘reset_dp_packet_checksum_ol_flags’:
    lib/dp-packet.h:687:27: error: ‘PKT_RX_L4_CKSUM_GOOD’ undeclared
    (first use in this function)
         p->mbuf.ol_flags &= ~(PKT_RX_L4_CKSUM_GOOD |
    PKT_RX_L4_CKSUM_BAD |
                               ^
    lib/dp-packet.h:688:27: error: ‘PKT_RX_IP_CKSUM_GOOD’ undeclared
    (first use in this function)
                               PKT_RX_IP_CKSUM_GOOD |
    PKT_RX_IP_CKSUM_BAD);
                               ^
    Makefile:4700: recipe for target 'lib/bfd.lo' failed
    make[2]: *** [lib/bfd.lo] Error 1
    make[2]: Leaving directory '/home/asfvolt/ovs'
    Makefile:5426: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/asfvolt/ovs'
    Makefile:3171: recipe for target 'all' failed
    make: *** [all] Error 2



Please let me know which version of dpdk is compatible to compile OVS-2.5 with dpdk.


Why not upgrade to OVS 2.8?

http://openvswitch.org/releases/openvswitch-2.8.1.tar.gz

And last I heard DPDK was up to Rev 17.something.

http://fast.dpdk.org/rel/dpdk-17.08.tar.xz

Working with extremely old software releases is challenging.  Unless you have a very good reason to do so I suggest you upgrade.

- Greg

_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to