Searched refs:ndev_work (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/infiniband/core/
H A Droce_gid_mgmt.c522 struct netdev_event_work *ndev_work = netdevice_queue_work() local
523 kmalloc(sizeof(*ndev_work), GFP_KERNEL); netdevice_queue_work()
525 if (!ndev_work) { netdevice_queue_work()
530 memcpy(ndev_work->cmds, cmds, sizeof(ndev_work->cmds)); netdevice_queue_work()
531 for (i = 0; i < ARRAY_SIZE(ndev_work->cmds) && ndev_work->cmds[i].cb; i++) { netdevice_queue_work()
532 if (!ndev_work->cmds[i].ndev) netdevice_queue_work()
533 ndev_work->cmds[i].ndev = ndev; netdevice_queue_work()
534 if (!ndev_work->cmds[i].filter_ndev) netdevice_queue_work()
535 ndev_work->cmds[i].filter_ndev = ndev; netdevice_queue_work()
536 dev_hold(ndev_work->cmds[i].ndev); netdevice_queue_work()
537 dev_hold(ndev_work->cmds[i].filter_ndev); netdevice_queue_work()
539 INIT_WORK(&ndev_work->work, netdevice_event_work_handler); netdevice_queue_work()
541 queue_work(ib_wq, &ndev_work->work); netdevice_queue_work()

Completed in 74 milliseconds