FD.io VPP  v21.01.1
Vector Packet Processing
DPDK and pcap tx

set dpdk interface descriptors

Summary/usage

set dpdk interface descriptors <interface> [rx <nn>] [tx <nn>].

Description

This command sets the number of DPDK &#39;<em>rx</em>&#39; and &#39;<em>tx</em>&#39; descriptors for the given physical interface. Use the command &#39;<em>show hardware-interface</em>&#39; to display the current descriptor allocation.

Example usage
Example of how to set the DPDK interface descriptors:
vpp# set dpdk interface descriptors GigabitEthernet0/8/0 rx 512 tx 512

Declaration and implementation

Declaration: cmd_set_dpdk_if_desc (src/plugins/dpdk/device/cli.c line 349)

Implementation: set_dpdk_if_desc.

show dpdk buffer

Summary/usage

show dpdk buffer.

Description

This command displays statistics of each DPDK mempool.

Example usage
Example of how to display DPDK buffer data:
vpp# show dpdk buffer
name=&#34;mbuf_pool_socket0&#34;  available =   15104 allocated =    1280 total =   16384

Declaration and implementation

Declaration: cmd_show_dpdk_buffer (src/plugins/dpdk/device/cli.c line 81)

Implementation: show_dpdk_buffer.

show dpdk physmem

Summary/usage

show dpdk physmem.

Description

This command displays DPDK physmem layout

Example usage
Example of how to display DPDK physmem layout:
vpp# show dpdk physmem

Declaration and implementation

Declaration: cmd_show_dpdk_physmem (src/plugins/dpdk/device/cli.c line 166)

Implementation: show_dpdk_physmem.

show dpdk version

Summary/usage

show dpdk version.

Description

This command is used to display the current DPDK version and the list of arguments passed to DPDK when started.

Example usage
Example of how to display how many DPDK buffer test command has allocated:
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 and implementation

Declaration: show_vpe_version_command (src/plugins/dpdk/device/cli.c line 380)

Implementation: show_dpdk_version_command_fn.

test dpdk buffer

Summary/usage

test dpdk buffer [allocate &lt;nn&gt;] [free &lt;nn&gt;].

Description

This command tests the allocation and freeing of DPDK buffers. If both &#39;<em>allocate</em>&#39; and &#39;<em>free</em>&#39; are entered on the same command, the &#39;<em>free</em>&#39; is executed first. If no parameters are provided, this command display how many DPDK buffers the test command has allocated.

Example usage

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 and implementation

Declaration: cmd_test_dpdk_buffer (src/plugins/dpdk/device/cli.c line 254)

Implementation: test_dpdk_buffer.