/Linux-v6.1/net/vmw_vsock/ |
D | vmci_transport_notify.c | 15 #define PKT_FIELD(vsk, field_name) (vmci_trans(vsk)->notify.pkt.field_name) argument 17 static bool vmci_transport_notify_waiting_write(struct vsock_sock *vsk) in vmci_transport_notify_waiting_write() argument 23 if (!PKT_FIELD(vsk, peer_waiting_write)) in vmci_transport_notify_waiting_write() 34 if (!PKT_FIELD(vsk, peer_waiting_write_detected)) { in vmci_transport_notify_waiting_write() 35 PKT_FIELD(vsk, peer_waiting_write_detected) = true; in vmci_transport_notify_waiting_write() 36 if (PKT_FIELD(vsk, write_notify_window) < PAGE_SIZE) { in vmci_transport_notify_waiting_write() 37 PKT_FIELD(vsk, write_notify_window) = in vmci_transport_notify_waiting_write() 38 PKT_FIELD(vsk, write_notify_min_window); in vmci_transport_notify_waiting_write() 40 PKT_FIELD(vsk, write_notify_window) -= PAGE_SIZE; in vmci_transport_notify_waiting_write() 41 if (PKT_FIELD(vsk, write_notify_window) < in vmci_transport_notify_waiting_write() [all …]
|
D | vmci_transport_notify_qstate.c | 15 #define PKT_FIELD(vsk, field_name) \ argument 16 (vmci_trans(vsk)->notify.pkt_q_state.field_name) 18 static bool vmci_transport_notify_waiting_write(struct vsock_sock *vsk) in vmci_transport_notify_waiting_write() argument 23 if (!PKT_FIELD(vsk, peer_waiting_write)) in vmci_transport_notify_waiting_write() 33 if (!PKT_FIELD(vsk, peer_waiting_write_detected)) { in vmci_transport_notify_waiting_write() 34 PKT_FIELD(vsk, peer_waiting_write_detected) = true; in vmci_transport_notify_waiting_write() 35 if (PKT_FIELD(vsk, write_notify_window) < PAGE_SIZE) { in vmci_transport_notify_waiting_write() 36 PKT_FIELD(vsk, write_notify_window) = in vmci_transport_notify_waiting_write() 37 PKT_FIELD(vsk, write_notify_min_window); in vmci_transport_notify_waiting_write() 39 PKT_FIELD(vsk, write_notify_window) -= PAGE_SIZE; in vmci_transport_notify_waiting_write() [all …]
|
D | af_vsock.c | 171 #define vsock_connected_sockets_vsk(vsk) \ argument 172 vsock_connected_sockets(&(vsk)->remote_addr, &(vsk)->local_addr) 182 static int vsock_auto_bind(struct vsock_sock *vsk) in vsock_auto_bind() argument 184 struct sock *sk = sk_vsock(vsk); in vsock_auto_bind() 187 if (vsock_addr_bound(&vsk->local_addr)) in vsock_auto_bind() 205 struct vsock_sock *vsk) in __vsock_insert_bound() argument 207 sock_hold(&vsk->sk); in __vsock_insert_bound() 208 list_add(&vsk->bound_table, list); in __vsock_insert_bound() 212 struct vsock_sock *vsk) in __vsock_insert_connected() argument 214 sock_hold(&vsk->sk); in __vsock_insert_connected() [all …]
|
D | virtio_transport_common.c | 30 virtio_transport_get_ops(struct vsock_sock *vsk) in virtio_transport_get_ops() argument 32 const struct vsock_transport *t = vsock_core_get_transport(vsk); in virtio_transport_get_ops() 65 pkt->vsk = info->vsk; in virtio_transport_alloc_pkt() 189 static int virtio_transport_send_pkt_info(struct vsock_sock *vsk, in virtio_transport_send_pkt_info() argument 198 info->type = virtio_transport_get_type(sk_vsock(vsk)); in virtio_transport_send_pkt_info() 200 t_ops = virtio_transport_get_ops(vsk); in virtio_transport_send_pkt_info() 205 src_port = vsk->local_addr.svm_port; in virtio_transport_send_pkt_info() 207 dst_cid = vsk->remote_addr.svm_cid; in virtio_transport_send_pkt_info() 208 dst_port = vsk->remote_addr.svm_port; in virtio_transport_send_pkt_info() 214 vvs = vsk->trans; in virtio_transport_send_pkt_info() [all …]
|
D | vmci_transport.c | 60 static bool vmci_check_transport(struct vsock_sock *vsk); 286 struct vsock_sock *vsk; in vmci_transport_send_control_pkt() local 288 vsk = vsock_sk(sk); in vmci_transport_send_control_pkt() 290 if (!vsock_addr_bound(&vsk->local_addr)) in vmci_transport_send_control_pkt() 293 if (!vsock_addr_bound(&vsk->remote_addr)) in vmci_transport_send_control_pkt() 296 return vmci_transport_alloc_send_control_pkt(&vsk->local_addr, in vmci_transport_send_control_pkt() 297 &vsk->remote_addr, in vmci_transport_send_control_pkt() 319 struct vsock_sock *vsk; in vmci_transport_send_reset() local 324 vsk = vsock_sk(sk); in vmci_transport_send_reset() 326 if (!vsock_addr_bound(&vsk->local_addr)) in vmci_transport_send_reset() [all …]
|
D | hyperv_transport.c | 95 struct vsock_sock *vsk; member 158 static bool hvs_check_transport(struct vsock_sock *vsk); 250 struct vsock_sock *vsk = vsock_sk(sk); in hvs_channel_cb() local 251 struct hvsock *hvs = vsk->trans; in hvs_channel_cb() 261 static void hvs_do_close_lock_held(struct vsock_sock *vsk, in hvs_do_close_lock_held() argument 264 struct sock *sk = sk_vsock(vsk); in hvs_do_close_lock_held() 267 vsk->peer_shutdown = SHUTDOWN_MASK; in hvs_do_close_lock_held() 268 if (vsock_stream_has_data(vsk) <= 0) in hvs_do_close_lock_held() 271 if (vsk->close_work_scheduled && in hvs_do_close_lock_held() 272 (!cancel_timeout || cancel_delayed_work(&vsk->close_work))) { in hvs_do_close_lock_held() [all …]
|
D | diag.c | 17 struct vsock_sock *vsk = vsock_sk(sk); in sk_diag_fill() local 37 rep->vdiag_src_cid = vsk->local_addr.svm_cid; in sk_diag_fill() 38 rep->vdiag_src_port = vsk->local_addr.svm_port; in sk_diag_fill() 39 rep->vdiag_dst_cid = vsk->remote_addr.svm_cid; in sk_diag_fill() 40 rep->vdiag_dst_port = vsk->remote_addr.svm_port; in sk_diag_fill() 51 struct vsock_sock *vsk; in vsock_diag_dump() local 76 list_for_each_entry(vsk, head, bound_table) { in vsock_diag_dump() 77 struct sock *sk = sk_vsock(vsk); in vsock_diag_dump() 106 list_for_each_entry(vsk, head, connected_table) { in vsock_diag_dump() 107 struct sock *sk = sk_vsock(vsk); in vsock_diag_dump() [all …]
|
D | vsock_loopback.c | 44 static int vsock_loopback_cancel_pkt(struct vsock_sock *vsk) in vsock_loopback_cancel_pkt() argument 52 if (pkt->vsk != vsk) in vsock_loopback_cancel_pkt()
|
D | vmci_transport_notify.h | 40 void (*socket_destruct) (struct vsock_sock *vsk);
|
D | virtio_transport.c | 201 virtio_transport_cancel_pkt(struct vsock_sock *vsk) in virtio_transport_cancel_pkt() argument 217 if (pkt->vsk != vsk) in virtio_transport_cancel_pkt()
|
/Linux-v6.1/include/linux/ |
D | virtio_vsock.h | 23 struct vsock_sock *vsk; member 46 struct vsock_sock *vsk; member 57 struct vsock_sock *vsk; member 75 virtio_transport_stream_dequeue(struct vsock_sock *vsk, 80 virtio_transport_dgram_dequeue(struct vsock_sock *vsk, 85 virtio_transport_seqpacket_enqueue(struct vsock_sock *vsk, 89 virtio_transport_seqpacket_dequeue(struct vsock_sock *vsk, 92 s64 virtio_transport_stream_has_data(struct vsock_sock *vsk); 93 s64 virtio_transport_stream_has_space(struct vsock_sock *vsk); 94 u32 virtio_transport_seqpacket_has_data(struct vsock_sock *vsk); [all …]
|
/Linux-v6.1/include/net/ |
D | af_vsock.h | 78 s64 vsock_stream_has_data(struct vsock_sock *vsk); 79 s64 vsock_stream_has_space(struct vsock_sock *vsk); 115 int (*cancel_pkt)(struct vsock_sock *vsk); 122 int (*dgram_dequeue)(struct vsock_sock *vsk, struct msghdr *msg, 139 int (*set_rcvlowat)(struct vsock_sock *vsk, int val); 142 ssize_t (*seqpacket_dequeue)(struct vsock_sock *vsk, struct msghdr *msg, 144 int (*seqpacket_enqueue)(struct vsock_sock *vsk, struct msghdr *msg, 147 u32 (*seqpacket_has_data)(struct vsock_sock *vsk); 184 const struct vsock_transport *vsock_core_get_transport(struct vsock_sock *vsk); 189 static inline bool __vsock_in_bound_table(struct vsock_sock *vsk) in __vsock_in_bound_table() argument [all …]
|
/Linux-v6.1/drivers/vhost/ |
D | vsock.c | 310 vhost_transport_cancel_pkt(struct vsock_sock *vsk) in vhost_transport_cancel_pkt() argument 321 vsock = vhost_vsock_get(vsk->remote_addr.svm_cid); in vhost_transport_cancel_pkt() 327 if (pkt->vsk != vsk) in vhost_transport_cancel_pkt() 713 struct vsock_sock *vsk = vsock_sk(sk); in vhost_vsock_reset_orphans() local 721 if (vhost_vsock_get(vsk->remote_addr.svm_cid)) in vhost_vsock_reset_orphans() 727 if (vsk->close_work_scheduled) in vhost_vsock_reset_orphans() 731 vsk->peer_shutdown = SHUTDOWN_MASK; in vhost_vsock_reset_orphans()
|