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 11B22A0548; Wed, 21 Apr 2021 08:06:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D9CF641932; Wed, 21 Apr 2021 08:06:03 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 47FFE418AA for ; Wed, 21 Apr 2021 08:06:02 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 2632CA0579; Wed, 21 Apr 2021 08:06:02 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Wed, 21 Apr 2021 06:06:01 +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 682] [dpdk-21.05]metering_and_policing: Invalid group ID: Invalid argument 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=3D682 Bug ID: 682 Summary: [dpdk-21.05]metering_and_policing: Invalid group ID: Invalid argument 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 21.05.0-rc0:1cd3ce09534e035b3b3cfe0475adee656971fd8c Other software versions: name/version for QEMU, OVS, etc. Repeat as require= d. OS: Fedora 33 5.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=20 # rm -rf x86_64-native-linuxapp-gcc # CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dc_args=3D'-DRTE_EAL_IGB_UIO=3D1' --default-library=3Dstatic x86_64-native-linuxapp-gcc=20 # ninja -C x86_64-native-linuxapp-gcc -j 70=20 2. tester preparation # scp -v .dts/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 # 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=20 # 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=20 # 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=20 # 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=20 # x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 0,1,2 -n 4 -a 0000:84:00.0= -a 0000:84:00.1 --file-prefix=3Ddpdk_18582_20210418103702 -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 # create port meter 2 0 0 yes d d d 0 0 0 # flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst = spec 2 / end actions meter mtr_id 0 / queue index 0 / end Show the output from the previous commands. # testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 4= 00 500 Bad arguments # testpmd> create port meter 2 0 0 yes d d d 0 0 0 meter profile id: Meter profile id not valid (error 2) # testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 = src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst = spec 2 / end actions meter mtr_id 0 / queue index 0 / end port_flow_complain(): Caught PMD error type 3 (group field): cause: 0x7ffe0125f3c8, Invalid group ID: Invalid argument # testpmd> EAL: Error reading from file descriptor 23: Input/output error EAL: Error reading from file descriptor 26: Input/output error Killed Expected Result Explain what is the expected result in text or as an example output: # testpmd> add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 4= 00 500 # testpmd> create port meter 2 0 0 yes d d d 0 0 0 # testpmd> flow create 2 group 0 ingress pattern eth / ipv4 proto mask 255 = src mask 255.255.255.255 dst mask 255.255.255.255 src spec 1.10.11.12 dst spec 2.20.21.22 proto spec 6 / tcp src mask 65535 dst mask 65535 src spec 2 dst = spec 2 / end actions meter mtr_id 0 / queue index 0 / end Flow rule #0 created Regression Is this issue a regression: (Y/N) Y [root@localhost dpdk]# git show c5a3860f36902e1701817b0961bf99a5c96ede3a commit c5a3860f36902e1701817b0961bf99a5c96ede3a (HEAD) Author: Li Zhang Date: Tue Apr 13 18:59:55 2021 +0300 app/testpmd: add meter profile packet mode option add meter profile packet_mode to the ethernet device. One example: add port meter profile rfc2697 (port_id) (profile_id) (cir) (cbs) (ebs) (packet_mode) Signed-off-by: Li Zhang Acked-by: Matan Azrad Acked-by: Ajit Khaparde Stack Trace or Log --=20 You are receiving this mail because: You are the assignee for the bug.=