Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ad30e26 authored by Mark Rustad's avatar Mark Rustad Committed by Jeff Kirsher
Browse files

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: default avatarMark Rustad <mark.d.rustad@intel.com>
Tested-by: default avatarRoss Brattain <ross.b.brattain@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 462d5994
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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,