diff options
author | Mark Rustad <mark.d.rustad@intel.com> | 2011-09-19 23:00:27 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-10-06 06:18:46 -0400 |
commit | 2ad30e2633430717dbdf857962ba0c697dc471ef (patch) | |
tree | ce0d157f92e4770a48843802f32041b37b28180e /drivers/net | |
parent | 462d599449c1047259ec56bfdcca4f55f7a93038 (diff) |
ixgbe: Fix PFC mask generation
Fix PFC mask generation to OR in only a single bit for each priority in
the PFC mask returned via netlink.
Signed-off-by: Mark Rustad <mark.d.rustad@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')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c index 83bf7cc3fbf0..3d44b15fb286 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c | |||
@@ -184,7 +184,7 @@ void ixgbe_dcb_unpack_pfc(struct ixgbe_dcb_config *cfg, u8 *pfc_en) | |||
184 | 184 | ||
185 | *pfc_en = 0; | 185 | *pfc_en = 0; |
186 | for (i = 0; i < MAX_TRAFFIC_CLASS; i++) | 186 | for (i = 0; i < MAX_TRAFFIC_CLASS; i++) |
187 | *pfc_en |= (cfg->tc_config[i].dcb_pfc & 0xF) << i; | 187 | *pfc_en |= !!(cfg->tc_config[i].dcb_pfc & 0xF) << i; |
188 | } | 188 | } |
189 | 189 | ||
190 | void ixgbe_dcb_unpack_refill(struct ixgbe_dcb_config *cfg, int direction, | 190 | void ixgbe_dcb_unpack_refill(struct ixgbe_dcb_config *cfg, int direction, |