Home
last modified time | relevance | path

Searched refs:sk_redir (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/include/linux/ !
Dskmsg.h51 struct sock *sk_redir; member
81 struct sock *sk_redir; member
517 unsigned long sk_redir = skb->_sk_redir; in skb_bpf_strparser() local
519 return sk_redir & BPF_F_STRPARSER; in skb_bpf_strparser()
529 unsigned long sk_redir = skb->_sk_redir; in skb_bpf_ingress() local
531 return sk_redir & BPF_F_INGRESS; in skb_bpf_ingress()
539 static inline void skb_bpf_set_redir(struct sk_buff *skb, struct sock *sk_redir, in skb_bpf_set_redir() argument
542 skb->_sk_redir = (unsigned long)sk_redir; in skb_bpf_set_redir()
549 unsigned long sk_redir = skb->_sk_redir; in skb_bpf_redirect_fetch() local
551 return (struct sock *)(sk_redir & BPF_F_PTR_MASK); in skb_bpf_redirect_fetch()
/linux-6.1.9/net/ipv4/ !
Dtcp_bpf.c282 struct sock *sk_redir; in tcp_bpf_send_verdict() local
328 sk_redir = psock->sk_redir; in tcp_bpf_send_verdict()
334 psock->sk_redir = NULL; in tcp_bpf_send_verdict()
344 ret = tcp_bpf_sendmsg_redir(sk_redir, redir_ingress, in tcp_bpf_send_verdict()
349 sock_put(sk_redir); in tcp_bpf_send_verdict()
376 if (psock->sk_redir) { in tcp_bpf_send_verdict()
377 sock_put(psock->sk_redir); in tcp_bpf_send_verdict()
378 psock->sk_redir = NULL; in tcp_bpf_send_verdict()
/linux-6.1.9/net/core/ !
Dskmsg.c833 if (psock->sk_redir) in sk_psock_destroy()
834 sock_put(psock->sk_redir); in sk_psock_destroy()
886 ret = sk_psock_map_verd(ret, msg->sk_redir); in sk_psock_msg_verdict()
889 if (psock->sk_redir) { in sk_psock_msg_verdict()
890 sock_put(psock->sk_redir); in sk_psock_msg_verdict()
891 psock->sk_redir = NULL; in sk_psock_msg_verdict()
893 if (!msg->sk_redir) { in sk_psock_msg_verdict()
898 psock->sk_redir = msg->sk_redir; in sk_psock_msg_verdict()
899 sock_hold(psock->sk_redir); in sk_psock_msg_verdict()
Dsock_map.c677 msg->sk_redir = sk; in BPF_CALL_4()
1269 msg->sk_redir = sk; in BPF_CALL_4()
/linux-6.1.9/net/tls/ !
Dtls_sw.c793 struct sock *sk_redir; in bpf_exec_tx_verdict() local
841 sk_redir = psock->sk_redir; in bpf_exec_tx_verdict()
850 err = tcp_bpf_sendmsg_redir(sk_redir, redir_ingress, in bpf_exec_tx_verdict()
884 if (psock->sk_redir) { in bpf_exec_tx_verdict()
885 sock_put(psock->sk_redir); in bpf_exec_tx_verdict()
886 psock->sk_redir = NULL; in bpf_exec_tx_verdict()