]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2011 23:06:11 +0000 (16:06 -0700)
commit9aaae318a7338c9b6d92200e92e685db8c658efa
treeb8d08270d6d6158fd94a6fc6ccadc5978d51a673
parent60bffc513d7d2fff20c8c9236954e59676dd8531
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>
include/net/dcbnl.h
net/dcb/dcbnl.c