diff options
author | John Fastabend <john.r.fastabend@intel.com> | 2011-06-21 07:34:53 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-21 16:06:12 -0700 |
commit | a364c8cf80251849bab207be8c9e66253c8ca8f8 (patch) | |
tree | 7dfeba7c78081e271b8417fdcb98fe8a475030a8 /include/net/dcbnl.h | |
parent | f9ae7e4b515c4d56baf6e0e84ebee2e03ae57a25 (diff) | |
download | blackbird-op-linux-a364c8cf80251849bab207be8c9e66253c8ca8f8.tar.gz blackbird-op-linux-a364c8cf80251849bab207be8c9e66253c8ca8f8.zip |
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>
Diffstat (limited to 'include/net/dcbnl.h')
-rw-r--r-- | include/net/dcbnl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dcbnl.h b/include/net/dcbnl.h index 62a268531d4a..c14fd9483e46 100644 --- a/include/net/dcbnl.h +++ b/include/net/dcbnl.h @@ -32,6 +32,7 @@ u8 dcb_setapp(struct net_device *, struct dcb_app *); u8 dcb_getapp(struct net_device *, struct dcb_app *); int dcb_ieee_setapp(struct net_device *, struct dcb_app *); int dcb_ieee_delapp(struct net_device *, struct dcb_app *); +u8 dcb_ieee_getapp_mask(struct net_device *, struct dcb_app *); int dcbnl_notify(struct net_device *dev, int event, int cmd, u32 seq, u32 pid); |