Skip to content

Commit 3e7cfce

Browse files
Yuval Mintzdavem330
authored andcommitted
qed: Don't config min BW on 100g on link flap
Currently 100g devices don't support minimum/maximum BW configurations, yet link flaps might cause the driver to attempt to do such a configuration. Prevent this just as we do for the maximum BW. Signed-off-by: Yuval Mintz <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bb13ace commit 3e7cfce

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
@@ -2105,6 +2105,13 @@ void qed_configure_vp_wfq_on_link_change(struct qed_dev *cdev, u32 min_pf_rate)
21052105
{
21062106
int i;
21072107

2108+
if (cdev->num_hwfns > 1) {
2109+
DP_VERBOSE(cdev,
2110+
NETIF_MSG_LINK,
2111+
"WFQ configuration is not supported for this device\n");
2112+
return;
2113+
}
2114+
21082115
for_each_hwfn(cdev, i) {
21092116
struct qed_hwfn *p_hwfn = &cdev->hwfns[i];
21102117

0 commit comments

Comments
 (0)