lldptool: man page fixes for MED and DCBX TLVs

Two small fixes to the lldptool med/dcbx man pages. The DCBX enableTx
feature will enable/disable the advertise bit of the CEE TLVs and
add the MED devtype "none" command.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
lldptool: update bridge scope long form options

The lldptool '-g' option can be used to specify the bridge scope.
Three agent options exist nearest bridge "nb", nearest customer
bridge "ncb", and nearest nontpmr bridge "nntpmrb".

The long forms of these options are documented as nearest_bridge,
nearest_customer_bridge and nearest_nontpmr_bridge. But actual
lldptool values are "nearestbridge" "nearesetcustomerbridge" and
"nearestnontpmrbridge".

I tend to like the man page style better so this patch adds the long
form with "_" to lldptool as well.

Also fix a typo in "nearestnontpmrbridge" option.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
lldpad: check for existence of device before allowing set

With recent change to allow configuration of devices when the
interface is down the check to verify the device exists was
broken. This patch fixes it.

commit 8a44162fab3ea4bb7e5d23077766f7cfd4bcc440
Author: John Fastabend <john.r.fastabend@intel.com>
Date:   Mon Jul 8 12:12:08 2013 -0700

    lldpad: do not require active TLVs to configure attributes

Fix this by checking that first the ifindex can be looked up
and second that it is one of the valid lldp device types.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
vdptest man page minor fixes

Fix some minor typos and wrong examples.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
vdpnl remove blank after colon in trace

Make the trace statements consistent and remove
the blank after the colon after the function name.
Also rename the define VSI22_ID_UUID to VDP22_ID_UUID.
All VDP 2.2 protocol related names start with VDP22.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
vdpnl determine filter information format from netlink msg

The type of the filter information format is determined
from the incoming netlink message information.
If VLAN IDs are supplied then select VID.
If MAC and VLAN ID pairs are supplied then select MACVID.
Support for group id will be added later.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
vdpnl pretty indentation

Do a nicer indentation on the defines for
IFLA_VF_MAC and IFLA_VF_VLAN netlink message parsing
policy defines.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
vdpnl add trace statement on filter information

Add a trace statement to document the format of the
filter information.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
qbg_utils increase buffer to store uuid

Increase the buffer to store a UUID slightly so it can
also be used to store a IPV6 address in pretty print format.
So the define can be used to define a buffer large enough
to held a pretty printed UUID or IPV6 address.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
vdptest print wrong values in trace

Functions check_typeid and check_typeidver
printed the wrong values in the debug statement.
This patch fixes this.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>