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