projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e832932
)
cxgb4: fix MAC address hash filter
author
Dimitris Michailidis
<
[email protected]
>
Fri, 3 Dec 2010 10:39:04 +0000
(10:39 +0000)
committer
David S. Miller
<
[email protected]
>
Wed, 8 Dec 2010 17:36:22 +0000
(09:36 -0800)
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]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/cxgb4/t4_hw.c
patch
|
blob
|
history
diff --git
a/drivers/net/cxgb4/t4_hw.c
b/drivers/net/cxgb4/t4_hw.c
index bb813d94aea8ef5ae11db63ce6ac795fd0a62c39..e97521c801ea6e4a90714bd2038d4c0610b8806a 100644
(file)
--- 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 |= (1
ULL
<< hash_mac_addr(addr[i]));
}
return ret;
}