net: fix up a few missing hashtable.h conflict resolutions
There are a couple of leftover symbol conflicts caused by hashtable.h
being included by netdevice.h; those were not caught as build failure
(they're "only" a warning, but in fact real bugs). Fix those up.
Fixes: e87a8f24c
("net: resolve symbol conflicts with generic hashtable.h")
Reported-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
a31eb63a0a
commit
6176e89c57
@@ -2887,7 +2887,7 @@ fec_enet_close(struct net_device *ndev)
|
||||
* this kind of feature?).
|
||||
*/
|
||||
|
||||
#define HASH_BITS 6 /* #bits in hash */
|
||||
#define FEC_HASH_BITS 6 /* #bits in hash */
|
||||
#define CRC32_POLY 0xEDB88320
|
||||
|
||||
static void set_multicast_list(struct net_device *ndev)
|
||||
@@ -2935,10 +2935,10 @@ static void set_multicast_list(struct net_device *ndev)
|
||||
}
|
||||
}
|
||||
|
||||
/* only upper 6 bits (HASH_BITS) are used
|
||||
/* only upper 6 bits (FEC_HASH_BITS) are used
|
||||
* which point to specific bit in he hash registers
|
||||
*/
|
||||
hash = (crc >> (32 - HASH_BITS)) & 0x3f;
|
||||
hash = (crc >> (32 - FEC_HASH_BITS)) & 0x3f;
|
||||
|
||||
if (hash > 31) {
|
||||
tmp = readl(fep->hwp + FEC_GRP_HASH_TABLE_HIGH);
|
||||
|
Reference in New Issue
Block a user