From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [dpdk-dev] [Bug 688] [dpdk-21.05]metering_and_policing: Failed to add policy actions
Date: Sun, 25 Apr 2021 07:12:25 +0000 [thread overview]
Message-ID: <bug-688-3@http.bugs.dpdk.org/> (raw)
https://bugs.dpdk.org/show_bug.cgi?id=688
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 remote -v
&& git show-ref --heads
version: 21.05-rc1:1b593b9c832e9b284cc59665fe662242a3fc1daf
Other software versions: name/version for QEMU, OVS, etc. Repeat as required.
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
# rm -rf x86_64-native-linuxapp-clang
# CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib
-Dc_args='-DRTE_EAL_IGB_UIO=1' --default-library=static
x86_64-native-linuxapp-clang
# ninja -C x86_64-native-linuxapp-clang
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
# tar xf /tmp/meter_and_policy_config.tar.gz -C /root/dpdk/drivers/net/softnic
# 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
# 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 ipv4
offset 270 size 4K action AP0/g'
/root/dpdk/drivers/net/softnic/meter_and_policing_firmware.cli-5
# 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
# 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=dpdk_20927_20210425061914 -s 0x4 --vdev
'net_softnic0,firmware=/root/dpdk/drivers/net/softnic/meter_and_policing_firmware.cli-5'
-- -i --rxq=2 --txq=2 --portmask=0x4 --disable-rss
# add port meter profile trtcm_rfc2698 2 0 3125000000 3125000000 400 500 0
# 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
Bad arguments
Expected Result
Add policy actions successfully
Regression
Is this issue a regression: (Y/N) Y
[root@localhost dpdk]# git show f29fa2c59b858dc725c3d8486eddb59797bbb6dc
commit f29fa2c59b858dc725c3d8486eddb59797bbb6dc
Author: Haifei Luo <haifeil@nvidia.com>
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 <haifeil@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
--
You are receiving this mail because:
You are the assignee for the bug.
reply other threads:[~2021-04-25 7:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-688-3@http.bugs.dpdk.org/ \
--to=bugzilla@dpdk.org \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.