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

Commit ce9aeb58 authored by Dimitris Michailidis's avatar Dimitris Michailidis Committed by David S. Miller
Browse files

cxgb4: fix MAC address hash filter



Fix the calculation of the inexact hash-based MAC address filter.
It's 64 bits but current code is missing a ULL.  Results in filtering out
some legitimate packets.

Signed-off-by: default avatarDimitris Michailidis <dm@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e8329323
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2408,7 +2408,7 @@ int t4_alloc_mac_filt(struct adapter *adap, unsigned int mbox,
		if (index < NEXACT_MAC)
		if (index < NEXACT_MAC)
			ret++;
			ret++;
		else if (hash)
		else if (hash)
			*hash |= (1 << hash_mac_addr(addr[i]));
			*hash |= (1ULL << hash_mac_addr(addr[i]));
	}
	}
	return ret;
	return ret;
}
}