FD.io VPP
v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
|
create host-interface name <ifname> [hw-addr <mac-addr>].
Create a host interface that will attach to a linux AF_PACKET interface, one side of a veth pair. The veth pair must already exist. Once created, a new host interface will exist in VPP with the name 'host-<ifname>', where '<ifname>' is the name of the specified veth pair. Use the 'show interface' command to display host interface details.
This command has the following optional parameters:
vpp# create host-interface name vpp1
host-vpp1
Once the host interface is created, enable the interface using: vpp# set interface state host-vpp1 up
Declaration: af_packet_create_command (src/vnet/devices/af_packet/cli.c line 133)
Implementation: af_packet_create_command_fn.
delete host-interface name <ifname>.
Delete a host interface. Use the linux interface name to identify the host interface to be deleted. In VPP, host interfaces are named as 'host-<ifname>', where '<ifname>' is the name of the linux interface.
vpp# delete host-interface name vpp1
Declaration: af_packet_delete_command (src/vnet/devices/af_packet/cli.c line 190)
Implementation: af_packet_delete_command_fn.
set host-interface l4-cksum-offload <host-if-name> <on|off>.
Set TCP/UDP offload checksum calculation. Use interface name to identify the interface to set TCP/UDP offload checksum calculation.
vpp# set host-interface l4-cksum-offload host-vpp0 off
vpp# set host-interface l4-cksum-offload host-vpp0 on
Declaration: af_packet_set_l4_cksum_offload_command (src/vnet/devices/af_packet/cli.c line 247)
Implementation: af_packet_set_l4_cksum_offload_command_fn.