summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJohn Fastabend <john.r.fastabend@intel.com>2010-12-30 10:26:31 +0100
committerDavid S. Miller <davem@davemloft.net>2010-12-31 19:47:45 +0100
commit9ab933ab2cc80f04690d6aa385b1110075c5e507 (patch)
tree439f1d393d080473575f5ecfe6dcd4f3c10775e9 /include/net
parentdcbnl: add support for ieee8021Qaz attributes (diff)
downloadlinux-9ab933ab2cc80f04690d6aa385b1110075c5e507.tar.xz
linux-9ab933ab2cc80f04690d6aa385b1110075c5e507.zip
dcbnl: add appliction tlv handlers
This patch adds application tlv handlers. Networking stacks may use the application priority to set the skb priority of their stack using the negoatiated dcbx priority. This patch provides the dcb_{get|set}app() routines for the stack to query these parameters. Notice lower layer drivers can use the dcbnl_ops routines if additional handling is needed. Perhaps in the firmware case for example Signed-off-by: John Fastabend <john.r.fastabend@intel.com> Signed-off-by: Shmulik Ravid <shmulikr@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/dcbnl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/dcbnl.h b/include/net/dcbnl.h
index e2d841e963b3..ab7d623a2793 100644
--- a/include/net/dcbnl.h
+++ b/include/net/dcbnl.h
@@ -22,6 +22,15 @@
#include <linux/dcbnl.h>
+struct dcb_app_type {
+ char name[IFNAMSIZ];
+ struct dcb_app app;
+ struct list_head list;
+};
+
+u8 dcb_setapp(struct net_device *, struct dcb_app *);
+u8 dcb_getapp(struct net_device *, struct dcb_app *);
+
/*
* Ops struct for the netlink callbacks. Used by DCB-enabled drivers through
* the netdevice struct.