1; SPDX-License-Identifier: BSD-3-Clause 2; Copyright(c) 2022 Intel Corporation 3 4# Example command line for the DPDK test-pmd application. Out of the 3 application cores (see the 5# -c <core_mask> argument), core 0 is running the control thread doing configuration and CLI, core 1 6# is running the forwarding thread, and core 2 is setup as service core (see the -s <core_mask> 7# argument) for the purpose of running the Soft NIC device: 8# 9# ./build/app/dpdk-testpmd -c 7 -s 4 --vdev 'net_softnic0,firmware=./drivers/net/softnic/firmware.cli,cpu_id=0,conn_port=8086' -- -i 10# 11# Commands from within the DPDK test-pmd application: 12# 13# testpmd> set portlist <softnic_port_id> 14# testpmd> show config fwd 15# testpmd> start 16# 17# To setup the CLI prompt to the Soft NIC device, the DPDK test-pmd application needs to be modified 18# to call the rte_pmd_softnic_manage() function. Once the Soft NIC device is started, the command to 19# get the CLI prompt is: 20# 21# telnet 0.0.0.0 8086 22 23; 24; Pipeline code generation & shared object library build. 25; 26pipeline codegen ./drivers/net/softnic/firmware.spec /tmp/firmware.c 27pipeline libbuild /tmp/firmware.c /tmp/firmware.so 28 29; 30; List of pipelines. 31; 32pipeline RX build lib /tmp/firmware.so io ./drivers/net/softnic/firmware_rx.io numa 0 33pipeline TX build lib /tmp/firmware.so io ./drivers/net/softnic/firmware_tx.io numa 0 34 35; 36; Pipelines-to-threads mapping. For the Soft NIC devices, the pipelines can be mapped to any of the 37; application service cores (see the -s <core_mask> argument): 38; 39thread 2 pipeline RX enable 40thread 2 pipeline TX enable 41