diff options
author | Dimitris Michailidis <dm@chelsio.com> | 2010-12-03 10:39:04 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-08 09:36:22 -0800 |
commit | ce9aeb583a1071304d0e4ab8db600bfc8a6a1b44 (patch) | |
tree | a0879740d24c7a31fceac3daa0f0f5121f26fe01 /drivers/net/cxgb4 | |
parent | e83293233faf6e49870e7bfdcddf5374cb463d54 (diff) |
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')
-rw-r--r-- | drivers/net/cxgb4/t4_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cxgb4/t4_hw.c b/drivers/net/cxgb4/t4_hw.c index bb813d94aea..e97521c801e 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; } |