FD.io VPP
v21.01.1
Vector Packet Processing
|
create netmap name <ifname>|valeXXX:YYY [hw-addr <mac-addr>] [pipe] [master|slave].
'<em>netmap</em>' is a framework for very fast packet I/O from userspace. '<em>VALE</em>' is an equally fast in-kernel software switch using the netmap API. '<em>netmap</em>' includes '<em>netmap pipes</em>', a shared memory packet transport channel. Together, they provide a high speed user-space interface that allows VPP to patch into a linux namespace, a linux container, or a physical NIC without the use of DPDK. Netmap/VALE generates the '<em>netmap.ko</em>' kernel module that needs to be loaded before netmap interfaces can be created.
Create a netmap interface that will attach to a linux interface. The interface must already exist. Once created, a new netmap interface will exist in VPP with the name '<em>netmap-<ifname></em>', where '<em><ifname></em>' takes one of two forms:
This command has the following optional parameters:
vpp# create netmap name vale00:vpp1 hw-addr 02:FE:3F:34:15:9B pipe master
netmap-vale00:vpp1
Once the netmap interface is created, enable the interface using: vpp# set interface state netmap-vale00:vpp1 up
Declaration: netmap_create_command (extras/deprecated/netmap/cli.c line 152)
Implementation: netmap_create_command_fn.
delete netmap name <ifname>|valeXXX:YYY.
Delete a netmap interface. Use the '<em><ifname></em>' to identify the netmap interface to be deleted. In VPP, netmap interfaces are named as '<em>netmap-<ifname></em>', where '<em><ifname></em>' takes one of two forms:
vpp# delete netmap name vale00:vpp1
Declaration: netmap_delete_command (extras/deprecated/netmap/cli.c line 215)
Implementation: netmap_delete_command_fn.