From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EB12EA0548; Sun, 25 Apr 2021 09:12:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 86AAA4068C; Sun, 25 Apr 2021 09:12:27 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 2DA3340685 for ; Sun, 25 Apr 2021 09:12:26 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 0AF6DA09E4; Sun, 25 Apr 2021 09:12:26 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Sun, 25 Apr 2021 07:12:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: longfengx.liang@intel.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 688] [dpdk-21.05]metering_and_policing: Failed to add policy actions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D688 Bug ID: 688 Summary: [dpdk-21.05]metering_and_policing: Failed to add policy actions Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: longfengx.liang@intel.com Target Milestone: --- Environment DPDK version: Use make showversion or for a non-released version: git remot= e -v && git show-ref --heads version: 21.05-rc1:1b593b9c832e9b284cc59665fe662242a3fc1daf Other software versions: name/version for QEMU, OVS, etc. Repeat as require= d. OS: Fedora 33=C2=A05.9.10-200.fc33.x86_64 Compiler: gcc (GCC) 10.2.1 20201016 (Red Hat 10.2.1-6) Hardware platform: Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz NIC hardware: XL710 for 40GbE QSFP+ Driver version: 2.15.9 NIC firmware: 8.30 0x8000a4ae 1.2926.0 Test Setup Steps to reproduce List the steps to reproduce the issue. 1. build dpdk # rm -rf x86_64-native-linuxapp-clang=20 # CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dc_args=3D'-DRTE_EAL_IGB_UIO=3D1' --default-library=3Dstatic x86_64-native-linuxapp-clang=20 # ninja -C x86_64-native-linuxapp-clang=20=20 2. tester preparation # scp -v ./dep/meter_and_policy_config.tar.gz root@10.240.183.141:/tmp 3. DUT preparation # ./usertools/dpdk-devbind.py -b vfio-pci 0000:84:00.0 0000:84:00.1=20 # tar xf /tmp/meter_and_policy_config.tar.gz -C /root/dpdk/drivers/net/soft= nic=20 # cp /root/dpdk/drivers/net/softnic/meter_and_policing_firmware.cli /root/dpdk/drivers/net/softnic/meter_and_policing_firmware.cli-5 # sed -i -e 's/^.*link LINK0 dev.*$/link LINK0 dev 0000:84:00.0/g' /root/dpdk/drivers/net/softnic/meter_and_policing_firmware.cli-5=20 # sed -i -e 's/^.*link LINK1 dev.*$/link LINK1 dev 0000:84:00.1/g' /root/dpdk/drivers/net/softnic/meter_and_policing_firmware.cli-5 # sed -i -e 's/^.*table action profile AP0.*$/table action profile AP0 ipv4 offset 270 fwd meter trtcm tc 1 stats pkts/g' /root/dpdk/drivers/net/softnic/meter_and_policing_firmware.cli-5 # sed -i -e 's/^.*pipeline RX table match.*$/pipeline RX table match acl ip= v4 offset 270 size 4K action AP0/g' /root/dpdk/drivers/net/softnic/meter_and_policing_firmware.cli-5=20 # sed -i -e 's/thread 5 pipeline RX enable/thread 2 pipeline RX enable/g' /root/dpdk/drivers/net/softnic/meter_and_policing_firmware.cli-5=20 # sed -i -e 's/thread 5 pipeline TX enable/thread 2 pipeline TX enable/g' /root/dpdk/drivers/net/softnic/meter_and_policing_firmware.cli-5 4. lanch app # x86_64-native-linuxapp-clang/app/dpdk-testpmd -l 0,1,2 -n 4 -a 0000:84:00= .0 -a 0000:84:00.1 --file-prefix=3Ddpdk_20927_20210425061914 -s 0x4 --vdev 'net_softnic0,firmware=3D/root/dpdk/drivers/net/softnic/meter_and_policing_= firmware.cli-5' -- -i --rxq=3D2 --txq=3D2 --portmask=3D0x4 --disable-rss # add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 0= =20 # add port meter policy 0 1 g_actions rss / end y_actions end Show the output from the previous commands. # #testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 = 400 500 0 #testpmd> add port meter policy 0 1 g_actions rss / end y_actions end= =20 Bad arguments Expected Result Add policy actions successfully Regression Is this issue a regression: (Y/N) Y=C2=A0 [root@localhost dpdk]# git show f29fa2c59b858dc725c3d8486eddb59797bbb6dc commit f29fa2c59b858dc725c3d8486eddb59797bbb6dc Author: Haifei Luo Date: Tue Apr 20 17:04:50 2021 +0300 app/testpmd: support policy actions per color Add the create/del policy CLIs to support actions per color. The CLIs are: Create: add port meter policy (port_id) (policy_id) g_actions (actions) y_actions (actions) r_actions (actions) Delete: del port meter policy (port_id) (policy_id) Examples: testpmd> add port meter policy 0 1 g_actions rss / end y_actions end r_actions drop / end testpmd> del port meter policy 0 1 Signed-off-by: Haifei Luo Acked-by: Matan Azrad Acked-by: Ajit Khaparde --=20 You are receiving this mail because: You are the assignee for the bug.=