Home
last modified time | relevance | path

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

/openbmc/linux/drivers/infiniband/core/
H A Droce_gid_mgmt.c641 struct netdev_event_work *ndev_work = in netdevice_queue_work() local
642 kmalloc(sizeof(*ndev_work), GFP_KERNEL); in netdevice_queue_work()
644 if (!ndev_work) in netdevice_queue_work()
647 memcpy(ndev_work->cmds, cmds, sizeof(ndev_work->cmds)); in netdevice_queue_work()
648 for (i = 0; i < ARRAY_SIZE(ndev_work->cmds) && ndev_work->cmds[i].cb; i++) { in netdevice_queue_work()
649 if (!ndev_work->cmds[i].ndev) in netdevice_queue_work()
650 ndev_work->cmds[i].ndev = ndev; in netdevice_queue_work()
651 if (!ndev_work->cmds[i].filter_ndev) in netdevice_queue_work()
652 ndev_work->cmds[i].filter_ndev = ndev; in netdevice_queue_work()
653 dev_hold(ndev_work->cmds[i].ndev); in netdevice_queue_work()
[all …]