Lines Matching refs:vsock

87  * - Namespaces in vsock support two different modes: "local" and "global".
91 * - /proc/sys/net/vsock/ns_mode (read-only) reports the current namespace's
93 * - /proc/sys/net/vsock/child_ns_mode (write-once) controls what mode future
134 * example, virtio-vsock may not support local mode, but the socket
135 * may still accept a connection from vhost-vsock which does.
166 #include <net/netns/vsock.h>
561 * than VMADDR_CID_HOST, then a vsock channel where all the packets are
787 if (!net->vsock.port)
788 net->vsock.port = get_random_u32_above(LAST_RESERVED_PORT);
797 if (net->vsock.port == VMADDR_PORT_ANY ||
798 net->vsock.port <= LAST_RESERVED_PORT)
799 net->vsock.port = LAST_RESERVED_PORT + 1;
801 new_addr.svm_port = net->vsock.port++;
1474 * TCP_ESTABLISHED here to allow redirection of connected vsock dgrams.
2766 .name = "vsock",
2798 WARN_ONCE(true, "netns has invalid vsock mode");
2832 net = container_of(table->data, struct net, vsock.mode);
2845 net = container_of(table->data, struct net, vsock.child_ns_mode);
2870 .data = &init_net.vsock.mode,
2877 .data = &init_net.vsock.child_ns_mode,
2895 table[0].data = &net->vsock.mode;
2896 table[1].data = &net->vsock.child_ns_mode;
2899 net->vsock.sysctl_hdr = register_net_sysctl_sz(net, "net/vsock", table,
2901 if (!net->vsock.sysctl_hdr)
2917 table = net->vsock.sysctl_hdr->ctl_table_arg;
2918 unregister_net_sysctl_table(net->vsock.sysctl_hdr);
2926 net->vsock.mode = VSOCK_NET_MODE_GLOBAL;
2928 net->vsock.mode = vsock_net_child_mode(current->nsproxy->net_ns);
2930 net->vsock.child_ns_mode = net->vsock.mode;
2931 net->vsock.child_ns_mode_locked = 0;
2970 pr_err("Cannot register vsock protocol\n");