Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/infiniband/core/
Droce_gid_mgmt.c638 struct netdev_event_work *ndev_work = in netdevice_queue_work() local
639 kmalloc(sizeof(*ndev_work), GFP_KERNEL); in netdevice_queue_work()
641 if (!ndev_work) in netdevice_queue_work()
644 memcpy(ndev_work->cmds, cmds, sizeof(ndev_work->cmds)); in netdevice_queue_work()
645 for (i = 0; i < ARRAY_SIZE(ndev_work->cmds) && ndev_work->cmds[i].cb; i++) { in netdevice_queue_work()
646 if (!ndev_work->cmds[i].ndev) in netdevice_queue_work()
647 ndev_work->cmds[i].ndev = ndev; in netdevice_queue_work()
648 if (!ndev_work->cmds[i].filter_ndev) in netdevice_queue_work()
649 ndev_work->cmds[i].filter_ndev = ndev; in netdevice_queue_work()
650 dev_hold(ndev_work->cmds[i].ndev); in netdevice_queue_work()
[all …]