Skip to content

Commit 1d2c202

Browse files
Sudarsana Reddy Kallurudavem330
authored andcommitted
qed: Fail driver load in 100g MSI mode.
100g support is not available in MSI mode. Failing the driver load in this scenario. Please consider applying this to `net'. Signed-off-by: Sudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com> Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent bbcecd6 commit 1d2c202

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎drivers/net/ethernet/qlogic/qed/qed_main.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,13 @@ static int qed_slowpath_setup_int(struct qed_dev *cdev,
659659
struct qed_sb_cnt_info sb_cnt_info;
660660
int rc;
661661
int i;
662-
memset(&cdev->int_params, 0, sizeof(struct qed_int_params));
663662

663+
if ((int_mode == QED_INT_MODE_MSI) && (cdev->num_hwfns > 1)) {
664+
DP_NOTICE(cdev, "MSI mode is not supported for CMT devices\n");
665+
return -EINVAL;
666+
}
667+
668+
memset(&cdev->int_params, 0, sizeof(struct qed_int_params));
664669
cdev->int_params.in.int_mode = int_mode;
665670
for_each_hwfn(cdev, i) {
666671
memset(&sb_cnt_info, 0, sizeof(sb_cnt_info));

0 commit comments

Comments
 (0)