DPDK and pcap tx
set dpdk interface descriptors
set dpdk interface descriptors <interface> [rx <nn>] [tx <nn>]
This command sets the number of DPDK rx
and
tx
descriptors for the given physical interface. Use
the command show hardware-interface
to display the
current descriptor allocation.
Example of how to set the DPDK interface descriptors:
set dpdk interface descriptors GigabitEthernet0/8/0 rx 512 tx 512
Declaration: cmd_set_dpdk_if_desc
src/plugins/dpdk/device/cli.c line 340
Implementation: set_dpdk_if_desc
show dpdk buffer
show dpdk buffer
This command displays statistics of each DPDK mempool.
Example of how to display DPDK buffer data:
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
show dpdk physmem
This command displays DPDK physmem layout
Example of how to display DPDK physmem layout:
show dpdk physmem
Declaration: cmd_show_dpdk_physmem
src/plugins/dpdk/device/cli.c line 166
Implementation: show_dpdk_physmem
show dpdk version
show dpdk version
This command is used to display the current DPDK version and the list of arguments passed to DPDK when started.
Example of how to display how many DPDK buffer test command has allocated:
show dpdk version
DPDK Version: DPDK 16.11.0
DPDK EAL init args: --in-memory --no-telemetry --file-prefix vpp
-w 0000:00:08.0 -w 0000:00:09.0
Declaration: show_vpe_version_command
src/plugins/dpdk/device/cli.c line 372
Implementation: show_dpdk_version_command_fn
test dpdk buffer
test dpdk buffer [allocate <nn>] [free <nn>]
This command tests the allocation and freeing of DPDK buffers.
If both allocate
and free
are entered on the
same command, the free
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:
test dpdk buffer
Currently 0 buffers allocated
Example of how to allocate DPDK buffers using the test command:
test dpdk buffer allocate 10
Currently 10 buffers allocated
Example of how to free DPDK buffers allocated by the test command:
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