File tree Expand file tree Collapse file tree 10 files changed +11
-0
lines changed Expand file tree Collapse file tree 10 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ static int dummy_dev_init(struct net_device *dev)
71
71
if (!dev -> lstats )
72
72
return - ENOMEM ;
73
73
74
+ netdev_lockdep_set_classes (dev );
74
75
return 0 ;
75
76
}
76
77
Original file line number Diff line number Diff line change @@ -349,6 +349,7 @@ static int geneve_init(struct net_device *dev)
349
349
gro_cells_destroy (& geneve -> gro_cells );
350
350
return err ;
351
351
}
352
+ netdev_lockdep_set_classes (dev );
352
353
return 0 ;
353
354
}
354
355
Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ static int loopback_dev_init(struct net_device *dev)
144
144
dev -> lstats = netdev_alloc_pcpu_stats (struct pcpu_lstats );
145
145
if (!dev -> lstats )
146
146
return - ENOMEM ;
147
+ netdev_lockdep_set_classes (dev );
147
148
return 0 ;
148
149
}
149
150
Original file line number Diff line number Diff line change @@ -1373,6 +1373,7 @@ static void veth_free_queues(struct net_device *dev)
1373
1373
1374
1374
static int veth_dev_init (struct net_device * dev )
1375
1375
{
1376
+ netdev_lockdep_set_classes (dev );
1376
1377
return veth_alloc_queues (dev );
1377
1378
}
1378
1379
Original file line number Diff line number Diff line change @@ -2998,6 +2998,7 @@ static int vxlan_init(struct net_device *dev)
2998
2998
if (err )
2999
2999
goto err_free_percpu ;
3000
3000
3001
+ netdev_lockdep_set_classes (dev );
3001
3002
return 0 ;
3002
3003
3003
3004
err_free_percpu :
Original file line number Diff line number Diff line change @@ -1298,6 +1298,7 @@ int ip_tunnel_init(struct net_device *dev)
1298
1298
1299
1299
if (tunnel -> collect_md )
1300
1300
netif_keep_dst (dev );
1301
+ netdev_lockdep_set_classes (dev );
1301
1302
return 0 ;
1302
1303
}
1303
1304
EXPORT_SYMBOL_GPL (ip_tunnel_init );
Original file line number Diff line number Diff line change @@ -1537,6 +1537,7 @@ static int ip6gre_tunnel_init_common(struct net_device *dev)
1537
1537
ip6gre_tnl_init_features (dev );
1538
1538
1539
1539
netdev_hold (dev , & tunnel -> dev_tracker , GFP_KERNEL );
1540
+ netdev_lockdep_set_classes (dev );
1540
1541
return 0 ;
1541
1542
1542
1543
cleanup_dst_cache_init :
@@ -1929,6 +1930,7 @@ static int ip6erspan_tap_init(struct net_device *dev)
1929
1930
ip6erspan_tnl_link_config (tunnel , 1 );
1930
1931
1931
1932
netdev_hold (dev , & tunnel -> dev_tracker , GFP_KERNEL );
1933
+ netdev_lockdep_set_classes (dev );
1932
1934
return 0 ;
1933
1935
1934
1936
cleanup_dst_cache_init :
Original file line number Diff line number Diff line change @@ -1902,6 +1902,7 @@ ip6_tnl_dev_init_gen(struct net_device *dev)
1902
1902
dev -> max_mtu = IP6_MAX_MTU - dev -> hard_header_len - t_hlen ;
1903
1903
1904
1904
netdev_hold (dev , & t -> dev_tracker , GFP_KERNEL );
1905
+ netdev_lockdep_set_classes (dev );
1905
1906
return 0 ;
1906
1907
1907
1908
destroy_dst :
Original file line number Diff line number Diff line change @@ -937,6 +937,7 @@ static inline int vti6_dev_init_gen(struct net_device *dev)
937
937
if (!dev -> tstats )
938
938
return - ENOMEM ;
939
939
netdev_hold (dev , & t -> dev_tracker , GFP_KERNEL );
940
+ netdev_lockdep_set_classes (dev );
940
941
return 0 ;
941
942
}
942
943
Original file line number Diff line number Diff line change @@ -1460,6 +1460,7 @@ static int ipip6_tunnel_init(struct net_device *dev)
1460
1460
return err ;
1461
1461
}
1462
1462
netdev_hold (dev , & tunnel -> dev_tracker , GFP_KERNEL );
1463
+ netdev_lockdep_set_classes (dev );
1463
1464
return 0 ;
1464
1465
}
1465
1466
You can’t perform that action at this time.
0 commit comments