diff options
author | John Fastabend <john.r.fastabend@intel.com> | 2011-02-10 09:40:01 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-02-11 11:47:15 -0500 |
commit | d033d526a465c4bb8a499a0b5df65b3e7cf4da6f (patch) | |
tree | 570fba34e3fe39dd158dbf38296ca486298b2548 /drivers/net/ixgbe/ixgbe_dcb.h | |
parent | 55320cb58baebd1795ec92f4550a1e8b38bf9ddf (diff) |
ixgbe: DCB, implement 802.1Qaz routines
Implements 802.1Qaz support for ixgbe driver. Additionally,
this adds IEEE_8021QAZ_TSA_{} defines to dcbnl.h this is to
avoid having to use cryptic numeric codes for the TSA type.
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_dcb.h')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_dcb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_dcb.h b/drivers/net/ixgbe/ixgbe_dcb.h index aa6cb5f9ebf..4e4a641f3d5 100644 --- a/drivers/net/ixgbe/ixgbe_dcb.h +++ b/drivers/net/ixgbe/ixgbe_dcb.h | |||
@@ -150,10 +150,14 @@ struct ixgbe_dcb_config { | |||
150 | void ixgbe_dcb_unpack_pfc(struct ixgbe_dcb_config *cfg, u8 *pfc_en); | 150 | void ixgbe_dcb_unpack_pfc(struct ixgbe_dcb_config *cfg, u8 *pfc_en); |
151 | 151 | ||
152 | /* DCB credits calculation */ | 152 | /* DCB credits calculation */ |
153 | s32 ixgbe_ieee_credits(__u8 *bw, __u16 *refill, __u16 *max, int max_frame); | ||
153 | s32 ixgbe_dcb_calculate_tc_credits(struct ixgbe_hw *, | 154 | s32 ixgbe_dcb_calculate_tc_credits(struct ixgbe_hw *, |
154 | struct ixgbe_dcb_config *, int, u8); | 155 | struct ixgbe_dcb_config *, int, u8); |
155 | 156 | ||
156 | /* DCB hw initialization */ | 157 | /* DCB hw initialization */ |
158 | s32 ixgbe_dcb_hw_ets_config(struct ixgbe_hw *hw, | ||
159 | u16 *refill, u16 *max, u8 *bwg_id, u8 *prio_type); | ||
160 | s32 ixgbe_dcb_hw_pfc_config(struct ixgbe_hw *hw, u8 pfc_en); | ||
157 | s32 ixgbe_dcb_hw_config(struct ixgbe_hw *, struct ixgbe_dcb_config *); | 161 | s32 ixgbe_dcb_hw_config(struct ixgbe_hw *, struct ixgbe_dcb_config *); |
158 | 162 | ||
159 | /* DCB definitions for credit calculation */ | 163 | /* DCB definitions for credit calculation */ |