[dpdk-users] Pipeline command failing in softnic CLI

Bhargav Patel br13patel at gmail.com
Thu Aug 16 11:12:43 CEST 2018


Hi All,

We are testing TM using testpmd application. Below is our command log.

   - *Testpmd console output*

root:dpdk#
root:dpdk# ./build/app/testpmd -c 0x3 --vdev
'net_softnic0,firmware=~/firmware.cli,cpu_id=0,conn_port=8087' -- -i
--forward-mode=softnic --portmask=0x2
EAL: Detected 2 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Probing VFIO support...
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable
clock cycles !
EAL: PCI device 0000:00:03.0 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:100e net_e1000_em
EAL: PCI device 0000:00:08.0 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:100e net_e1000_em
Interactive-mode selected
Set softnic packet forwarding mode
previous number of forwarding ports 2 - changed to number of configured
ports 1
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=155456, size=2176,
socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
Configuring Port 0 (socket 0)
Port 0: 52:54:00:4B:55:0C
Configuring Port 1 (socket 0)
; SPDX-License-Identifier: BSD-3-Clause
; Copyright(c) 2018 Intel Corporation

link LINK dev 0000:00:03.0

Port 1: 00:00:00:00:00:00
Checking link statuses...
Done
testpmd>
Port 0: LSC event

testpmd> set port tm hierarchy default 1
testpmd> start
softnic packet forwarding - ports=1 - cores=1 - streams=1 - NUMA support
enabled, MP over anonymous pages disabled
Logical Core 1 (socket 0) forwards packets on 1 streams:
  RX P=1/Q=0 (socket 0) -> TX P=1/Q=0 (socket 0) peer=02:00:00:00:00:01

  softnic packet forwarding packets/burst=32
  nb forwarding cores=1 - nb forwarding ports=1
  port 0: RX queue number: 1 Tx queue number: 1
    Rx offloads=0x1000 Tx offloads=0x0
    RX queue: 0
      RX desc=256 - RX free threshold=0
      RX threshold registers: pthresh=0 hthresh=0  wthresh=0
      RX Offloads=0x0
    TX queue: 0
      TX desc=256 - TX free threshold=0
      TX threshold registers: pthresh=0 hthresh=0  wthresh=0
      TX offloads=0x0 - TX RS bit threshold=0
  port 1: RX queue number: 1 Tx queue number: 1
    Rx offloads=0x1000 Tx offloads=0x0
    RX queue: 0
      RX desc=0 - RX free threshold=0
      RX threshold registers: pthresh=0 hthresh=0  wthresh=0
      RX Offloads=0x0
    TX queue: 0
      TX desc=0 - TX free threshold=0
      TX threshold registers: pthresh=0 hthresh=0  wthresh=0
      TX offloads=0x0 - TX RS bit threshold=0
  Root node added (Start id 1000000, Count 1, level 0)
  Subport nodes added (Start id 900000, Count 1, level 1)
  Pipe nodes added (Start id 800000, Count 4, level 2)
  TC nodes added (Start id 700000, Count 16, level 3)
  Queue nodes added (Start id 0, Count 64, level 4)

  TM Hierarchy Specified!
  Hierarchy Committed (port 1)!
; SPDX-License-Identifier: BSD-3-Clause
; Copyright(c) 2018 Intel Corporation

link LINK dev 0000:00:03.0

testpmd>


   - *Softnic CLI console output*

root:dpdk# telnet 127.0.0.1 8087
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

Welcome to Soft NIC!

softnic>
softnic> tmgr TM0
softnic> pipeline PIPELINE0 period 10 offset_port_id 0
softnic> pipeline PIPELINE0 port in bsz 32 link LINK rxq 0
softnic> pipeline PIPELINE0 port in bsz 32 tmgr TM0
softnic> pipeline PIPELINE0 port out bsz 32 tmgr TM0
softnic> pipeline PIPELINE0 port out bsz 32 link LINK txq 0
softnic> table action profile tmacl ipv4 offset 270 fwd tm spp 1 pps 4
softnic> pipeline PIPELINE0 table match acl ipv4 offset 270 size 4K action
tmacl
softnic> pipeline PIPELINE0 port in 0 table 0
softnic> thread 1 pipeline PIPELINE0 enable
softnic> pipeline PIPELINE0 table 0 rule add match default action fwd drop
softnic> pipeline PIPELINE0 table 0 rule add match acl priority 0 ipv4
0.0.0.0 32 192.168.0.2 32 0 65535 0 65535 17 action tm subport 900000 pipe
800000
Command "pipeline" failed.
softnic>
softnic>

We are not able to execute "pipeline PIPELINE0 table 0 rule add match acl
priority 0 ipv4 0.0.0.0 32 192.168.0.2 32 0 65535 0 65535 17 action tm
subport 900000 pipe 800000" command.

Can anyone please help on this.

Thanks,
Bhargav


More information about the users mailing list