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

Commit 87aec47d authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

qlogic: qed: fix a test for MODE_MF_SI



MODE_MF_SI is 9.  We should be testing bit 9 instead of AND 0x9.

Fixes: fe56b9e6 ('qed: Add module with basic common support')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarYuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8c169c28
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -562,7 +562,7 @@ static int qed_hw_init_pf(struct qed_hwfn *p_hwfn,
	}

	/* Enable classification by MAC if needed */
	if (hw_mode & MODE_MF_SI) {
	if (hw_mode & (1 << MODE_MF_SI)) {
		DP_VERBOSE(p_hwfn, NETIF_MSG_HW,
			   "Configuring TAGMAC_CLS_TYPE\n");
		STORE_RT_REG(p_hwfn,