/linux/include/linux/ |
H A D | skmsg.h | 83 struct sk_psock { struct 112 int (*psock_update_sk_prot)(struct sock *sk, struct sk_psock *psock, argument 140 int sk_msg_recvmsg(struct sock *sk, struct sk_psock *psock, struct msghdr *msg, argument 149 static inline void sk_msg_apply_bytes(struct sk_psock *psock, u32 bytes) in sk_msg_apply_bytes() 290 static inline struct sk_psock *sk_psock(const struct sock *sk) in sk_psock() function 296 static inline void sk_psock_set_state(struct sk_psock *psock, in sk_psock_set_state() 302 static inline void sk_psock_clear_state(struct sk_psock *psock, in sk_psock_clear_state() 308 static inline bool sk_psock_test_state(const struct sk_psock *psock, in sk_psock_test_state() 320 static inline bool sk_psock_queue_msg(struct sk_psock *psock, in sk_psock_queue_msg() 338 static inline struct sk_msg *sk_psock_dequeue_msg(struct sk_psock *psock) in sk_psock_dequeue_msg() [all …]
|
/linux/net/core/ |
H A D | skmsg.c | 413 int sk_msg_recvmsg(struct sock *sk, struct sk_psock *psock, struct msghdr *msg, in sk_msg_recvmsg() 494 struct sk_psock *psock; in sk_msg_is_readable() 498 psock = sk_psock(sk); in sk_msg_is_readable() 531 struct sk_psock *psock, in sk_psock_skb_ingress_enqueue() 563 static int sk_psock_skb_ingress_self(struct sk_psock *psock, struct sk_buff *skb, 566 static int sk_psock_skb_ingress(struct sk_psock *psock, struct sk_buff *skb, in sk_psock_skb_ingress() 600 static int sk_psock_skb_ingress_self(struct sk_psock *psock, struct sk_buff *skb, in sk_psock_skb_ingress_self() 616 static int sk_psock_handle_skb(struct sk_psock *psock, struct sk_buff *skb, in sk_psock_handle_skb() 633 static void sk_psock_skb_state(struct sk_psock *psock, in sk_psock_skb_state() 648 struct sk_psock *psock = container_of(dwork, struct sk_psock, work); in sk_psock_backlog() [all …]
|
H A D | sock_map.c | 131 static void sock_map_add_link(struct sk_psock *psock, in sock_map_add_link() 143 struct sk_psock *psock, void *link_raw) in sock_map_del_link() 181 struct sk_psock *psock = sk_psock(sk); in sock_map_unref() 189 static int sock_map_init_proto(struct sock *sk, struct sk_psock *psock) in sock_map_init_proto() 197 static struct sk_psock *sock_map_psock_get_checked(struct sock *sk) in sock_map_psock_get_checked() 199 struct sk_psock *psock; in sock_map_psock_get_checked() 202 psock = sk_psock(sk); in sock_map_psock_get_checked() 224 struct sk_psock *psock; in sock_map_link() 472 struct sk_psock *psock; in sock_map_update_common() 490 psock = sk_psock(sk); in sock_map_update_common() [all …]
|
/linux/net/ipv4/ |
H A D | udp_bpf.c | 29 static bool psock_has_data(struct sk_psock *psock) in psock_has_data() 38 static int udp_msg_wait_data(struct sock *sk, struct sk_psock *psock, in udp_msg_wait_data() 65 struct sk_psock *psock; in udp_bpf_recvmsg() 141 int udp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore) in udp_bpf_update_proto()
|
H A D | tcp_bpf.c | 32 static int bpf_tcp_ingress(struct sock *sk, struct sk_psock *psock, in bpf_tcp_ingress() 166 struct sk_psock *psock = sk_psock_get(sk); in tcp_bpf_sendmsg_redir() 180 static int tcp_msg_wait_data(struct sock *sk, struct sk_psock *psock, in tcp_msg_wait_data() 202 static bool is_next_msg_fin(struct sk_psock *psock) in is_next_msg_fin() 227 struct sk_psock *psock; in tcp_bpf_recvmsg_parser() 337 struct sk_psock *psock; in tcp_bpf_recvmsg() 384 static int tcp_bpf_send_verdict(struct sock *sk, struct sk_psock *psock, in tcp_bpf_send_verdict() 499 struct sk_psock *psock; in tcp_bpf_sendmsg() 649 int tcp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore) in tcp_bpf_update_proto()
|
/linux/net/vmw_vsock/ |
H A D | vsock_bpf.c | 25 static bool vsock_has_data(struct sock *sk, struct sk_psock *psock) in vsock_has_data() 37 static bool vsock_msg_wait_data(struct sock *sk, struct sk_psock *psock, long timeo) in vsock_msg_wait_data() 79 struct sk_psock *psock; in vsock_bpf_recvmsg() 141 int vsock_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore) in vsock_bpf_update_proto()
|
/linux/net/unix/ |
H A D | unix_bpf.c | 15 static int unix_msg_wait_data(struct sock *sk, struct sk_psock *psock, in unix_msg_wait_data() 54 struct sk_psock *psock; in unix_bpf_recvmsg() 147 int unix_dgram_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore) in unix_dgram_bpf_update_proto() 163 int unix_stream_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore) in unix_stream_bpf_update_proto()
|
/linux/include/net/ |
H A D | af_unix.h | 121 int unix_dgram_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore); 122 int unix_stream_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore);
|
H A D | udp.h | 648 struct sk_psock; 649 int udp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore);
|
H A D | af_vsock.h | 247 int vsock_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore);
|
H A D | sock.h | 1198 struct sk_psock; 1277 struct sk_psock *psock,
|
H A D | tcp.h | 2597 struct sk_psock; 2600 int tcp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore);
|
/linux/net/tls/ |
H A D | tls_sw.c | 849 struct sk_psock *psock; in bpf_exec_tx_verdict() 1308 tls_rx_rec_wait(struct sock *sk, struct sk_psock *psock, bool nonblock, in tls_rx_rec_wait() 1960 struct sk_psock *psock; in tls_sw_recvmsg() 2253 struct sk_psock *psock; in tls_sw_read_sock() 2346 struct sk_psock *psock; in tls_sw_sock_is_readable() 2349 psock = sk_psock(sk); in tls_sw_sock_is_readable() 2430 struct sk_psock *psock; in tls_data_ready()
|
H A D | tls_main.c | 410 struct sk_psock *psock; in tls_sk_poll()
|
/linux/Documentation/bpf/ |
H A D | map_sockmap.rst | 35 replaced and a ``struct sk_psock`` is attached to it. Additionally, this 36 ``sk_psock`` inherits the programs that are attached to the map.
|