Lines Matching +full:out +full:- +full:functions
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Tap functions for AF_VSOCK sockets.
5 * Code based on net/netlink/af_netlink.c tap functions.
19 if (unlikely(vt->dev->type != ARPHRD_VSOCKMON)) in vsock_add_tap()
20 return -EINVAL; in vsock_add_tap()
22 __module_get(vt->module); in vsock_add_tap()
25 list_add_rcu(&vt->list, &vsock_tap_all); in vsock_add_tap()
41 list_del_rcu(&vt->list); in vsock_remove_tap()
43 goto out; in vsock_remove_tap()
48 out: in vsock_remove_tap()
54 module_put(vt->module); in vsock_remove_tap()
56 return found ? 0 : -ENODEV; in vsock_remove_tap()
69 nskb->dev = dev; in __vsock_deliver_tap_skb()
86 ret = __vsock_deliver_tap_skb(skb, tmp->dev); in __vsock_deliver_tap()
99 goto out; in vsock_deliver_tap()
107 out: in vsock_deliver_tap()