diff options
author | John Fastabend <john.r.fastabend@intel.com> | 2010-12-30 09:26:31 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-31 10:47:45 -0800 |
commit | 9ab933ab2cc80f04690d6aa385b1110075c5e507 (patch) | |
tree | 439f1d393d080473575f5ecfe6dcd4f3c10775e9 /include/net/dcbnl.h | |
parent | 3e29027af43728c2a91fe3f735ab2822edaf54a8 (diff) |
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/dcbnl.h')
-rw-r--r-- | include/net/dcbnl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/dcbnl.h b/include/net/dcbnl.h index e2d841e963b..ab7d623a279 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. |