From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 8E436A0679 for ; Fri, 5 Apr 2019 10:02:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 733851B473; Fri, 5 Apr 2019 10:02:26 +0200 (CEST) Received: from mail-yw1-f51.google.com (mail-yw1-f51.google.com [209.85.161.51]) by dpdk.org (Postfix) with ESMTP id AEB6A1B470 for ; Fri, 5 Apr 2019 10:02:25 +0200 (CEST) Received: by mail-yw1-f51.google.com with SMTP id x129so2007320ywc.1 for ; Fri, 05 Apr 2019 01:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=xCoiaxFsU7fjt7PDVTTG6u4a80wG5TLyo5gbrMTpDrM=; b=lT5RM+p3JUHXwQUZDoOPx8t36uKablQM3yZ5WtROlnVU+gQX1Ix2T55KjBdn+kcFxF sWTRg77kGH5qP800n2WjU+76+IQ70h0+3fAmYG6H6UuSqRa658n/8PiyuoZRV7XiZiP9 cQtTN7EFRDQTGGPBCV9JiW1ZC3geduCKLbHnhr8zIAXt9c7PJLaNT6duLaLJed6XzhMU xncu4zko7B4wqtTw1u/XtkYLBbQNAhfwU4Mji9hGCMB5WLaLInq/TInmHirsU+RUx5tB eDiAL3Zm5fZ7fTDlUGNFB0QN580Afcx1mhQ/m21H++zifCFYLRLalbIiQz7jC+ZB6Ga2 xKfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=xCoiaxFsU7fjt7PDVTTG6u4a80wG5TLyo5gbrMTpDrM=; b=VKjuf38nyI1M5AIVBY9iwFp+r+0B82aFJY6IS+DXnSYO3XOiPXMEP6epVkXq92zzKV lHqtDJ4MXKIOPblYFs3nl1NjpcvA4Yftj2ysbLVvl4ZFcc2ZfSf9L8rcOERr9L1CDb+9 bpBtCEOndtWliuJlOp0QXMur4YmX0Du6yTbQzNU7G6pLXqT8HWw5aUPlU9aqYPTmfigz 8DcwZ6F8Xo373kHgaWeUrVoiiPgGVb1O9WsGjG5TnBI4/53QM2FQDgXOK45Fify2lboD zgMQupdFQl+m1nQ2g+QFf7Q90aDT5P7UX8LAFXMIgNCBHGw7yi00OQw5EKCFGGPjdC8k 3n7Q== X-Gm-Message-State: APjAAAW5RDdXuHHzn9s7UsmklLJcctaQ5jOsUgXMenzWY8TSZhzA1+e7 JPlEZzLalBUWc1uKyMQ7pfD9gWUa5wETFYYaFEk= X-Google-Smtp-Source: APXvYqzfAXAUnKhz2wtXc+OXMtElCemnESDjqyLyr18xx7CTkG4Z6N/BlRlp5FYla5TszXKOcBwgkS9mv17x+q7MZuE= X-Received: by 2002:a0d:e10c:: with SMTP id k12mr8581350ywe.353.1554451344840; Fri, 05 Apr 2019 01:02:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: ".." Date: Fri, 5 Apr 2019 10:02:13 +0200 Message-ID: To: "Wiles, Keith" Cc: 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: Re: [dpdk-users] =?utf-8?q?pktgen-dpdk_failed_build_=22=E2=94=82/usr/?= =?utf-8?q?bin/ld=3A_cannot_find_-llua=27?= X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: hyperhead@gmail.com List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi, I pulled the latest from git and ran make, I didnt fail make on Lua this time, something in cli-functions.o it didn't like =3D=3D app CC cli-functions.o In file included from /opt/dpdk-18.08/pktgen-dpdk/app/pktgen.h:83:0, from /opt/dpdk-18.08/pktgen-dpdk/app/cli-functions.c:30: /opt/dpdk-18.08/pktgen-dpdk/app/pktgen-port-cfg.h: In function =E2=80=98rte_get_rx_capa_list=E2=80=99: /opt/dpdk-18.08/pktgen-dpdk/app/pktgen-port-cfg.h:386:4: error: =E2=80=98DEV_RX_OFFLOAD_SCTP_CKSUM=E2=80=99 undeclared (first use in this f= unction) { DEV_RX_OFFLOAD_SCTP_CKSUM, _(SCTP_CKSUM) }, ^ /opt/dpdk-18.08/pktgen-dpdk/app/pktgen-port-cfg.h:386:4: note: each undeclared identifier is reported only once for each function it appears in /opt/dpdk-18.08/pktgen-dpdk/app/pktgen-port-cfg.h:387:4: error: =E2=80=98DEV_RX_OFFLOAD_OUTER_UDP_CKSUM=E2=80=99 undeclared (first use in t= his function) { DEV_RX_OFFLOAD_OUTER_UDP_CKSUM, _(OUTER_UDP_CKSUM) } ^ /opt/dpdk-18.08/pktgen-dpdk/app/pktgen-port-cfg.h: In function =E2=80=98rte_get_tx_capa_list=E2=80=99: /opt/dpdk-18.08/pktgen-dpdk/app/pktgen-port-cfg.h:440:4: error: =E2=80=98DEV_TX_OFFLOAD_OUTER_UDP_CKSUM=E2=80=99 undeclared (first use in t= his function) { DEV_TX_OFFLOAD_OUTER_UDP_CKSUM, _(OUTER_UDP_CKSUM) }, ^ /opt/dpdk-18.08/pktgen-dpdk/app/pktgen-port-cfg.h:440:2: warning: initialization makes integer from pointer without a cast [enabled by default] { DEV_TX_OFFLOAD_OUTER_UDP_CKSUM, _(OUTER_UDP_CKSUM) }, ^ /opt/dpdk-18.08/pktgen-dpdk/app/pktgen-port-cfg.h:440:2: warning: (near initialization for =E2=80=98tx_flags[20].flag=E2=80=99) [enabled by default= ] /opt/dpdk-18.08/pktgen-dpdk/app/pktgen-port-cfg.h:441:4: error: =E2=80=98DEV_TX_OFFLOAD_MATCH_METADATA=E2=80=99 undeclared (first use in th= is function) { DEV_TX_OFFLOAD_MATCH_METADATA, _(MATCH_METADATA) }, ^ /opt/dpdk-18.08/pktgen-dpdk/app/pktgen-port-cfg.h:441:2: warning: initialization makes integer from pointer without a cast [enabled by default] { DEV_TX_OFFLOAD_MATCH_METADATA, _(MATCH_METADATA) }, ^ /opt/dpdk-18.08/pktgen-dpdk/app/pktgen-port-cfg.h:441:2: warning: (near initialization for =E2=80=98tx_flags[21].flag=E2=80=99) [enabled by default= ] make[2]: *** [cli-functions.o] Error 1 make[1]: *** [all] Error 2 make: *** [app] Error 2 On Thu, 4 Apr 2019, 16:09 Wiles, Keith, wrote: > > > > On Apr 4, 2019, at 1:57 AM, .. wrote: > > > > Hi Keith, > > > > Ok will upgrade to latest version. > > > > Is there much documentation of creating custom payloads with dpdk-pktge= n? > > You have three modes sequence, range and pcap. > Sequence mode allows changing for the L2/L3 and some L4 fields. 16 packet= s > per port are available. > range mode allows changing L2/L3 fields and create ranges for theses > packets. > pcap mode allows you send any type of packets via a pcap file. > > > > > Have you any opinions on Warp17 from Juniper the dpdk stateful packet > generator? > > I have not looked at the Warp17 > > > > Regards > > > > Roland > > > > On Wed, 3 Apr 2019 at 14:57, Wiles, Keith wrote= : > > Please update to the latest Pktgen, I believe I was able to fix the > build system for CentOS. > > > > > On Apr 3, 2019, at 1:54 AM, .. wrote: > > > > > > Hi dpdk-users! > > > > > > OS: CentOS Linux release 7.0.1406 (Core) > > > Kernel : 3.10.0-123.el7.x86_64 > > > > > > I am trying to build dpdk-pktgen (I chose version 3.6.1 with dpdk > 18.08). > > > Whenever I build I get this error: > > > > > > [root@ipservera pktgen-dpdk-pktgen-3.6.1]# make -j > > > =3D=3D lib > > > =3D=3D common > > > =3D=3D utils > > > =3D=3D vec > > > =3D=3D lua > > > =3D=3D cli > > > =3D=3D app > > > LD pktgen > > > /usr/bin/ld: cannot find -llua > > > collect2: error: ld returned 1 exit status > > > make[2]: *** [pktgen] Error 1 > > > make[1]: *** [all] Error 2 > > > make: *** [app] Error 2 > > > > > > As it is Centos, I followed the instructions for building lua 5.3.2 > via the > > > INSTALL.md notes with the pktgen install notes and also copied the > > > generated libraries as per documentation: > > > > > > # ls -l /usr/lib64/ | grep liblua > > > -rwxr-xr-x 1 root root 193864 Nov 6 2016 liblua-5.1.so > > > -rw-r--r-- 1 root root 442084 Apr 1 12:46 liblua-5.3.a > > > -rwxr-xr-x 1 root root 260977 Apr 1 12:46 liblua-5.3.so > > > # lua -v > > > Lua 5.3.2 Copyright (C) 1994-2015 Lua.org, PUC-Rio > > > > > > # luac -v > > > Lua 5.3.2 Copyright (C) 1994-2015 Lua.org, PUC-Rio > > > > > > Dpdk install details: > > > ---------------------------- > > > # echo $RTE_SDK > > > /usr/local/share/dpdk > > > > > > # echo $RTE_TARGET > > > x86_64-native-linuxapp-gcc > > > > > > # ls -l /usr/local/share/dpdk > > > total 24 > > > drwxr-xr-x 3 root root 4096 Aug 9 2018 buildtools > > > drwxr-xr-x 50 root root 4096 Aug 9 2018 examples > > > drwxr-xr-x 8 root root 4096 Aug 9 2018 mk > > > drwxrwxr-x 14 root root 4096 Apr 3 06:39 pktgen-dpdk-pktgen-3.6.1 > > > drwxr-xr-x 2 root root 4096 Aug 9 2018 usertools > > > drwxr-xr-x 3 root root 4096 Oct 10 18:25 x86_64-native-linuxapp-gcc > > > > > > I have never used pktgen -dpdk before against a dpdk application > target. I > > > have another dpdk server running a reflector application we developed= , > but > > > I used the standard Linux kernel pktgen and commercial software fpga > nics > > > to fire traffic at it, but I would now like to try with pktgen-dpdk. > > > > > > Thanks > > > > > > Roland > > > > Regards, > > Keith > > > > Regards, > Keith > >