LWN.net Logo

implementation of IEEE 802.1Qbg in lldpad

From:  Jens Osterkamp <jens@linux.vnet.ibm.com>
To:  e1000-eedc@lists.sourceforge.net, virtualization@lists.linux-foundation.org, evb@yahoogroups.com
Subject:  implementation of IEEE 802.1Qbg in lldpad
Date:  Mon, 8 Nov 2010 17:11:51 +0100
Message-ID:  <1289232720-27443-1-git-send-email-jens@linux.vnet.ibm.com>
Cc:  chrisw@redhat.com
Archive-link:  Article, Thread

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 TLV exchange from the command
line using lldptool.

VDP profiles consisting of mode,mgrid,typeid,typeidversion,instanceid,mac,vlan
can be given to lldpad with lldptool or sent to lldpad via netlink messages from
the kernel or another program, e.g. libvirt.

VDP profiles are processed through the VDP/VSI and ECP state machines and
sent out in ECP frames.
ACK frames are received and processed through ECP and VDP/VSI state machines.

It implements a VDP bridge role for a port together with a lldptool command to
switch a port to the bridge role.

These patches apply against lldpad 0.9.38. Protocol debug messages are now logged
to syslog via LLDPAD_* macros and no longer to console. If you want to see them,
configure your syslog daemon to collect debug messages and start lldpad with -V 7.

Changes since last posting:

 - fix to prevent parsing of TLVs across frame boundary
 - fixed two minor memleaks in lldp_vdp_cmds.c and event_iface.c
 - fixed typo

For more information about lldpad take a look at

http://sourceforge.net/projects/e1000/files/DCB%20Tools/l...

Please review and comment.

Thanks !

                        Jens

Copyright © 2010, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds