diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2008-11-21 00:09:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-21 00:09:23 -0500 |
commit | 0eb3aa9bab20217fb42244ccdcb5bf8a002f504c (patch) | |
tree | b7d5a846b674a4f26ce4c1aa3b90f72fe9ce83d0 /include | |
parent | 33dbabc4a7f7bd72313c73a3c199f31f3900336f (diff) |
DCB: Add interface to query the state of PFC feature.
Adds a netlink interface for Data Center Bridging (DCB) to get and set
the enable state of the Priority Flow Control (PFC) feature.
Primarily, this is a way to turn off PFC in the driver while DCB
remains enabled.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dcbnl.h | 2 | ||||
-rw-r--r-- | include/net/dcbnl.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/dcbnl.h b/include/linux/dcbnl.h index 1077fba1dadc..6cc4560bc376 100644 --- a/include/linux/dcbnl.h +++ b/include/linux/dcbnl.h | |||
@@ -66,6 +66,8 @@ enum dcbnl_commands { | |||
66 | DCB_CMD_GCAP, | 66 | DCB_CMD_GCAP, |
67 | DCB_CMD_GNUMTCS, | 67 | DCB_CMD_GNUMTCS, |
68 | DCB_CMD_SNUMTCS, | 68 | DCB_CMD_SNUMTCS, |
69 | DCB_CMD_PFC_GSTATE, | ||
70 | DCB_CMD_PFC_SSTATE, | ||
69 | 71 | ||
70 | __DCB_CMD_ENUM_MAX, | 72 | __DCB_CMD_ENUM_MAX, |
71 | DCB_CMD_MAX = __DCB_CMD_ENUM_MAX - 1, | 73 | DCB_CMD_MAX = __DCB_CMD_ENUM_MAX - 1, |
diff --git a/include/net/dcbnl.h b/include/net/dcbnl.h index f0a65281ea73..c7d87caf3f99 100644 --- a/include/net/dcbnl.h +++ b/include/net/dcbnl.h | |||
@@ -42,6 +42,8 @@ struct dcbnl_rtnl_ops { | |||
42 | u8 (*getcap)(struct net_device *, int, u8 *); | 42 | u8 (*getcap)(struct net_device *, int, u8 *); |
43 | u8 (*getnumtcs)(struct net_device *, int, u8 *); | 43 | u8 (*getnumtcs)(struct net_device *, int, u8 *); |
44 | u8 (*setnumtcs)(struct net_device *, int, u8); | 44 | u8 (*setnumtcs)(struct net_device *, int, u8); |
45 | u8 (*getpfcstate)(struct net_device *); | ||
46 | void (*setpfcstate)(struct net_device *, u8); | ||
45 | }; | 47 | }; |
46 | 48 | ||
47 | #endif /* __NET_DCBNL_H__ */ | 49 | #endif /* __NET_DCBNL_H__ */ |