aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb4/t4_hw.c
diff options
context:
space:
mode:
authorDimitris Michailidis <dm@chelsio.com>2010-12-03 10:39:04 +0000
committerDavid S. Miller <davem@davemloft.net>2010-12-08 09:36:22 -0800
commitce9aeb583a1071304d0e4ab8db600bfc8a6a1b44 (patch)
treea0879740d24c7a31fceac3daa0f0f5121f26fe01 /drivers/net/cxgb4/t4_hw.c
parente83293233faf6e49870e7bfdcddf5374cb463d54 (diff)
downloadkernel_samsung_tuna-ce9aeb583a1071304d0e4ab8db600bfc8a6a1b44.zip
kernel_samsung_tuna-ce9aeb583a1071304d0e4ab8db600bfc8a6a1b44.tar.gz
kernel_samsung_tuna-ce9aeb583a1071304d0e4ab8db600bfc8a6a1b44.tar.bz2
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 <dm@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb4/t4_hw.c')
-rw-r--r--drivers/net/cxgb4/t4_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cxgb4/t4_hw.c b/drivers/net/cxgb4/t4_hw.c
index bb813d9..e97521c 100644
--- a/drivers/net/cxgb4/t4_hw.c
+++ b/drivers/net/cxgb4/t4_hw.c
@@ -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;
}