Add a 64-byte interface "tag" for vhost and tap interfaces 80/3980/7
authorDave Barach <dave@barachs.net>
Mon, 28 Nov 2016 16:41:35 +0000 (11:41 -0500)
committerDave Wallace <dwallacelf@gmail.com>
Thu, 1 Dec 2016 22:27:31 +0000 (22:27 +0000)
commit7be864ad0d8e3b139a277fb4a0234480f0cc3daa
tree75e69823c8cca3b780f27b54f2753f4ba7a987a5
parente245d5ecef9a7b0969d160943b0a817c46e09f71
Add a 64-byte interface "tag" for vhost and tap interfaces

This patch should dispose of spurious objections around interface tag
requirements, currently in use as excuses not to support the vpp ML2
plugin.

Add "u8 tag[64];" to the sw_interface_details message sent by vpp to
control-plane clients. Add u8 tag[64] to the create_vhost_user_if and
tap_connect APIs.

Added debug CLI to set/show/clear the interface tag on any vnet sw
interface. Added the sw_interface_tag_add_del API to set/clear
tags on any vnet sw interface.

There can be no expectation of "tag atomicity" with respect to
physical hardware. Vpp discovers devices before establishing a
control-plane connection.

This patch upload verifies using the csit oper-161128 branch

Change-Id: If8520119e7a586c5ccf0fdda82484ac205622855
Signed-off-by: Dave Barach <dave@barachs.net>
vnet/vnet/interface.c
vnet/vnet/interface_cli.c
vnet/vnet/interface_funcs.h
vnet/vnet/vnet.h
vpp-api-test/vat/api_format.c
vpp/vpp-api/api.c
vpp/vpp-api/custom_dump.c
vpp/vpp-api/vpe.api