DPDK usage discussions
 help / color / mirror / Atom feed
From: Bhargav Patel <br13patel@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users]  Pipeline command failing in softnic CLI
Date: Thu, 16 Aug 2018 14:42:43 +0530	[thread overview]
Message-ID: <CALE2S-meFLwxhBu=VQbj06L9_yW8CF9eDWHxXVinx-spJ+VMtw@mail.gmail.com> (raw)

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

                 reply	other threads:[~2018-08-16  9: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='CALE2S-meFLwxhBu=VQbj06L9_yW8CF9eDWHxXVinx-spJ+VMtw@mail.gmail.com' \
    --to=br13patel@gmail.com \
    --cc=users@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).