]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dcb: Add ieee_dcb_setapp() to be used for IEEE 802.1Qaz APP data
authorJohn Fastabend <john.r.fastabend@intel.com>
Tue, 21 Jun 2011 07:34:42 +0000 (07:34 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 07:28:30 +0000 (15:28 +0800)
commitef00516da56b210e4b60aa68f63186e0df018860
tree7df21d9365e1e2e3eb096dc8d9bcd03772a36c1c
parent6d15b56e6a86203a063f3bc17ea171717931ee13
dcb: Add ieee_dcb_setapp() to be used for IEEE 802.1Qaz APP data

This adds a setapp routine for IEEE802.1Qaz encoded APP data types.
The IEEE 802.1Qaz spec encodes the priority bits differently and
allows for multiple APP data entries of the same selector and
protocol. Trying to force these to use the same set routines was
becoming tedious. Furthermore, userspace could probably enforce
the correct semantics, but expecting drivers to do this seems
error prone in the firmware case.

For these reasons add ieee_dcb_setapp() that understands the
IEEE 802.1Qaz encoded form.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit b6db2174c59ef1e72f7bd63e0f105b1a2d7f18d3)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
include/net/dcbnl.h
net/dcb/dcbnl.c