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