projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
301f935
)
net: Fix GRO_HASH_BUCKETS assertion.
author
David S. Miller
<davem@davemloft.net>
Tue, 17 Jul 2018 00:02:04 +0000
(17:02 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 17 Jul 2018 00:02:04 +0000
(17:02 -0700)
FIELD_SIZEOF() is in bytes, but we want bits.
Fixes:
d9f37d01e294
("net: convert gro_count to bitmask")
Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index c883b17ee0fe2c8a7ca2f2867560ba74004790a7..4f8b92d81d107fc9acd2499297435cbd9e9b5c67 100644
(file)
--- a/
net/core/dev.c
+++ b/
net/core/dev.c
@@
-9282,7
+9282,7
@@
static struct hlist_head * __net_init netdev_create_hash(void)
static int __net_init netdev_init(struct net *net)
{
BUILD_BUG_ON(GRO_HASH_BUCKETS >
-
FIELD_SIZEOF(struct napi_struct, gro_bitmask));
+
8 *
FIELD_SIZEOF(struct napi_struct, gro_bitmask));
if (net != &init_net)
INIT_LIST_HEAD(&net->dev_base_head);