From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f48.google.com (mail-vk0-f48.google.com [209.85.213.48]) by dpdk.org (Postfix) with ESMTP id 305682BAF for ; Thu, 16 Aug 2018 11:12:56 +0200 (CEST) Received: by mail-vk0-f48.google.com with SMTP id b14-v6so1048336vke.13 for ; Thu, 16 Aug 2018 02:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=C8xg5fy0Bs9jtvCTXW7F4geB9SKqFV8RE0v3a/a3F/8=; b=Z1wbPY5p8hF5XYtB4/VSxutHLgl5xtTm+9hi3D/MXDwGL/iM6kyO/ba5IM8qSa8vYb IX4B5cnSYw3DtASzwdLbXAgW8m1R+tU7JYAeTp8BLJwHJIFOnQinWrcal0ccMQIsNJ0h R1y00XxBe4J4TkvymI7YkIlc5koXMJwiIdzQJqjmda4jyQtBAnOaNf/dL8kstHlyZd3C //x6g/gTwi18+6bFSxtNXJQEPWhoyffg5hStKnmDxzEL5tqLzLQPGDUtA3RH4idGJfHh /a7v4fcD8FgAff1cO+bFuN+tOpx0gfOJcbzhn7Md5m022FB7x3rrA2STlLAa1v1wnKGK TEAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=C8xg5fy0Bs9jtvCTXW7F4geB9SKqFV8RE0v3a/a3F/8=; b=cFhb2b0govMBgt/S+Jvh23E03LiJ7g2ZI53KDbWhscMBPkz0qLsErq9imAvF1fnIQv vdkdCUbItOCMY7QKggwrwYeQxexk95O44cKpAC+TaBj+Sh9v4aJP+qTk1/W0NAJlmzRB KLp4mHbQBbZ9xd8MFUBGNQ1crWZFpNJBhyQq57NST6hHZEIHUX1rNFPMybNfdLuHva2D Icf1jQmlGzULGJ+XtPrOVBLbwQXI48YBfLkc7jBTy6Nnm73Hm5N/nYQtLTgng33SdNCK 0osTlmFrmJNsu3pksYpgSbYoBQ9ndV85JUTEaSvq+TnHK31O8nU8We1VafKVBAQYWg8u BdMQ== X-Gm-Message-State: AOUpUlGWBNbMMJQvEHC+Mr0ZQcEB1zZp2XT2orcMOOotn4EERFk06tIR NcbOyPTMABe+GlovO2BKOhKPwl0A8r/PpjiJc4OpRGfHMY0= X-Google-Smtp-Source: AA+uWPxBkLjsGgpoq9yAuZsGdO00qTG1ceH8IROFjMXgpLFpShJRc20+tVo04IjUn/2iy+7yI3+LFKsx8NGs5I7j/nw= X-Received: by 2002:a1f:8093:: with SMTP id b141-v6mr18673098vkd.45.1534410775080; Thu, 16 Aug 2018 02:12:55 -0700 (PDT) MIME-Version: 1.0 From: Bhargav Patel Date: Thu, 16 Aug 2018 14:42:43 +0530 Message-ID: To: users@dpdk.org X-Mailman-Approved-At: Tue, 21 Aug 2018 22:26:00 +0200 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Pipeline command failing in softnic CLI X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2018 09:12:56 -0000 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 : 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