FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
set dpdk interface descriptors <interface> [rx <nn>] [tx <nn>].
This command sets the number of DPDK '<em>rx</em>' and '<em>tx</em>' descriptors for the given physical interface. Use the command '<em>show hardware-interface</em>' to display the current descriptor allocation.
vpp# set dpdk interface descriptors GigabitEthernet0/8/0 rx 512 tx 512
Declaration: cmd_set_dpdk_if_desc (src/plugins/dpdk/device/cli.c line 349)
Implementation: set_dpdk_if_desc.
show dpdk buffer.
This command displays statistics of each DPDK mempool.
vpp# show dpdk buffer
name="mbuf_pool_socket0" available = 15104 allocated = 1280 total = 16384
Declaration: cmd_show_dpdk_buffer (src/plugins/dpdk/device/cli.c line 81)
Implementation: show_dpdk_buffer.
show dpdk physmem.
This command displays DPDK physmem layout
vpp# show dpdk physmem
Declaration: cmd_show_dpdk_physmem (src/plugins/dpdk/device/cli.c line 166)
Implementation: show_dpdk_physmem.
show dpdk version.
This command is used to display the current DPDK version and the list of arguments passed to DPDK when started.
vpp# show dpdk version
DPDK Version: DPDK 16.11.0
DPDK EAL init args: -c 1 -n 4 --huge-dir /run/vpp/hugepages --file-prefix vpp -w 0000:00:08.0 -w 0000:00:09.0 --master-lcore 0 --socket-mem 256
Declaration: show_vpe_version_command (src/plugins/dpdk/device/cli.c line 380)
Implementation: show_dpdk_version_command_fn.
test dpdk buffer [allocate <nn>] [free <nn>].
This command tests the allocation and freeing of DPDK buffers. If both '<em>allocate</em>' and '<em>free</em>' are entered on the same command, the '<em>free</em>' is executed first. If no parameters are provided, this command display how many DPDK buffers the test command has allocated.
Example of how to display how many DPDK buffer test command has allocated:
vpp# test dpdk buffer
Currently 0 buffers allocated
Example of how to allocate DPDK buffers using the test command:
vpp# test dpdk buffer allocate 10
Currently 10 buffers allocated
Example of how to free DPDK buffers allocated by the test command:
vpp# test dpdk buffer free 10
Currently 0 buffers allocated
Declaration: cmd_test_dpdk_buffer (src/plugins/dpdk/device/cli.c line 254)
Implementation: test_dpdk_buffer.