]> bbs.cooldavid.org Git - net-next-2.6.git/commit
dcbnl: Add support for setapp/getapp commands to dcbnl
authorYi Zou <yi.zou@intel.com>
Mon, 31 Aug 2009 12:32:34 +0000 (12:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Sep 2009 08:24:30 +0000 (01:24 -0700)
commit0f6f290259896afdca30e1ff4a28aff8edd79a14
tree6580c4443af4ce42f3a0df0ed1927c62acb8991c
parent8450ff8cd7fba6e78c07d7c14bf4dc582f8a6c3d
dcbnl: Add support for setapp/getapp commands to dcbnl

This patch adds dcbnl command definitions to support setapp/getapp
functionality from the IEEE 802.1Qaz Data Center Bridging Capability
Exchange protocol (DCBX) specification. Section 3.3 defines the
application protocol and its 802.1p user priority in DCBX, which is
implemented here as a pair of setapp/getapp commands in the kernel
dcbnl for setting and retrieving the user priority for an given
application protocol. The protocol is identified by the combination of
an id and an idtype. Currently, when idtype is 0, the corresponding
id gives the ether type of this protocol, e.g., for FCoE, it will be
0x8906; when idtype is 1, then the corresponding id gives the TCP or
UDP port number.

For more information regarding DCBX spec., please refer to the following:
http://www.ieee802.org/1/files/public/docs2008/
az-wadekar-dcbx-capability-exchange-discovery-protocol-1108-v1.01.pdf

Signed-off-by: Yi Zou <yi.zou@intel.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/dcbnl.h