/linux-6.6.21/net/mptcp/ |
D | sockopt.c | 79 struct sock *ssk = mptcp_subflow_tcp_sock(subflow); in mptcp_sol_socket_sync_intval() local 80 bool slow = lock_sock_fast(ssk); in mptcp_sol_socket_sync_intval() 84 sock_valbool_flag(ssk, SOCK_DBG, !!val); in mptcp_sol_socket_sync_intval() 87 if (ssk->sk_prot->keepalive) in mptcp_sol_socket_sync_intval() 88 ssk->sk_prot->keepalive(ssk, !!val); in mptcp_sol_socket_sync_intval() 89 sock_valbool_flag(ssk, SOCK_KEEPOPEN, !!val); in mptcp_sol_socket_sync_intval() 92 ssk->sk_priority = val; in mptcp_sol_socket_sync_intval() 96 ssk->sk_userlocks |= SOCK_SNDBUF_LOCK; in mptcp_sol_socket_sync_intval() 97 WRITE_ONCE(ssk->sk_sndbuf, sk->sk_sndbuf); in mptcp_sol_socket_sync_intval() 98 mptcp_subflow_ctx(ssk)->cached_sndbuf = sk->sk_sndbuf; in mptcp_sol_socket_sync_intval() [all …]
|
D | protocol.c | 336 static bool mptcp_rmem_schedule(struct sock *sk, struct sock *ssk, int size) in mptcp_rmem_schedule() argument 354 static bool __mptcp_move_skb(struct mptcp_sock *msk, struct sock *ssk, in __mptcp_move_skb() argument 358 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk); in __mptcp_move_skb() 363 __skb_unlink(skb, &ssk->sk_receive_queue); in __mptcp_move_skb() 369 if (!mptcp_rmem_schedule(sk, ssk, skb->truesize)) in __mptcp_move_skb() 498 const struct sock *ssk = mptcp_subflow_tcp_sock(subflow); in mptcp_timeout_from_subflow() local 500 return inet_csk(ssk)->icsk_pending && !subflow->stale_count ? in mptcp_timeout_from_subflow() 501 inet_csk(ssk)->icsk_timeout - jiffies : 0; in mptcp_timeout_from_subflow() 514 static inline bool tcp_can_send_ack(const struct sock *ssk) in tcp_can_send_ack() argument 516 return !((1 << inet_sk_state_load(ssk)) & in tcp_can_send_ack() [all …]
|
D | subflow.c | 31 static void mptcp_subflow_ops_undo_override(struct sock *ssk); 395 void mptcp_subflow_reset(struct sock *ssk) in mptcp_subflow_reset() argument 397 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk); in mptcp_subflow_reset() 403 if (ssk->sk_state == TCP_CLOSE) in mptcp_subflow_reset() 409 tcp_send_active_reset(ssk, GFP_ATOMIC); in mptcp_subflow_reset() 410 tcp_done(ssk); in mptcp_subflow_reset() 426 struct sock *ssk = msk->first; in __mptcp_sync_state() local 428 subflow = mptcp_subflow_ctx(ssk); in __mptcp_sync_state() 429 __mptcp_propagate_sndbuf(sk, ssk); in __mptcp_sync_state() 431 mptcp_rcv_space_init(msk, ssk); in __mptcp_sync_state() [all …]
|
D | protocol.h | 577 void mptcp_subflow_process_delegated(struct sock *ssk, long actions); 634 void mptcp_subflow_shutdown(struct sock *sk, struct sock *ssk, int how); 635 void mptcp_close_ssk(struct sock *sk, struct sock *ssk, 637 void __mptcp_subflow_send_ack(struct sock *ssk); 638 void mptcp_subflow_reset(struct sock *ssk); 639 void mptcp_subflow_queue_clean(struct sock *sk, struct sock *ssk); 674 static inline bool __tcp_can_send(const struct sock *ssk) in __tcp_can_send() argument 677 return ((1 << inet_sk_state_load(ssk)) & (TCPF_ESTABLISHED | TCPF_CLOSE_WAIT)); in __tcp_can_send() 693 void mptcp_subflow_drop_ctx(struct sock *ssk); 713 struct sock *ssk, [all …]
|
D | pm_netlink.c | 408 struct sock *sk = (struct sock *)msk, *ssk; in fill_remote_addresses_vec() local 441 ssk = mptcp_subflow_tcp_sock(subflow); in fill_remote_addresses_vec() 442 remote_address((struct sock_common *)ssk, &addrs[i]); in fill_remote_addresses_vec() 470 struct sock *ssk = mptcp_subflow_tcp_sock(subflow); in __mptcp_pm_send_ack() local 476 slow = lock_sock_fast(ssk); in __mptcp_pm_send_ack() 483 __mptcp_subflow_send_ack(ssk); in __mptcp_pm_send_ack() 484 unlock_sock_fast(ssk, slow); in __mptcp_pm_send_ack() 752 struct sock *ssk = mptcp_subflow_tcp_sock(subflow); in mptcp_pm_nl_mp_prio_send_ack() local 755 mptcp_local_address((struct sock_common *)ssk, &local); in mptcp_pm_nl_mp_prio_send_ack() 760 remote_address((struct sock_common *)ssk, &remote); in mptcp_pm_nl_mp_prio_send_ack() [all …]
|
D | fastopen.c | 12 struct sock *sk, *ssk; in mptcp_fastopen_subflow_synack_set_params() local 22 ssk = subflow->tcp_sock; in mptcp_fastopen_subflow_synack_set_params() 24 tp = tcp_sk(ssk); in mptcp_fastopen_subflow_synack_set_params() 28 skb = skb_peek(&ssk->sk_receive_queue); in mptcp_fastopen_subflow_synack_set_params() 33 __skb_unlink(skb, &ssk->sk_receive_queue); in mptcp_fastopen_subflow_synack_set_params()
|
D | pm.c | 76 void mptcp_pm_new_connection(struct mptcp_sock *msk, const struct sock *ssk, int server_side) in mptcp_pm_new_connection() argument 83 mptcp_event(MPTCP_EVENT_CREATED, msk, ssk, GFP_ATOMIC); in mptcp_pm_new_connection() 138 void mptcp_pm_fully_established(struct mptcp_sock *msk, const struct sock *ssk) in mptcp_pm_fully_established() argument 162 mptcp_event(MPTCP_EVENT_ESTABLISHED, msk, ssk, GFP_ATOMIC); in mptcp_pm_fully_established() 187 void mptcp_pm_subflow_check_next(struct mptcp_sock *msk, const struct sock *ssk, in mptcp_pm_subflow_check_next() argument 219 void mptcp_pm_add_addr_received(const struct sock *ssk, in mptcp_pm_add_addr_received() argument 222 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk); in mptcp_pm_add_addr_received() 229 mptcp_event_addr_announced(ssk, addr); in mptcp_pm_add_addr_received() 294 void mptcp_pm_mp_prio_received(struct sock *ssk, u8 bkup) in mptcp_pm_mp_prio_received() argument 296 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk); in mptcp_pm_mp_prio_received() [all …]
|
D | pm_userspace.c | 411 struct sock *ssk; in mptcp_nl_find_ssk() local 413 ssk = mptcp_subflow_tcp_sock(subflow); in mptcp_nl_find_ssk() 415 if (local->family != ssk->sk_family) in mptcp_nl_find_ssk() 418 issk = inet_sk(ssk); in mptcp_nl_find_ssk() 420 switch (ssk->sk_family) { in mptcp_nl_find_ssk() 428 const struct ipv6_pinfo *pinfo = inet6_sk(ssk); in mptcp_nl_find_ssk() 431 !ipv6_addr_equal(&remote->addr6, &ssk->sk_v6_daddr)) in mptcp_nl_find_ssk() 442 return ssk; in mptcp_nl_find_ssk() 456 struct sock *sk, *ssk; in mptcp_nl_cmd_sf_destroy() local 514 ssk = mptcp_nl_find_ssk(msk, &addr_l, &addr_r); in mptcp_nl_cmd_sf_destroy() [all …]
|
D | sched.c | 22 struct sock *ssk; in mptcp_sched_default_get_subflow() local 24 ssk = data->reinject ? mptcp_subflow_get_retrans(msk) : in mptcp_sched_default_get_subflow() 26 if (!ssk) in mptcp_sched_default_get_subflow() 29 mptcp_subflow_set_scheduled(mptcp_subflow_ctx(ssk), true); in mptcp_sched_default_get_subflow()
|
D | options.c | 925 static bool check_fully_established(struct mptcp_sock *msk, struct sock *ssk, in check_fully_established() argument 942 tcp_send_ack(ssk); in check_fully_established() 977 mptcp_do_fallback(ssk); in check_fully_established() 1003 clear_3rdack_retransmission(ssk); in check_fully_established() 1006 mptcp_pm_fully_established(msk, ssk); in check_fully_established() 1011 mptcp_subflow_reset(ssk); in check_fully_established() 1038 struct sock *ssk, in ack_update_msk() argument 1058 new_wnd_end = new_snd_una + tcp_sk(ssk)->snd_wnd; in ack_update_msk() 1065 __mptcp_check_push(sk, ssk); in ack_update_msk() 1252 const struct sock *ssk = (const struct sock *)tp; in mptcp_set_rwin() local [all …]
|
D | token.c | 151 int mptcp_token_new_connect(struct sock *ssk) in mptcp_token_new_connect() argument 153 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk); in mptcp_token_new_connect() 173 ssk, subflow->local_key, subflow->token, subflow->idsn); in mptcp_token_new_connect()
|
/linux-6.6.21/include/trace/events/ |
D | mptcp.h | 34 struct sock *ssk; 44 ssk = mptcp_subflow_tcp_sock(subflow); 45 if (ssk && sk_fullsock(ssk)) { 46 __entry->snd_wnd = tcp_sk(ssk)->snd_wnd; 47 __entry->pace = ssk->sk_pacing_rate; 53 if (ssk && sk_fullsock(ssk) && __entry->pace) 54 __entry->ratio = div_u64((u64)ssk->sk_wmem_queued << 32, __entry->pace);
|
/linux-6.6.21/include/linux/ |
D | netlink.h | 228 int netlink_unicast(struct sock *ssk, struct sk_buff *skb, __u32 portid, int nonblock); 229 int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, __u32 portid, 231 int netlink_broadcast_filtered(struct sock *ssk, struct sk_buff *skb, 236 int netlink_set_err(struct sock *ssk, __u32 portid, __u32 group, int code); 243 long *timeo, struct sock *ssk); 326 int __netlink_dump_start(struct sock *ssk, struct sk_buff *skb, 329 static inline int netlink_dump_start(struct sock *ssk, struct sk_buff *skb, in netlink_dump_start() argument 336 return __netlink_dump_start(ssk, skb, nlh, control); in netlink_dump_start()
|
D | security.h | 1485 int security_mptcp_add_subflow(struct sock *sk, struct sock *ssk); 1714 static inline int security_mptcp_add_subflow(struct sock *sk, struct sock *ssk) in security_mptcp_add_subflow() argument
|
D | lsm_hook_defs.h | 349 LSM_HOOK(int, 0, mptcp_add_subflow, struct sock *sk, struct sock *ssk)
|
/linux-6.6.21/net/netlink/ |
D | af_netlink.c | 1171 static struct sock *netlink_getsockbyportid(struct sock *ssk, u32 portid) in netlink_getsockbyportid() argument 1176 sock = netlink_lookup(sock_net(ssk), ssk->sk_protocol, portid); in netlink_getsockbyportid() 1184 READ_ONCE(nlk->dst_portid) != nlk_sk(ssk)->portid) { in netlink_getsockbyportid() 1243 long *timeo, struct sock *ssk) in netlink_attachskb() argument 1253 if (!ssk || netlink_is_kernel(ssk)) in netlink_attachskb() 1331 struct sock *ssk) in netlink_unicast_kernel() argument 1340 NETLINK_CB(skb).sk = ssk; in netlink_unicast_kernel() 1341 netlink_deliver_tap_kernel(sk, ssk, skb); in netlink_unicast_kernel() 1351 int netlink_unicast(struct sock *ssk, struct sk_buff *skb, in netlink_unicast() argument 1360 timeo = sock_sndtimeo(ssk, nonblock); in netlink_unicast() [all …]
|
/linux-6.6.21/include/net/ |
D | mptcp.h | 138 void mptcp_space(const struct sock *ssk, int *space, int *full_space); 289 static inline void mptcp_space(const struct sock *ssk, int *s, int *fs) { } in mptcp_space() argument
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | mptcp_sock.c | 82 const struct sock *ssk, int server_side) in BPF_PROG() argument
|
/linux-6.6.21/security/ |
D | security.c | 4781 int security_mptcp_add_subflow(struct sock *sk, struct sock *ssk) in security_mptcp_add_subflow() argument 4783 return call_int_hook(mptcp_add_subflow, 0, sk, ssk); in security_mptcp_add_subflow()
|
/linux-6.6.21/security/selinux/ |
D | hooks.c | 5467 static int selinux_mptcp_add_subflow(struct sock *sk, struct sock *ssk) in selinux_mptcp_add_subflow() argument 5469 struct sk_security_struct *ssksec = ssk->sk_security; in selinux_mptcp_add_subflow() 5479 return selinux_netlbl_socket_post_create(ssk, ssk->sk_family); in selinux_mptcp_add_subflow()
|