[PATCH 1/1] staging: hv: Fix Kconfig dependency of hv_blkvsc

2010-07-23 Thread Haiyang Zhang
From: Haiyang Zhang Subject: staging: hv: Fix Kconfig dependency of hv_blkvsc LBDAF is not available nor necessary on 64BIT kernel. This patch fixed the dependency for hv_blkvsc module on 64BIT kernel. Thanks vrataj2 [vrat...@comcast.net] for reporting this problem. Signed-off-by: Haiyang Zhang

[PATCH 16/17] lldpad support for libvirt netlink message

2010-07-23 Thread Jens Osterkamp
This code receives a IEEE 802.1Qbg virtual station instance from libvirt in a SETLINK message. The parsed VSI is then handed over to VDP for processing. The VDP state machine processes the VSI while libvirt polls the result using GETLINK. Requires at least Linux kernel 2.6.35-rc1. Signed-off-by:

[PATCH 02/17] implementation of IEEE 802.1Qbg in lldpad, part 1

2010-07-23 Thread Jens Osterkamp
This patch contains the first part of an initial implementation of the IEEE 802.1Qbg standard: It contains code for the exchange of EVB TLV capabilities between a host with virtual machines and an adjacent switch. Exchange of EVB TLV may be enabled or disabled on a per port basis. Information abou

[PATCH 10/17] allow to set both supported forwarding modes

2010-07-23 Thread Jens Osterkamp
In the previous version of lldptool, only one setting of either bridge or reflective relay mode was allowed whereas both modes together should be settable. This patch corrects it. Signed-off-by: Jens Osterkamp --- lldp_evb_cmds.c | 20 +++- 1 files changed, 15 insertions(+), 5

[PATCH 05/17] remove VDPL and proper config save and restore

2010-07-23 Thread Jens Osterkamp
This patch contains multiple changes to the EVB protocol implementation: - it completely removes the use of VDPL, which is no longer in the spec - it introduces a mechanism for saving and restoring the EVB setting: If lldpad is loaded, and no EVB settings can be loaded from the c

[PATCH 17/17] do not use macv[tap/lan] interfaces as ports

2010-07-23 Thread Jens Osterkamp
At startup lldpad walks through all network interfaces in the system and creates internal data structures for them. Some interfaces as e.g. vlan and wlan are skipped in the walkthrough, some have to be treated special (e.g. bond devices). This patch adds macvtap and macvlan interfaces to the list o

[PATCH 04/17] BUGFIX: check in correct positions

2010-07-23 Thread Jens Osterkamp
There was a bug in the print function for EVB TLVs that would cause the wrong values to be printed. This patch corrects it and adds some debug statement to evb_print_cfg_tlv. Signed-off-by: Jens Osterkamp --- lldp_evb_clif.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-)

[PATCH 11/17] ECP implementation

2010-07-23 Thread Jens Osterkamp
This is the implementation of the edge control protocol (ECP) as specified in IEEE 802.1Qbg. For this it extends the infrastructure defined lldpad to send and receive ECP frames with a new (yet to be defined) ethertype. Received frames are validated and analyzed before the content is handed to the

[PATCH 14/17] add libnl dependency to configure.ac

2010-07-23 Thread Jens Osterkamp
Signed-off-by: Jens Osterkamp --- configure.ac |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index 619c6c4..8b9d08a 100644 --- a/configure.ac +++ b/configure.ac @@ -12,6 +12,11 @@ PKG_CHECK_MODULES(LIBCONFIG, libconfig, AC_SUBST(LIBCONFI

[PATCH 15/17] use connect instead of bind

2010-07-23 Thread Jens Osterkamp
modifies the setup of the netlink socket in drv_cfg.c to use pid 0 instead of the processes pid. Also replaces bind with connect to allow the reception of netlink messages from libvirt. Preparation patch for communication between libvirt and lldpad. Signed-off-by: Gerhard Stenzel --- drv_cfg.c |

[PATCH 12/17] implementation of vdp

2010-07-23 Thread Jens Osterkamp
This patch contains an initial implemention of VDP as specified in IEEE 802.1Qbg. VDP serves as the upper layer protocol (ULP) for TLVs communicated via the ECP protocol. For this it registers as a new module in lldpad. The VDP module supports a station and a bridge role. As a station, new VSI (vi

[PATCH 01/17] consolidation of MIN and MAX macros in common.h

2010-07-23 Thread Jens Osterkamp
This patch consolidates a modified version of the already existing MIN macro in lldpad to include/common.h and add a MAX macro. Signed-off-by: Jens Osterkamp --- include/common.h | 14 ++ include/dcb_protocol.h |4 2 files changed, 14 insertions(+), 4 deletions(-) d

[PATCH 06/17] BUGFIX: agree to max of rte

2010-07-23 Thread Jens Osterkamp
according to draft, both sides should agree on the maximum value of rte. Signed-off-by: Jens Osterkamp --- lldp_evb.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lldp_evb.c b/lldp_evb.c index c9a99bc..bce01b6 100644 --- a/lldp_evb.c +++ b/lldp_evb.c @@ -281,7 +281,7

[PATCH 03/17] support for getting and setting EVB TLV parameters

2010-07-23 Thread Jens Osterkamp
This patch adds for querying and setting parameters used in the exchange of EVB TLV messages. The parameters that can be set are: - forwarding mode - host protocol capabilities (RTE, ECP, VDP and VDPL) - no. of supported VSIs - retransmission timer exponent (RTE) T

[PATCH 09/17] BUGFIX: check for existence of ifup

2010-07-23 Thread Jens Osterkamp
added an additional check for existence of the ifup operation. If it does not exist, just skip it. Signed-off-by: Jens Osterkamp --- config.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config.c b/config.c index 5cfac83..26afe3b 100644 --- a/config.c +++ b/confi

[PATCH 13/17] VDP commandline interface

2010-07-23 Thread Jens Osterkamp
This patch implements the command line interface to control the VDP module. In station role, it allows to register a new VSI (guest interface) profile and query its state. In bridge role, it allows to query the state of all registered profiles. With lldptool it is possible to set the role from defa

[PATCH 07/17] BUGFIX: avoid compile warnings

2010-07-23 Thread Jens Osterkamp
Signed-off-by: Jens Osterkamp --- include/lldp_evb_clif.h |2 +- lldp_evb_clif.c |6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/lldp_evb_clif.h b/include/lldp_evb_clif.h index 43083f3..6f3ac99 100644 --- a/include/lldp_evb_clif.h +++ b/include/ll

[PATCH 08/17] BUGFIX: fix formatting in include/lldp_evb_clif.h

2010-07-23 Thread Jens Osterkamp
Signed-off-by: Jens Osterkamp --- include/lldp_evb_clif.h |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/lldp_evb_clif.h b/include/lldp_evb_clif.h index 6f3ac99..3b4b21e 100644 --- a/include/lldp_evb_clif.h +++ b/include/lldp_evb_clif.h @@ -30,20 +30,20 @@

implementation of IEEE 802.1Qbg in lldpad

2010-07-23 Thread Jens Osterkamp
Hi, This set of patches contains the initial implementation of the IEEE 802.1Qbg standard: code for the exchange of EVB TLVs in LLDP frames to negotiate VSI capabalities as well as VDP VSI TLVs between a host with virtual machines and an adjacent switch. It supports setting the parameters of the