vdptest connect to lldpad broken

With the removal of the /var/run/lldpad.pid file, vdptest
connects to lldpad via the liblldp_clif.so library.
It sends a ping command to llpdad and expects a pongXXXXX
reply back, with XXXXX being lldpad process identifer.
The parsing of the reply fails, it is prepended by some
characters. Also the reply string is not null terminated
and might have trailing characters.

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

The inline function returned the wrong bits
of the field where the version number is stored..

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

Report gpid bit to VDP upper layer protocol.

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

Offer a generic function for notifications within qbg modules.
Add  module identifier identifier as sender id.

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

Change the module notification type from ecp22 to the
upper layer protocols to a better name.
Add support to send ecp22 payload upstream.

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

Add checks for ecp22 header fields subtype and version.
Drop packets on invalid values and print an error message.

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

Return 0 on success and errno on error.
The most common error is -ENOENT when the interface
is not found in the interface list of the module.

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