Home
last modified time | relevance | path

Searched refs:subflow (Results 1 – 16 of 16) sorted by relevance

/linux-6.1.9/net/mptcp/
Dsubflow.c337 static bool subflow_thmac_valid(struct mptcp_subflow_context *subflow) in subflow_thmac_valid() argument
342 subflow_generate_hmac(subflow->remote_key, subflow->local_key, in subflow_thmac_valid()
343 subflow->remote_nonce, subflow->local_nonce, in subflow_thmac_valid()
348 subflow, subflow->token, thmac, subflow->thmac); in subflow_thmac_valid()
350 return thmac == subflow->thmac; in subflow_thmac_valid()
355 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk); in mptcp_subflow_reset() local
356 struct sock *sk = subflow->conn; in mptcp_subflow_reset()
396 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(sk); in subflow_finish_connect() local
398 struct sock *parent = subflow->conn; in subflow_finish_connect()
400 subflow->icsk_af_ops->sk_rx_dst_set(sk, skb); in subflow_finish_connect()
[all …]
Doptions.c401 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 …]
Dprotocol.c67 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()
349 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk); in __mptcp_move_skb() local
369 MPTCP_SKB_CB(skb)->map_seq = mptcp_subflow_get_mapped_dsn(subflow); in __mptcp_move_skb()
[all …]
Dpm.c179 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 …]
Dprotocol.h299 struct socket *subflow; /* outgoing connect/listener/!mp_capable */ member
517 mptcp_subflow_tcp_sock(const struct mptcp_subflow_context *subflow) in mptcp_subflow_tcp_sock() argument
519 return subflow->tcp_sock; in mptcp_subflow_tcp_sock()
523 mptcp_subflow_ctx_reset(struct mptcp_subflow_context *subflow) in mptcp_subflow_ctx_reset() argument
525 memset(&subflow->reset, 0, sizeof(subflow->reset)); in mptcp_subflow_ctx_reset()
526 subflow->request_mptcp = 1; in mptcp_subflow_ctx_reset()
530 mptcp_subflow_get_map_offset(const struct mptcp_subflow_context *subflow) in mptcp_subflow_get_map_offset() argument
532 return tcp_sk(mptcp_subflow_tcp_sock(subflow))->copied_seq - in mptcp_subflow_get_map_offset()
533 subflow->ssn_offset - in mptcp_subflow_get_map_offset()
534 subflow->map_subflow_seq; in mptcp_subflow_get_map_offset()
[all …]
Dsockopt.c71 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 …]
Dtoken.c153 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()
Dpm_netlink.c118 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()
452 addrs[i].id = subflow->remote_id; in fill_remote_addresses_vec()
[all …]
Dpm_userspace.c319 struct mptcp_subflow_context *subflow; in mptcp_nl_find_ssk() local
324 mptcp_for_each_subflow(msk, subflow) { in mptcp_nl_find_ssk()
328 ssk = mptcp_subflow_tcp_sock(subflow); in mptcp_nl_find_ssk()
421 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk); in mptcp_nl_cmd_sf_destroy() local
424 mptcp_close_ssk(sk, ssk, subflow); in mptcp_nl_cmd_sf_destroy()
DMakefile4 mptcp-y := protocol.o subflow.o options.o token.o crypto.o ctrl.o pm.o diag.o \
DKconfig10 subflows in order to utilize multiple network paths. Each subflow
/linux-6.1.9/tools/testing/selftests/net/mptcp/
Dmptcp_join.sh1770 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
1779 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
1788 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
1797 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
1798 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow
1807 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
1808 pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow
1817 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow dev ns2eth3
1830 pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow
1839 pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow
[all …]
Dpm_netlink.sh76 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
Dsimult_flows.sh86 ip netns exec "$ns1" ./pm_nl_ctl add 10.0.2.1 dev ns1eth2 flags subflow
/linux-6.1.9/include/trace/events/
Dmptcp.h20 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-6.1.9/Documentation/networking/
Dmptcp-sysctl.rst38 by the initial subflow if the value is 1. This controls a flag that is
51 socket. In-kernel path management will control subflow
54 API. Userspace path management puts per-MPTCP-connection subflow
68 pending outstanding data on a given subflow required to declare it stale.