vdp change module id

Change module ID to match the same number as stored
in the type field in the lldp_vdp_cmds.c file

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

Change module ID to match the same number as stored
in the type field in the lldp_vdp_clif.c file

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
vdp_cmds add support for pretty print TLV

Add support in form of call back funtion to return
the VDP protocol data to be display with the lldptool.
The data is extracted from the profile and converted
to an ascii string.

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

Add interface function definition for the pretty print
TLV call back function.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
vdp_clif add pretty print function for TLV

Print out the VDP TLV in a pretty format.

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

Check for a valid pointer when the client_cmd function is
used.

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

Add a call back function for client_cmd to collect VDP TLV
data for the llpdtool to be printed by the pretty print
TLV function.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
lldptool add support for VDP TLV

Add support for the command 'lldptool -i ethx -t -gncb -V vdp'.
This patchs redirects the collection of the data and the
pretty print of the collected data to the vdp module.
This is a hack and a quick workaround. It overwrites
the lldp_mand module id by the lldp_vdp module id.

In a perfect world a vdptool command would exist to do this.
I will keep this todo on my backlog.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
lldp: evb: update man page with ncb agent

EVB uses the nearest customer bridge agent and rejects commands
for other agents. This patch updates the man page examples.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
vdp check for snprintf return code

Check the return code of snprintf and do not proceed
in creation of the VDP protocol TLV data for the pretty
print function when not enough space has been provided
to store all necessary data. In these cases cmd_failed
is now returned.

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