From: John Fastabend Date: Tue, 21 Jun 2011 07:34:53 +0000 (+0000) Subject: dcb: Add dcb_ieee_getapp_mask() for drivers to query APP settings X-Git-Tag: v3.1-rc1~316^2~368 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a364c8cf80251849bab207be8c9e66253c8ca8f8;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed