From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yk0-f195.google.com (mail-yk0-f195.google.com [209.85.160.195]) by dpdk.org (Postfix) with ESMTP id D7C3237A8 for ; Tue, 19 Jan 2016 10:01:47 +0100 (CET) Received: by mail-yk0-f195.google.com with SMTP id y10so39116415ykf.0 for ; Tue, 19 Jan 2016 01:01:47 -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=3F7wNUoncv41GjQwSZSMJGeQVhrnOj+ssvrutid+7fY=; b=w6OcMLNkPCbjX7pBCg5DIJN+xP7Wv7bnfykhgDaJb2ZocWitxZEqu/GsEYh+QPGYpO cdZjBhTruhIaed9RMq7RwJjWBNO9/R9VhfLvKkYZDQuE7m0Y9RVD9xD5eptP01QeI8is qILJ7nptYjbqyPfptrmWjYU7xFSRsikTTDfpoOrishYqdgT6NhXLIl2A9aPZP8AyJdcI 5kCaCLgxKfBCN4d4apGYCNhZrSwniOZ3xIdCjrfiJJXQa3O7HDWly3p05QRVqkXkD4RT tMjRELdUWKqfmbeY5F4SDysehlJHhuvzwrinOOmbWVApqqK1k6dFZ5QgqxS2qFPjFTKR yFzA== 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=3F7wNUoncv41GjQwSZSMJGeQVhrnOj+ssvrutid+7fY=; b=Z5ydwWpTJ/5ZCYmrY4H+H70yeR0ndt7WSBde+qAO5ph2B0N51EWCr8EhDbbWaloznN 1+k7RnlecZCtxy6jjTXD03spp2K9yyNVv+e9napYQ7WD8fJL3oKYx98qDTPCLYKgFJZH NtXcbzIdrPzMuYY9TNF2cIfaiHMw7uK3om5ywdeoGQIkS/5eqhTiSEthbEz9vVFU3bad h25r0jiy+QGmy0WFHfrft5HdqWzQO6itsMN8DvaN65oW1QVplSt+pLmICc2AFQd/p6NH 0WkukY5mBJ/iTF561mNxw22silurxubWzd4MaP01Or0OOsPKcDseSphBoldjyaP+MGBi jDpw== X-Gm-Message-State: ALoCoQkyAejyLoBYOexoLJ0D5HTnIS8osWtGatVJ4bBvJVkYFw1baxPaowjZLTHDNTvKPBJG3/0M+GVTM8wdPZGbdnIYBRY2ZQ== X-Received: by 10.129.123.134 with SMTP id w128mr17193286ywc.345.1453194107422; Tue, 19 Jan 2016 01:01:47 -0800 (PST) Received: from mail-yk0-f175.google.com (mail-yk0-f175.google.com. [209.85.160.175]) by smtp.gmail.com with ESMTPSA id a7sm21304075ywf.55.2016.01.19.01.01.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jan 2016 01:01:46 -0800 (PST) Received: by mail-yk0-f175.google.com with SMTP id x67so642784030ykd.2 for ; Tue, 19 Jan 2016 01:01:46 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.129.49.144 with SMTP id x138mr16851445ywx.282.1453194106656; Tue, 19 Jan 2016 01:01:46 -0800 (PST) Received: by 10.37.209.209 with HTTP; Tue, 19 Jan 2016 01:01:46 -0800 (PST) X-Originating-IP: [144.214.37.251] Date: Tue, 19 Jan 2016 17:01:46 +0800 X-Gmail-Original-Message-ID: Message-ID: From: Royce Niu To: dev@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-dev] A Question on MEMNIC/PMD on DPDK X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2016 09:01:48 -0000 Dear all, I am so sorry to send this question in dev mailing list. I sent this to users' mailing list, but no one response and that list is not so active. So, may I ask this question in this list? If it is not ok, I say sorry in advance. ---------------------------------------------------------------------------= -------------------------------------- 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