/linux-5.19.10/net/mptcp/ ! |
D | subflow.c | 338 static bool subflow_thmac_valid(struct mptcp_subflow_context *subflow) in subflow_thmac_valid() argument 343 subflow_generate_hmac(subflow->remote_key, subflow->local_key, in subflow_thmac_valid() 344 subflow->remote_nonce, subflow->local_nonce, in subflow_thmac_valid() 349 subflow, subflow->token, thmac, subflow->thmac); in subflow_thmac_valid() 351 return thmac == subflow->thmac; in subflow_thmac_valid() 356 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk); in mptcp_subflow_reset() local 357 struct sock *sk = subflow->conn; in mptcp_subflow_reset() 397 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(sk); in subflow_finish_connect() local 399 struct sock *parent = subflow->conn; in subflow_finish_connect() 401 subflow->icsk_af_ops->sk_rx_dst_set(sk, skb); in subflow_finish_connect() [all …]
|
D | options.c | 401 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(sk); in mptcp_syn_options() local 406 subflow->snd_isn = TCP_SKB_CB(skb)->end_seq; in mptcp_syn_options() 407 if (subflow->request_mptcp) { in mptcp_syn_options() 413 } else if (subflow->request_join) { in mptcp_syn_options() 414 pr_debug("remote_token=%u, nonce=%u", subflow->remote_token, in mptcp_syn_options() 415 subflow->local_nonce); in mptcp_syn_options() 417 opts->join_id = subflow->local_id; in mptcp_syn_options() 418 opts->token = subflow->remote_token; in mptcp_syn_options() 419 opts->nonce = subflow->local_nonce; in mptcp_syn_options() 420 opts->backup = subflow->request_bkup; in mptcp_syn_options() [all …]
|
D | protocol.c | 67 if (!msk->subflow || READ_ONCE(msk->can_ack)) in __mptcp_nmpc_socket() 70 return msk->subflow; in __mptcp_nmpc_socket() 105 struct mptcp_subflow_context *subflow; in __mptcp_socket_create() local 115 msk->subflow = ssock; in __mptcp_socket_create() 116 subflow = mptcp_subflow_ctx(ssock->sk); in __mptcp_socket_create() 117 list_add(&subflow->node, &msk->conn_list); in __mptcp_socket_create() 119 subflow->request_mptcp = 1; in __mptcp_socket_create() 122 subflow->local_id_valid = 1; in __mptcp_socket_create() 348 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk); in __mptcp_move_skb() local 368 MPTCP_SKB_CB(skb)->map_seq = mptcp_subflow_get_mapped_dsn(subflow); in __mptcp_move_skb() [all …]
|
D | pm.c | 179 const struct mptcp_subflow_context *subflow) in mptcp_pm_subflow_check_next() argument 184 update_subflows = (subflow->request_join || subflow->mp_join) && in mptcp_pm_subflow_check_next() 205 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk); in mptcp_pm_add_addr_received() local 206 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_pm_add_addr_received() 279 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk); in mptcp_pm_mp_prio_received() local 280 struct sock *sk = subflow->conn; in mptcp_pm_mp_prio_received() 283 pr_debug("subflow->backup=%d, bkup=%d\n", subflow->backup, bkup); in mptcp_pm_mp_prio_received() 285 if (subflow->backup != bkup) { in mptcp_pm_mp_prio_received() 286 subflow->backup = bkup; in mptcp_pm_mp_prio_received() 300 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(sk); in mptcp_pm_mp_fail_received() local [all …]
|
D | protocol.h | 297 struct socket *subflow; /* outgoing connect/listener/!mp_capable */ member 513 mptcp_subflow_tcp_sock(const struct mptcp_subflow_context *subflow) in mptcp_subflow_tcp_sock() argument 515 return subflow->tcp_sock; in mptcp_subflow_tcp_sock() 519 mptcp_subflow_ctx_reset(struct mptcp_subflow_context *subflow) in mptcp_subflow_ctx_reset() argument 521 memset(&subflow->reset, 0, sizeof(subflow->reset)); in mptcp_subflow_ctx_reset() 522 subflow->request_mptcp = 1; in mptcp_subflow_ctx_reset() 526 mptcp_subflow_get_map_offset(const struct mptcp_subflow_context *subflow) in mptcp_subflow_get_map_offset() argument 528 return tcp_sk(mptcp_subflow_tcp_sock(subflow))->copied_seq - in mptcp_subflow_get_map_offset() 529 subflow->ssn_offset - in mptcp_subflow_get_map_offset() 530 subflow->map_subflow_seq; in mptcp_subflow_get_map_offset() [all …]
|
D | sockopt.c | 71 struct mptcp_subflow_context *subflow; in mptcp_sol_socket_sync_intval() local 77 mptcp_for_each_subflow(msk, subflow) { in mptcp_sol_socket_sync_intval() 78 struct sock *ssk = mptcp_subflow_tcp_sock(subflow); in mptcp_sol_socket_sync_intval() 114 subflow->setsockopt_seq = msk->setsockopt_seq; in mptcp_sol_socket_sync_intval() 148 struct mptcp_subflow_context *subflow; in mptcp_setsockopt_sol_socket_tstamp() local 158 mptcp_for_each_subflow(msk, subflow) { in mptcp_setsockopt_sol_socket_tstamp() 159 struct sock *ssk = mptcp_subflow_tcp_sock(subflow); in mptcp_setsockopt_sol_socket_tstamp() 210 struct mptcp_subflow_context *subflow; in mptcp_setsockopt_sol_socket_timestamping() local 236 mptcp_for_each_subflow(msk, subflow) { in mptcp_setsockopt_sol_socket_timestamping() 237 struct sock *ssk = mptcp_subflow_tcp_sock(subflow); in mptcp_setsockopt_sol_socket_timestamping() [all …]
|
D | token.c | 153 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(sk); in mptcp_token_new_connect() local 154 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_token_new_connect() 159 mptcp_crypto_key_gen_sha(&subflow->local_key, &subflow->token, in mptcp_token_new_connect() 160 &subflow->idsn); in mptcp_token_new_connect() 162 bucket = token_bucket(subflow->token); in mptcp_token_new_connect() 164 if (__token_bucket_busy(bucket, subflow->token)) { in mptcp_token_new_connect() 172 sk, subflow->local_key, subflow->token, subflow->idsn); in mptcp_token_new_connect() 174 WRITE_ONCE(msk->token, subflow->token); in mptcp_token_new_connect()
|
D | pm_netlink.c | 118 struct mptcp_subflow_context *subflow; in lookup_subflow_by_saddr() local 122 list_for_each_entry(subflow, list, node) { in lookup_subflow_by_saddr() 123 skc = (struct sock_common *)mptcp_subflow_tcp_sock(subflow); in lookup_subflow_by_saddr() 136 struct mptcp_subflow_context *subflow; in lookup_subflow_by_daddr() local 140 list_for_each_entry(subflow, list, node) { in lookup_subflow_by_daddr() 141 skc = (struct sock_common *)mptcp_subflow_tcp_sock(subflow); in lookup_subflow_by_daddr() 431 struct mptcp_subflow_context *subflow; in fill_remote_addresses_vec() local 449 mptcp_for_each_subflow(msk, subflow) { in fill_remote_addresses_vec() 450 ssk = mptcp_subflow_tcp_sock(subflow); in fill_remote_addresses_vec() 698 struct mptcp_subflow_context *subflow; in mptcp_pm_nl_addr_send_ack() local [all …]
|
D | pm_userspace.c | 310 struct mptcp_subflow_context *subflow; in mptcp_nl_find_ssk() local 315 mptcp_for_each_subflow(msk, subflow) { in mptcp_nl_find_ssk() 319 ssk = mptcp_subflow_tcp_sock(subflow); in mptcp_nl_find_ssk() 410 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk); in mptcp_nl_cmd_sf_destroy() local 413 mptcp_close_ssk(sk, ssk, subflow); in mptcp_nl_cmd_sf_destroy()
|
D | Makefile | 4 mptcp-y := protocol.o subflow.o options.o token.o crypto.o ctrl.o pm.o diag.o \
|
D | Kconfig | 10 subflows in order to utilize multiple network paths. Each subflow
|
/linux-5.19.10/tools/testing/selftests/net/mptcp/ ! |
D | mptcp_join.sh | 1660 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow 1669 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow 1678 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow 1687 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow 1688 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow 1697 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow 1698 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow 1707 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow dev ns2eth3 1720 pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow 1729 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow [all …]
|
D | pm_netlink.sh | 76 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.2 flags subflow dev lo 168 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.1 flags subflow
|
D | simult_flows.sh | 84 ip netns exec "$ns1" ./pm_nl_ctl add 10.0.2.1 dev ns1eth2 flags subflow
|
/linux-5.19.10/include/trace/events/ ! |
D | mptcp.h | 20 TP_PROTO(struct mptcp_subflow_context *subflow), 22 TP_ARGS(subflow), 36 __entry->active = mptcp_subflow_active(subflow); 37 __entry->backup = subflow->backup; 39 if (subflow->tcp_sock && sk_fullsock(subflow->tcp_sock)) 40 __entry->free = sk_stream_memory_free(subflow->tcp_sock); 44 ssk = mptcp_subflow_tcp_sock(subflow);
|
/linux-5.19.10/Documentation/networking/ ! |
D | mptcp-sysctl.rst | 38 by the initial subflow if the value is 1. This controls a flag that is 52 socket. In-kernel path management will control subflow 55 API. Userspace path management puts per-MPTCP-connection subflow 69 pending outstanding data on a given subflow required to declare it stale.
|