summaryrefslogtreecommitdiff
path: root/net/core/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index b58674774a57b..10e5a036c706a 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -11271,8 +11271,7 @@ static int __net_init netdev_init(struct net *net)
if (net->dev_index_head == NULL)
goto err_idx;
- net->ifindex = 1;
- xa_init_flags(&net->dev_by_index, XA_FLAGS_ALLOC);
+ xa_init_flags(&net->dev_by_index, XA_FLAGS_ALLOC1);
RAW_INIT_NOTIFIER_HEAD(&net->netdev_chain);