Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ccdb5171 authored by David S. Miller's avatar David S. Miller
Browse files

net: Fix GRO_HASH_BUCKETS assertion.



FIELD_SIZEOF() is in bytes, but we want bits.

Fixes: d9f37d01 ("net: convert gro_count to bitmask")
Suggested-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 301f935b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);