]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dcb: Add dcb_ieee_getapp_mask() for drivers to query APP settings
authorJohn Fastabend <john.r.fastabend@intel.com>
Tue, 21 Jun 2011 07:34:53 +0000 (07:34 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 08:29:41 +0000 (16:29 +0800)
commit6b86908f3aa09a8731561065fa1e472151c29c0d
tree3cab2089223be959ceec5507da3c15a0c3da1aa8
parentc4c120261752a4e692150f5efc1636ed0c3fb4f8
dcb: Add dcb_ieee_getapp_mask() for drivers to query APP settings

With multiple APP entries per selector and protocol drivers
or stacks may want to pick a specific value or stripe traffic
across many priorities. Also if an APP entry in use is
deleted the stack/driver may want to choose from the existing
APP entries.

To facilitate this and avoid having duplicate code to walk
the APP ring provide a routine dcb_ieee_getapp_mask() to
return a u8 bitmask of all priorities set for the specified
selector and protocol. This routine and bitmask is a helper
for DCB kernel users.

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

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