Skip to content

Commit 1af9dcf

Browse files
Yuval Mintzdavem330
authored andcommitted
qed: Add missing 100g init mode
Some of the HW configurations are currently missing for 100g devices. This can cause various classification issues, as well as prevent device from fully reaching line-rate. Signed-off-by: Yuval Mintz <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent cc3d5eb commit 1af9dcf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/net/ethernet/qlogic/qed/qed_dev.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,14 @@ static void qed_calc_hw_mode(struct qed_hwfn *p_hwfn)
588588

589589
hw_mode |= 1 << MODE_ASIC;
590590

591+
if (p_hwfn->cdev->num_hwfns > 1)
592+
hw_mode |= 1 << MODE_100G;
593+
591594
p_hwfn->hw_info.hw_mode = hw_mode;
595+
596+
DP_VERBOSE(p_hwfn, (NETIF_MSG_PROBE | NETIF_MSG_IFUP),
597+
"Configuring function for hw_mode: 0x%08x\n",
598+
p_hwfn->hw_info.hw_mode);
592599
}
593600

594601
/* Init run time data for all PFs on an engine. */

0 commit comments

Comments
 (0)