Skip to contentSkip to conversation

metering_and_policing: Failed to add policy actions

dpdk-dev [email protected] 1 participant 1 message Apr 25, 2021

lore
Share & tools
lore

[email protected]

author Acked-by Matan Azrad Acked-by Ajit Khaparde
#0 lore 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: [email protected]
Reporter: [email protected]
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 [email protected]:/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 <[email protected]>
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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.