cxgb4: fix MAC address hash filter
Subsystems (2)
PATCH 1/1 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 Dimitris Michailidis <[email protected]>
--- drivers/net/cxgb4/t4_hw.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/cxgb4/t4_hw.c +1 -1
@@ -2408,7 +2408,7 @@ int t4_alloc_mac_filt(struct adapter *adap, unsigned int mbox,if (index <NEXACT_MAC ) ret++;else if (hash) - *hash |= (1 <<hash_mac_addr (addr[i])); + *hash |= (1ULL <<hash_mac_addr (addr[i])); }return ret; }
Signature · 1 line
1.5.4
From: Dimitris Michailidis <[email protected]>
Date: Fri, 3 Dec 2010 12:39:04 -0800
Quoted 5 lines
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 Dimitris Michailidis <[email protected]>
Applied, thanks.