From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nm33-vm1.bullet.mail.sg3.yahoo.com (nm33-vm1.bullet.mail.sg3.yahoo.com [106.10.151.224]) by dpdk.org (Postfix) with ESMTP id 80CED5680 for ; Tue, 13 Sep 2016 09:34:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.hk; s=s2048; t=1473752095; bh=k4o+12FOkSOWCbaEtQ5mO2WYKzBkHNVGLgqMAOrrJd4=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=KO1J2aclK30OyAERqzlR+wks6ayWYr8b0114ywZ80cRUaWos9XzWyXh/1JScTVyxScbMFAutquHQmb7Cvwnt+H8UQlNmmt/CoEVVEjaZbvb6opwAEA1G69AxHij57hHx/wqphJ6GMJHTy3FYpb2gJbioCnELxnG5ByxmHEXDHdAF1tbcJTPXIHo//JOYF9FaNtfb36ktbeBAls1zXrh1wUxdm1Jpxn4rqr1fjSpTgawQ1mgcNZuPnLOnD/HI4t22b9BhJHkTer8Ca4yYoLqqXvpQjmJmw0R1x0FtB796jlhUvqtka+JLGvcHBSDFM+C99MDXaZKotkgu4QJGpk/egg== Received: from [106.10.166.126] by nm33.bullet.mail.sg3.yahoo.com with NNFMP; 13 Sep 2016 07:34:55 -0000 Received: from [106.10.150.28] by tm15.bullet.mail.sg3.yahoo.com with NNFMP; 13 Sep 2016 07:34:55 -0000 Received: from [127.0.0.1] by omp1029.mail.sg3.yahoo.com with NNFMP; 13 Sep 2016 07:34:55 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 482347.62548.bm@omp1029.mail.sg3.yahoo.com X-YMail-OSG: yLEmad0VM1nRQSS.hgNlPYIbWsjVLiXseATlpS7VE7SLcxWl0iuQNhjazfU2aBw fjXJoEWuI.3CHKC2pThnHkSXbYanZM8W.vs9TGY9R8VLgOtP5vX63F4M3LAafGS78R7h1lee71r0 Nf.rdcqbVHPxZt6UBpN8BU6YzbridWceqhuBDkngZruf2myxCjaP8SPlKvO2ag8WutheHdlA7a5N BBR4xn9iBxj3g_vgbxMNmnOBJC7nyDp7YIhYLR.O6ouYxL38G27BqFP91i0QeAaVqrCj6MysIlxo VvB7UJaT8tDQ5CwHGSAytsC6wI3QkLp9567BgTlTGwWDyft9J_sYN36g1ahspippiav2oFAH8jWM F30W5pmyZ6mlOBzH6QVuYX1DUnCV8AB1e7x3XRhEQ7VCRfVrR8QrRZcPR5KGZAdrJU02AMEHIYLv HHwWnsjQwvPAbdKKYpnKKLlkpyq1iIAlaIcyAXJkz1J8XWJq.P5QOT_RXT6d1nIYOtMWmnBylY2O htL0.PkaJ3HoXN.V.8Bn_xseJesM- Received: from jws10910.mail.sg3.yahoo.com by sendmailws102.mail.sg3.yahoo.com; Tue, 13 Sep 2016 07:34:55 +0000; 1473752095.097 Date: Tue, 13 Sep 2016 07:34:54 +0000 (UTC) From: MAC Lee To: "users@dpdk.org" Message-ID: <1341016917.230797.1473752094209@mail.yahoo.com> MIME-Version: 1.0 References: <1341016917.230797.1473752094209.ref@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Can't enable RSS in DPDK with MLX5 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: MAC Lee List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2016 07:34:58 -0000 Hi All, =C2=A0 =C2=A0 I encounter a problem when enable RSS in DPDK( I am using 16.= 04 with OFED 3.3-1.0.4.0) using MLX5 PMD. I tried to enable RSS function in= my DPDK application by setting=C2=A01. =C2=A0.rxmode.mq_mode =3D ETH_MQ_RX= _RSS,=C2=A02. =C2=A0.rx_adv_conf.rss_conf.rss_hf =3D ETH_RSS_PROTO_MASK wit= h RSS key length 40,//I also try ETH_RSS_IPV4 and ETH_RSS_NONFRAG_IPV4_UDP,= but still no luck3. update the reta using rte_eth_dev_rss_reta_update however, when I print out the mbuf->hash.fdir.hash, mbuf->hash.fdir.id, mbu= f->hash.rss after rte_eth_rx_burst(). All of these values are 0. I also test the RSS using Testpmd and modify the testpmd to print those val= ue after =C2=A0rte_eth_rx_burst(). But still bad luck, =C2=A0I still got al= l 0.=C2=A0What I did using Testpmd:1. testpmd -c 0x3f -n 4 -w 06:00.0,txq_i= nline=3D200 -- --burst=3D64 --txd=3D4096 --rxd=3D1024 --mbcache=3D512 --rxq= =3D4 --txq=3D4 --nb-cores=3D4 --rss-udp --i2. testpmd>stop3. testpmd>set fw= d rxonly4. testpmd> port config all rss udp5. testpmd>start6. Then pump tra= ffic using packet generator and monitor the print out of buf->hash.fdir.has= h, mbuf->hash.fdir.id, mbuf->hash.rss in testpmdMay I know how can I enable= the RSS function in DPDK application using MLX5 PMD? Best Regards,Marco >From mac_leehk@yahoo.com.hk Tue Sep 13 09:44:23 2016 Return-Path: Received: from nm25-vm9.bullet.mail.sg3.yahoo.com (nm25-vm9.bullet.mail.sg3.yahoo.com [106.10.151.104]) by dpdk.org (Postfix) with ESMTP id 23FB75684 for ; Tue, 13 Sep 2016 09:44:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.hk; s=s2048; t=1473752660; bh=n543+EULOZPo9tTxdnAbV7hVr0iZ1tQKwa6Svgih7kY=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=Fxa1F64xokf/9RiN53nkSppukLBkOxl0/VWQYYCUX5vJEr5QcFUHdKzxXM8yiRiJ50rreou2gUYysYl7oENTSOHXY+gLydAN7MCfLHDDmPoF9hmvXGSxp8+DuhTFQA1i3XgT+Ibe0DH0HfR+MnZ4yh1y7zozfxVOKQlUqWFAtc7qU0+zx7ayCeeY5UX8nT9k+cm6qLNAAZTQPgp/ffeHM11PWJXai24DDcTmzQJG2gEx0RSpo0S497g4gqrLTM58IlE71get+3PdiGceeBTBkQOYiL3uKDLJ0KvxQ/UjFGL1RdxS2QNjIqk2AMGvt4guYTYjzy7IKvs4j54sv9v50g== Received: from [106.10.166.63] by nm25.bullet.mail.sg3.yahoo.com with NNFMP; 13 Sep 2016 07:44:20 -0000 Received: from [106.10.151.155] by tm20.bullet.mail.sg3.yahoo.com with NNFMP; 13 Sep 2016 07:44:19 -0000 Received: from [127.0.0.1] by omp1009.mail.sg3.yahoo.com with NNFMP; 13 Sep 2016 07:44:19 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 917518.91761.bm@omp1009.mail.sg3.yahoo.com X-YMail-OSG: jsq7QWcVM1lqFoSkIxkKA7QvWNVtNBKlag3jkT1N3XEqpkvHBk9n.ps.Yq.XBot jY0MgftSsSFeZ4PucZP6X0EPnm342VRiGi50JI863B3oO1IWFoFM8LBCeRIT3TZH23YbfgBHqk8F Cfi5MFxbIQ1p4IPxg9ydKtAuyMACcoQoE_Zi0_Z4YrA7wa_WH5mxQN6R0YiZ5swBWRmxBwESWUG. 1zdg9sMclFjUGk3wf.mMlkYl0SbdKNnuA7_fafpshwzMz0KBpU9LBLuFp.vyoC_0DJ3oW1CmK5r1 TtF8L4UEHE70haIbzmU6gU0VFdDp5gSHk_KrS6Vn_9UsJ8eyFH5tWg9PplbKCYGhHJmBE9m8kYuh U4YKGRwMUTQeQQykP1OkJJfjQrARgUyxz1dWCh62d.U6FkkMLqqb211MaTUMyUOgW3VZ2Mnf8tBq JulyREVCzzpM6d24XsTdOO1Bx769ye2KWwvnbx97xtDQ0b.54w9c879uHSsA0KSlq9sGAJYZI1J2 BAFHA_.IarLoiUksA4Z2mePvr5tc- Received: from jws10950.mail.sg3.yahoo.com by sendmailws101b.mail.sg3.yahoo.com; Tue, 13 Sep 2016 07:44:19 +0000; 1473752659.525 Date: Tue, 13 Sep 2016 07:44:19 +0000 (UTC) From: MAC Lee To: "users@dpdk.org" Message-ID: <1831596038.240091.1473752659296@mail.yahoo.com> MIME-Version: 1.0 References: <1831596038.240091.1473752659296.ref@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Can't enable RSS in DPDK with MLX5 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: MAC Lee List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2016 07:44:23 -0000 Hi All,=C2=A0 =C2=A0 I encounter a problem when enable RSS in DPDK( I am us= ing 16.04 with OFED 3.3-1.0.4.0) using MLX5 PMD. I tried to enable RSS func= tion in my DPDK application by setting=C2=A01. =C2=A0.rxmode.mq_mode =3D ET= H_MQ_RX_RSS,=C2=A02. =C2=A0.rx_adv_conf.rss_conf.rss_hf =3D ETH_RSS_PROTO_M= ASK with RSS key length 40,//I also try ETH_RSS_IPV4 and ETH_RSS_NONFRAG_IP= V4_UDP, but still no luck3. update the reta using rte_eth_dev_rss_reta_upda= te however, when I print out the mbuf->hash.fdir.hash, mbuf->hash.fdir.id, mbu= f->hash.rss after rte_eth_rx_burst(). All of these values are 0. I also test the RSS using Testpmd and modify the testpmd to print those val= ue after =C2=A0rte_eth_rx_burst(). But still bad luck, =C2=A0I still got al= l 0.=C2=A0What I did using Testpmd:1. testpmd -c 0x3f -n 4 -w 06:00.0,txq_i= nline=3D200 -- --burst=3D64 --txd=3D4096 --rxd=3D1024 --mbcache=3D512 --rxq= =3D4 --txq=3D4 --nb-cores=3D4 --rss-udp --i2. testpmd>stop3. testpmd>set fw= d rxonly4. testpmd> port config all rss udp5. testpmd>start6. Then pump tra= ffic using packet generator and monitor the print out of buf->hash.fdir.has= h, mbuf->hash.fdir.id, mbuf->hash.rss in testpmdMay I know how can I enable= the RSS function in DPDK application using MLX5 PMD? Best Regards,Marco >From thomas.monjalon@6wind.com Tue Sep 13 11:03:40 2016 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 09140591F for ; Tue, 13 Sep 2016 11:03:40 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id c131so100498720wmh.0 for ; Tue, 13 Sep 2016 02:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=P6GldYiXxcKpJOE3XeoLAxX7PthKZeehXQ3bXOUGZ+k=; b=qbwcngehQY0HIaHnm7DEUVvAcEzg+XCiC+WUAmSm0UYrlcuWLpzWhNwOs4+CUgmkpd pYfvX5/wpnjpiykiboP/hPccBsdOsLZuJAQ9rO1RVQ6x2YPPXK4709X2c+mSI2t/ZCaN BmgF3jSSDp+puuXfySbAOn16820UU9aPxkWkmfOcg1kVUTJ34YX98PBwFJaY+Ch18vE0 DyPGTbcF4w3Q9dJnhAlzpUmHYS85RV7TghGazp3cRuWyF3vsQtR9A3+pVOl5XR+24kgX 5MutfWWDRtoiQZbkvjrvbZRdBKn6VWsTcR+YPQwH95HmkjtyKAUKMxzgHND6kVs3r8e7 f6nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=P6GldYiXxcKpJOE3XeoLAxX7PthKZeehXQ3bXOUGZ+k=; b=KlMLwWpSU02zsjAUwEOlnVK+wxqXi5leLpHZ7hfOaTkLmiddQUIil8mi0P5WW4pnG+ BUW7pSwJLvjJ064W528upWOIGitfYaqoDtuezg6btjqGcg8bLWfIjiQjX1dwC1v8O9/s h5mhFhE8GHoidi2N6M2ZVYhOL6sqVSsY6SP19zSpiAANofzJzNohFARAwqUotrRLoBW5 mjumgKOhrj1YJVYv7lMfwDtaxMHxnh1+utqCFkiB4ba4Fm6OXeInKW3TZmh8gVAXMPtM PeEgPOtNN+dlRzPQBVUEE1CWZH5MLvr2kwj1rNekuWa99vLevLX0PG/ATWe31tgjbXBH olSg== X-Gm-Message-State: AE9vXwMB0drwUxxwBVHQtgOkCYBIqrxfRAuwRrlgvjX53Tg3s1t+4zLx1W0W0hDbpo2Jy1hF X-Received: by 10.194.133.104 with SMTP id pb8mr19242814wjb.139.1473757419663; Tue, 13 Sep 2016 02:03:39 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id i131sm16487990wmg.10.2016.09.13.02.03.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Sep 2016 02:03:38 -0700 (PDT) From: Thomas Monjalon To: Michael Wildt Cc: users@dpdk.org Date: Tue, 13 Sep 2016 11:03:38 +0200 Message-ID: <2139728.s9C09RKb8B@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-users] Cross compile for ARM64 fails due to librte_vhost and pmdinfogen issues 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: Tue, 13 Sep 2016 09:03:40 -0000 Hi, 2016-09-12 22:20, Michael Wildt: > I'm attempting to cross compile DPDK on an x86 for an ARM64 target. This > fails in the following areas, using latest dpdk as of 9/12. When compiling > natively there are no issues. Your analysis below seems good. Interestingly, I do not see such error (don't know why). Please could you share the commands you are using? > - librte_vhost, fails with: > > /projects/dpdk_latest/lib/librte_vhost/vhost_user/virtio-net-user.c:250:23: > error: array subscript is above array bounds [-Werror=array-bounds] > rvq = dev->virtqueue[i * VIRTIO_QNUM + VIRTIO_RXQ]; [...] > - buildtools/pmdinfogen, fails with: > > == Build buildtools/pmdinfogen > HOSTCC pmdinfogen.o > /projects/dpdk_test_wget/dpdk-16.07/build/include/rte_byteorder.h: > Assembler messages: > /projects/dpdk_test_wget/dpdk-16.07/build/include/rte_byteorder.h:53: > Error: no such instruction: `rev16 %bx,%bx' [...] > - The issue is due to the rte_byteorder.h file which gets symlink'ed with > the ARM version at the beginning of the build. The pmdinfogen is always > compiled for x86 thus the asm is failing. I see two ways to address this. > > - Have pmdinfogen always pickup the local OS rte_byteorder.h file, not the > ARCH symlinked one. Yes we should not use DPDK headers in pmdinfogen or have a host-include/. > - Fix pmdinfogen such that it gets cross compiled correctly as the rest of > the code. Did a quick attempt by setting the HOST_OS to 0, , but then it > fails at the HOST_LD. No it must be native because it is part of the build system.