/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 | 176 #define vsock_connected_sockets_vsk(vsk) \ argument 177 vsock_connected_sockets(&(vsk)->remote_addr, &(vsk)->local_addr) 187 static int vsock_auto_bind(struct vsock_sock *vsk) in vsock_auto_bind() argument 189 struct sock *sk = sk_vsock(vsk); in vsock_auto_bind() 192 if (vsock_addr_bound(&vsk->local_addr)) in vsock_auto_bind() 210 struct vsock_sock *vsk) in __vsock_insert_bound() argument 212 sock_hold(&vsk->sk); in __vsock_insert_bound() 213 list_add(&vsk->bound_table, list); in __vsock_insert_bound() 217 struct vsock_sock *vsk) in __vsock_insert_connected() argument 219 sock_hold(&vsk->sk); in __vsock_insert_connected() [all …]
|
D | virtio_transport_common.c | 34 virtio_transport_get_ops(struct vsock_sock *vsk) in virtio_transport_get_ops() argument 36 const struct vsock_transport *t = vsock_core_get_transport(vsk); in virtio_transport_get_ops() 103 if (info->vsk && !skb_set_owner_sk_safe(skb, sk_vsock(info->vsk))) { in virtio_transport_alloc_skb() 203 static int virtio_transport_send_pkt_info(struct vsock_sock *vsk, in virtio_transport_send_pkt_info() argument 213 info->type = virtio_transport_get_type(sk_vsock(vsk)); in virtio_transport_send_pkt_info() 215 t_ops = virtio_transport_get_ops(vsk); in virtio_transport_send_pkt_info() 220 src_port = vsk->local_addr.svm_port; in virtio_transport_send_pkt_info() 222 dst_cid = vsk->remote_addr.svm_cid; in virtio_transport_send_pkt_info() 223 dst_port = vsk->remote_addr.svm_port; in virtio_transport_send_pkt_info() 229 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_bpf.c | 27 struct vsock_sock *vsk = vsock_sk(sk); in vsock_has_data() local 30 ret = vsock_connectible_has_data(vsk); in vsock_has_data() 151 struct vsock_sock *vsk; in vsock_bpf_update_proto() local 159 vsk = vsock_sk(sk); in vsock_bpf_update_proto() 160 if (!vsk->transport) in vsock_bpf_update_proto() 163 if (!vsk->transport->read_skb) in vsock_bpf_update_proto()
|
D | vsock_loopback.c | 40 static int vsock_loopback_cancel_pkt(struct vsock_sock *vsk) in vsock_loopback_cancel_pkt() argument 44 virtio_transport_purge_skbs(vsk, &vsock->pkt_queue); in vsock_loopback_cancel_pkt()
|
D | vmci_transport_notify.h | 40 void (*socket_destruct) (struct vsock_sock *vsk);
|
D | virtio_transport.c | 191 virtio_transport_cancel_pkt(struct vsock_sock *vsk) in virtio_transport_cancel_pkt() argument 203 cnt = virtio_transport_purge_skbs(vsk, &vsock->send_pkt_queue); in virtio_transport_cancel_pkt()
|