Searched refs:sk_redir (Results 1 – 5 of 5) sorted by relevance
51 struct sock *sk_redir; member81 struct sock *sk_redir; member512 unsigned long sk_redir = skb->_sk_redir; in skb_bpf_strparser() local514 return sk_redir & BPF_F_STRPARSER; in skb_bpf_strparser()524 unsigned long sk_redir = skb->_sk_redir; in skb_bpf_ingress() local526 return sk_redir & BPF_F_INGRESS; in skb_bpf_ingress()534 static inline void skb_bpf_set_redir(struct sk_buff *skb, struct sock *sk_redir, in skb_bpf_set_redir() argument537 skb->_sk_redir = (unsigned long)sk_redir; in skb_bpf_set_redir()544 unsigned long sk_redir = skb->_sk_redir; in skb_bpf_redirect_fetch() local546 return (struct sock *)(sk_redir & BPF_F_PTR_MASK); in skb_bpf_redirect_fetch()
385 struct sock *sk_redir; in tcp_bpf_send_verdict() local431 sk_redir = psock->sk_redir; in tcp_bpf_send_verdict()437 psock->sk_redir = NULL; in tcp_bpf_send_verdict()447 ret = tcp_bpf_sendmsg_redir(sk_redir, redir_ingress, in tcp_bpf_send_verdict()452 sock_put(sk_redir); in tcp_bpf_send_verdict()479 if (psock->sk_redir) { in tcp_bpf_send_verdict()480 sock_put(psock->sk_redir); in tcp_bpf_send_verdict()481 psock->sk_redir = NULL; in tcp_bpf_send_verdict()
827 if (psock->sk_redir) in sk_psock_destroy()828 sock_put(psock->sk_redir); in sk_psock_destroy()882 ret = sk_psock_map_verd(ret, msg->sk_redir); in sk_psock_msg_verdict()885 if (psock->sk_redir) { in sk_psock_msg_verdict()886 sock_put(psock->sk_redir); in sk_psock_msg_verdict()887 psock->sk_redir = NULL; in sk_psock_msg_verdict()889 if (!msg->sk_redir) { in sk_psock_msg_verdict()894 psock->sk_redir = msg->sk_redir; in sk_psock_msg_verdict()895 sock_hold(psock->sk_redir); in sk_psock_msg_verdict()
677 msg->sk_redir = sk; in BPF_CALL_4()1278 msg->sk_redir = sk; in BPF_CALL_4()
850 struct sock *sk_redir; in bpf_exec_tx_verdict() local898 sk_redir = psock->sk_redir; in bpf_exec_tx_verdict()907 err = tcp_bpf_sendmsg_redir(sk_redir, redir_ingress, in bpf_exec_tx_verdict()941 if (psock->sk_redir) { in bpf_exec_tx_verdict()942 sock_put(psock->sk_redir); in bpf_exec_tx_verdict()943 psock->sk_redir = NULL; in bpf_exec_tx_verdict()