mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
462d599449
commit
2ad30e2633
|
@ -184,7 +184,7 @@ void ixgbe_dcb_unpack_pfc(struct ixgbe_dcb_config *cfg, u8 *pfc_en)
|
||||||
|
|
||||||
*pfc_en = 0;
|
*pfc_en = 0;
|
||||||
for (i = 0; i < MAX_TRAFFIC_CLASS; i++)
|
for (i = 0; i < MAX_TRAFFIC_CLASS; i++)
|
||||||
*pfc_en |= (cfg->tc_config[i].dcb_pfc & 0xF) << i;
|
*pfc_en |= !!(cfg->tc_config[i].dcb_pfc & 0xF) << i;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ixgbe_dcb_unpack_refill(struct ixgbe_dcb_config *cfg, int direction,
|
void ixgbe_dcb_unpack_refill(struct ixgbe_dcb_config *cfg, int direction,
|
||||||
|
|
Loading…
Reference in New Issue