cxgb4: fix MAC address hash filter
authorDimitris Michailidis <dm@chelsio.com>
Fri, 3 Dec 2010 10:39:04 +0000 (10:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
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 <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4/t4_hw.c

index bb813d9..e97521c 100644 (file)
@@ -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;
 }