Skip to content

Commit ccdb517

Browse files
committed
net: Fix GRO_HASH_BUCKETS assertion.
FIELD_SIZEOF() is in bytes, but we want bits. Fixes: d9f37d0 ("net: convert gro_count to bitmask") Suggested-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 301f935 commit ccdb517

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9282,7 +9282,7 @@ static struct hlist_head * __net_init netdev_create_hash(void)
92829282
static int __net_init netdev_init(struct net *net)
92839283
{
92849284
BUILD_BUG_ON(GRO_HASH_BUCKETS >
9285-
FIELD_SIZEOF(struct napi_struct, gro_bitmask));
9285+
8 * FIELD_SIZEOF(struct napi_struct, gro_bitmask));
92869286

92879287
if (net != &init_net)
92889288
INIT_LIST_HEAD(&net->dev_base_head);

0 commit comments

Comments
 (0)