From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yk0-f194.google.com (mail-yk0-f194.google.com [209.85.160.194]) by dpdk.org (Postfix) with ESMTP id 97C033237 for ; Wed, 20 Jan 2016 07:03:15 +0100 (CET) Received: by mail-yk0-f194.google.com with SMTP id y10so41583989ykf.0 for ; Tue, 19 Jan 2016 22:03:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=6kRsYfNBETDpGVBhRw8MtDqXtMrflopABjXfXSY7StM=; b=gPiYxYadOA0dcjnRKlcYh/H1k1iMxZXxIyFYa+U4ou+rB9K0SMtubAhOacy8qN34Wv eOctSkTlzimbA8smMvWtHyaQ1M0i0poDQaOYA3fWkztb7X3Ayyd92yz3OI+PcOay6T+M YQrhqyCSdsBtlbkYzKK7RVqodvnknivt1vscpJDQVTDFjlGw3gVLaJxYgsAfGE/f26g5 DNmtLIWl24C8sPo4UsVro1EkLoJTBgR0RxCxrILmrJdXyFmAZFg5sJ6eBXvt+Jk/ffth SHk32GMDDjJH56K9OC0rod98v9K7Dj+hoVJOXBRgtMcD5la7OBJ42MsPglBe+d0WG4qz cAqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=6kRsYfNBETDpGVBhRw8MtDqXtMrflopABjXfXSY7StM=; b=KIPoNgOuBoVcMjZS42xMcflCoF8fO2uNOMuFyUL4qohWGs09YVVgNU6ePyEphM/z6L yDbyd5bsBp1R9ME+SGMY7ionYgB65C2TNojHfek/F4ecBW1dQSiJ4476Ol+e2FTigjjd nh5y6e7MFbbjDcmkMe5RMNjYgEDTEeH/ZzsBpkJlT7Ag06gm6yeIZrCYPl1B2/abX5nk AG4efqsBAEtS4wpgS2iL3AZlVHXDDMCQYmzpS8+XT5MBgWXDarng+7TDiQOLZgRmi/kN HR3t0mCSVB4IQn+4QXkzE9eWrLTZz/nndH04oTohvxTYNtID00vi2Z4lxusvreBNp1Cd gucA== X-Gm-Message-State: ALoCoQlQP3DmfypfUUGYsAD1il8C1VhNzXimfTtrXtZsXosCqALdQz1+uKnfu9PQPExOdSl5IXB/oT7DqrxAW2v7tsev+FoSqw== X-Received: by 10.129.132.12 with SMTP id u12mr22423626ywf.22.1453269794983; Tue, 19 Jan 2016 22:03:14 -0800 (PST) Received: from mail-yk0-f176.google.com (mail-yk0-f176.google.com. [209.85.160.176]) by smtp.gmail.com with ESMTPSA id r8sm24460480ywb.20.2016.01.19.22.03.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jan 2016 22:03:14 -0800 (PST) Received: by mail-yk0-f176.google.com with SMTP id x67so677953969ykd.2 for ; Tue, 19 Jan 2016 22:03:14 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.37.230.138 with SMTP id d132mr9573192ybh.127.1453269794340; Tue, 19 Jan 2016 22:03:14 -0800 (PST) Received: by 10.37.209.209 with HTTP; Tue, 19 Jan 2016 22:03:14 -0800 (PST) X-Originating-IP: [144.214.37.251] Date: Wed, 20 Jan 2016 14:03:14 +0800 X-Gmail-Original-Message-ID: Message-ID: From: Royce Niu To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Fail to build Memnic in Ubuntu 14.04 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2016 06:03:15 -0000 Hi I want to install an OVS/memnic software in a KVM virtual machine. For the higher speed, I install memnic/pmd (SR-IOV) instead of virtio, since I believe SR-IOV is faster than virtio. But, I meet some trouble when I build the memnic following the doc ( http://dpdk.org/doc/memnic-pmd) I download the most updated software DPDK 2.2.0 and memnic 1.3. My system is : 1. 2 VCPU 2G Mem 2. Ubuntu 14.04 64bit 3. Updated packages I build DPDK successfully, but when I build memnic in VM according to the doc. A lot of error message displays: ---------------------------------------------------------------------------= ----------------------------------------- #... (So many lines of errors) ... ... ... In file included from /home/niuroy/dpdk-2.2.0/build/include/rte_ether.h:50:0, from /home/niuroy/dpdk-2.2.0/build/include/rte_ethdev.h:185, from pmd_memnic.c:32: /home/niuroy/dpdk-2.2.0/build/include/rte_memcpy.h:625:2: error: incompatible type for argument 2 of =E2=80=98_mm_storeu_si128=E2=80=99 MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/xmmintrin.h:1246:0, from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/x86intrin.h:34, from /home/niuroy/dpdk-2.2.0/build/include/rte_vect.h:67, from /home/niuroy/dpdk-2.2.0/build/include/rte_memcpy.h:46= , from /home/niuroy/dpdk-2.2.0/build/include/rte_ether.h:50, from /home/niuroy/dpdk-2.2.0/build/include/rte_ethdev.h:185, from pmd_memnic.c:32: /usr/lib/gcc/x86_64-linux-gnu/4.8/include/emmintrin.h:700:1: note: expected =E2=80=98__m128i=E2=80=99 but argument is of type =E2=80=98int=E2=80=99 _mm_storeu_si128 (__m128i *__P, __m128i __B) ^ pmd_memnic.c: In function =E2=80=98memnic_queue_alloc=E2=80=99: pmd_memnic.c:81:35: error: =E2=80=98CACHE_LINE_SIZE=E2=80=99 undeclared (fi= rst use in this function) q =3D rte_zmalloc(buf, sizeof(*q), CACHE_LINE_SIZE); ^ pmd_memnic.c:81:35: note: each undeclared identifier is reported only once for each function it appears in pmd_memnic.c: In function =E2=80=98memnic_dev_stats_get=E2=80=99: pmd_memnic.c:182:3: error: =E2=80=98fdirmatch=E2=80=99 is deprecated (decla= red at /home/niuroy/dpdk-2.2.0/build/include/rte_ethdev.h:212) [-Werror=3Ddeprecated-declarations] stats->fdirmatch +=3D st->fdirmatch; ^ pmd_memnic.c:182:3: error: =E2=80=98fdirmatch=E2=80=99 is deprecated (decla= red at /home/niuroy/dpdk-2.2.0/build/include/rte_ethdev.h:212) [-Werror=3Ddeprecated-declarations] pmd_memnic.c:183:3: error: =E2=80=98fdirmiss=E2=80=99 is deprecated (declar= ed at /home/niuroy/dpdk-2.2.0/build/include/rte_ethdev.h:214) [-Werror=3Ddeprecated-declarations] stats->fdirmiss +=3D st->fdirmiss; ^ pmd_memnic.c:183:3: error: =E2=80=98fdirmiss=E2=80=99 is deprecated (declar= ed at /home/niuroy/dpdk-2.2.0/build/include/rte_ethdev.h:214) [-Werror=3Ddeprecated-declarations] pmd_memnic.c: In function =E2=80=98memnic_recv_pkts=E2=80=99: pmd_memnic.c:315:5: error: =E2=80=98struct rte_mbuf=E2=80=99 has no member = named =E2=80=98pkt=E2=80=99 mb->pkt.in_port =3D q->port_id; ^ pmd_memnic.c: In function =E2=80=98memnic_xmit_pkts=E2=80=99: pmd_memnic.c:398:37: error: =E2=80=98struct rte_mbuf=E2=80=99 has no member= named =E2=80=98pkt=E2=80=99 for (sg =3D tx_pkts[nr]; sg; sg =3D sg->pkt.next) { ^ pmd_memnic.c: At top level: pmd_memnic.c:496:2: error: initialization from incompatible pointer type [-Werror] .eth_dev_init =3D eth_memnic_dev_init, ^ pmd_memnic.c:496:2: error: (near initialization for =E2=80=98rte_memnic_pmd.eth_dev_init=E2=80=99) [-Werror] cc1: all warnings being treated as errors make: *** [librte_pmd_memnic_copy.so] Error 1 ---------------------------------------------------------------------------= --------------------------------------- Then, I tried DPDK 2.0 and 1.8. with both of these version, I still meet a lot of errors just like 2.2 So, I want to ask 1. How to solve the problems? 2. Can I install OVS with SR-IOV feature by other ways? Thanks! --=20 Regards, Royce Niu