File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -229,8 +229,6 @@ int netdev_nl_napi_get_doit(struct sk_buff *skb, struct genl_info *info)
229
229
if (!rsp )
230
230
return - ENOMEM ;
231
231
232
- rtnl_lock ();
233
-
234
232
napi = netdev_napi_by_id_lock (genl_info_net (info ), napi_id );
235
233
if (napi ) {
236
234
err = netdev_nl_napi_fill_one (rsp , napi , info );
@@ -240,8 +238,6 @@ int netdev_nl_napi_get_doit(struct sk_buff *skb, struct genl_info *info)
240
238
err = - ENOENT ;
241
239
}
242
240
243
- rtnl_unlock ();
244
-
245
241
if (err ) {
246
242
goto err_free_msg ;
247
243
} else if (!rsp -> len ) {
@@ -300,7 +296,6 @@ int netdev_nl_napi_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb)
300
296
if (info -> attrs [NETDEV_A_NAPI_IFINDEX ])
301
297
ifindex = nla_get_u32 (info -> attrs [NETDEV_A_NAPI_IFINDEX ]);
302
298
303
- rtnl_lock ();
304
299
if (ifindex ) {
305
300
netdev = netdev_get_by_index_lock (net , ifindex );
306
301
if (netdev ) {
@@ -317,7 +312,6 @@ int netdev_nl_napi_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb)
317
312
ctx -> napi_id = 0 ;
318
313
}
319
314
}
320
- rtnl_unlock ();
321
315
322
316
return err ;
323
317
}
@@ -358,8 +352,6 @@ int netdev_nl_napi_set_doit(struct sk_buff *skb, struct genl_info *info)
358
352
359
353
napi_id = nla_get_u32 (info -> attrs [NETDEV_A_NAPI_ID ]);
360
354
361
- rtnl_lock ();
362
-
363
355
napi = netdev_napi_by_id_lock (genl_info_net (info ), napi_id );
364
356
if (napi ) {
365
357
err = netdev_nl_napi_set_config (napi , info );
@@ -369,8 +361,6 @@ int netdev_nl_napi_set_doit(struct sk_buff *skb, struct genl_info *info)
369
361
err = - ENOENT ;
370
362
}
371
363
372
- rtnl_unlock ();
373
-
374
364
return err ;
375
365
}
376
366
You can’t perform that action at this time.
0 commit comments