Home
last modified time | relevance | path

Searched refs:mptcp_sock (Results 1 – 21 of 21) sorted by relevance

/linux-6.12.1/net/mptcp/
Dprotocol.h264 struct mptcp_sock { struct
359 static inline void msk_owned_by_me(const struct mptcp_sock *msk) in msk_owned_by_me() argument
375 container_of_const(_ptr, struct mptcp_sock, sk.icsk_inet.sk); \
379 #define mptcp_sk(ptr) container_of_const(ptr, struct mptcp_sock, sk.icsk_inet.sk)
407 const struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_send_head()
414 struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_send_next()
424 const struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_pending_tail()
437 struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_rtx_head()
469 struct mptcp_sock *msk;
708 void __mptcp_subflow_fully_established(struct mptcp_sock *msk,
[all …]
Dpm.c16 int mptcp_pm_announce_addr(struct mptcp_sock *msk, in mptcp_pm_announce_addr()
44 int mptcp_pm_remove_addr(struct mptcp_sock *msk, const struct mptcp_rm_list *rm_list) in mptcp_pm_remove_addr()
65 void mptcp_pm_new_connection(struct mptcp_sock *msk, const struct sock *ssk, int server_side) in mptcp_pm_new_connection()
75 bool mptcp_pm_allow_new_subflow(struct mptcp_sock *msk) in mptcp_pm_allow_new_subflow()
114 static bool mptcp_pm_schedule_work(struct mptcp_sock *msk, in mptcp_pm_schedule_work()
127 void mptcp_pm_fully_established(struct mptcp_sock *msk, const struct sock *ssk) in mptcp_pm_fully_established()
154 void mptcp_pm_connection_closed(struct mptcp_sock *msk) in mptcp_pm_connection_closed()
159 void mptcp_pm_subflow_established(struct mptcp_sock *msk) in mptcp_pm_subflow_established()
176 void mptcp_pm_subflow_check_next(struct mptcp_sock *msk, in mptcp_pm_subflow_check_next()
212 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_pm_add_addr_received()
[all …]
Dtoken_test.c21 struct mptcp_sock *null_msk = NULL; in mptcp_token_test_req_basic()
52 static struct mptcp_sock *build_msk(struct kunit *test) in build_msk()
54 struct mptcp_sock *msk; in build_msk()
57 msk = kunit_kzalloc(test, sizeof(struct mptcp_sock), GFP_USER); in build_msk()
75 struct mptcp_sock *msk = build_msk(test); in mptcp_token_test_msk_basic()
76 struct mptcp_sock *null_msk = NULL; in mptcp_token_test_msk_basic()
97 struct mptcp_sock *msk = build_msk(test); in mptcp_token_test_accept()
116 struct mptcp_sock *msk = build_msk(test); in mptcp_token_test_destroyed()
117 struct mptcp_sock *null_msk = NULL; in mptcp_token_test_destroyed()
Dsockopt.c20 static struct sock *__mptcp_tcp_fallback(struct mptcp_sock *msk) in __mptcp_tcp_fallback()
51 static void sockopt_seq_inc(struct mptcp_sock *msk) in sockopt_seq_inc()
58 static int mptcp_get_int_option(struct mptcp_sock *msk, sockptr_t optval, in mptcp_get_int_option()
70 static void mptcp_sol_socket_sync_intval(struct mptcp_sock *msk, int optname, int val) in mptcp_sol_socket_sync_intval()
123 static int mptcp_sol_socket_intval(struct mptcp_sock *msk, int optname, int val) in mptcp_sol_socket_intval()
138 static void mptcp_so_incoming_cpu(struct mptcp_sock *msk, int val) in mptcp_so_incoming_cpu()
147 static int mptcp_setsockopt_sol_socket_tstamp(struct mptcp_sock *msk, int optname, int val) in mptcp_setsockopt_sol_socket_tstamp()
172 static int mptcp_setsockopt_sol_socket_int(struct mptcp_sock *msk, int optname, in mptcp_setsockopt_sol_socket_int()
205 static int mptcp_setsockopt_sol_socket_timestamping(struct mptcp_sock *msk, in mptcp_setsockopt_sol_socket_timestamping()
249 static int mptcp_setsockopt_sol_socket_linger(struct mptcp_sock *msk, sockptr_t optval, in mptcp_setsockopt_sol_socket_linger()
[all …]
Dtoken.c67 static struct mptcp_sock *
154 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_token_new_connect()
192 struct mptcp_sock *msk) in mptcp_token_accept()
214 struct mptcp_sock *msk; in mptcp_token_exists()
246 struct mptcp_sock *mptcp_token_get_sock(struct net *net, u32 token) in mptcp_token_get_sock()
250 struct mptcp_sock *msk; in mptcp_token_get_sock()
297 struct mptcp_sock *mptcp_token_iter_next(const struct net *net, long *s_slot, in mptcp_token_iter_next()
300 struct mptcp_sock *ret = NULL; in mptcp_token_iter_next()
375 void mptcp_token_destroy(struct mptcp_sock *msk) in mptcp_token_destroy()
379 struct mptcp_sock *pos; in mptcp_token_destroy()
Dpm_netlink.c26 struct mptcp_sock *sock;
52 pm_nl_get_pernet_from_msk(const struct mptcp_sock *msk) in pm_nl_get_pernet_from_msk()
151 const struct mptcp_sock *msk, in select_local_address()
179 select_signal_address(struct pm_nl_pernet *pernet, const struct mptcp_sock *msk, in select_signal_address()
209 unsigned int mptcp_pm_get_add_addr_signal_max(const struct mptcp_sock *msk) in mptcp_pm_get_add_addr_signal_max()
217 unsigned int mptcp_pm_get_add_addr_accept_max(const struct mptcp_sock *msk) in mptcp_pm_get_add_addr_accept_max()
225 unsigned int mptcp_pm_get_subflows_max(const struct mptcp_sock *msk) in mptcp_pm_get_subflows_max()
233 unsigned int mptcp_pm_get_local_addr_max(const struct mptcp_sock *msk) in mptcp_pm_get_local_addr_max()
241 bool mptcp_pm_nl_check_work_pending(struct mptcp_sock *msk) in mptcp_pm_nl_check_work_pending()
255 mptcp_lookup_anno_list_by_saddr(const struct mptcp_sock *msk, in mptcp_lookup_anno_list_by_saddr()
[all …]
Dprotocol.c34 struct mptcp_sock msk;
53 static u64 mptcp_wnd_end(const struct mptcp_sock *msk) in mptcp_wnd_end()
68 static int __mptcp_socket_create(struct mptcp_sock *msk) in __mptcp_socket_create()
98 struct sock *__mptcp_nmpc_sk(struct mptcp_sock *msk) in __mptcp_nmpc_sk()
158 static bool mptcp_ooo_try_coalesce(struct mptcp_sock *msk, struct sk_buff *to, in mptcp_ooo_try_coalesce()
176 struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_rmem_uncharge()
209 static void mptcp_data_queue_ofo(struct mptcp_sock *msk, struct sk_buff *skb) in mptcp_data_queue_ofo()
322 struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_rmem_schedule()
338 static bool __mptcp_move_skb(struct mptcp_sock *msk, struct sock *ssk, in __mptcp_move_skb()
418 struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_pending_data_fin_ack()
[all …]
Dsched.c19 static int mptcp_sched_default_get_subflow(struct mptcp_sock *msk, in mptcp_sched_default_get_subflow()
108 int mptcp_init_sched(struct mptcp_sock *msk, in mptcp_init_sched()
126 void mptcp_release_sched(struct mptcp_sock *msk) in mptcp_release_sched()
146 int mptcp_sched_get_send(struct mptcp_sock *msk) in mptcp_sched_get_send()
175 int mptcp_sched_get_retrans(struct mptcp_sock *msk) in mptcp_sched_get_retrans()
Dpm_userspace.c11 void mptcp_free_local_addr_list(struct mptcp_sock *msk) in mptcp_free_local_addr_list()
29 static int mptcp_userspace_pm_append_new_local_addr(struct mptcp_sock *msk, in mptcp_userspace_pm_append_new_local_addr()
90 static int mptcp_userspace_pm_delete_local_addr(struct mptcp_sock *msk, in mptcp_userspace_pm_delete_local_addr()
112 mptcp_userspace_pm_lookup_addr_by_id(struct mptcp_sock *msk, unsigned int id) in mptcp_userspace_pm_lookup_addr_by_id()
123 int mptcp_userspace_pm_get_local_id(struct mptcp_sock *msk, in mptcp_userspace_pm_get_local_id()
152 bool mptcp_userspace_pm_is_backup(struct mptcp_sock *msk, in mptcp_userspace_pm_is_backup()
175 struct mptcp_sock *msk; in mptcp_pm_nl_announce_doit()
236 static int mptcp_userspace_pm_remove_id_zero_address(struct mptcp_sock *msk, in mptcp_userspace_pm_remove_id_zero_address()
276 struct mptcp_sock *msk; in mptcp_pm_nl_remove_doit()
345 struct mptcp_sock *msk; in mptcp_pm_nl_subflow_create_doit()
[all …]
Dsubflow.c61 static bool mptcp_can_accept_new_subflow(const struct mptcp_sock *msk) in mptcp_can_accept_new_subflow()
72 struct mptcp_sock *msk = subflow_req->msk; in subflow_req_create_thmac()
85 static struct mptcp_sock *subflow_token_join_request(struct request_sock *req) in subflow_token_join_request()
88 struct mptcp_sock *msk; in subflow_token_join_request()
120 static bool subflow_use_different_sport(struct mptcp_sock *msk, const struct sock *sk) in subflow_use_different_sport()
451 static bool subflow_use_different_dport(struct mptcp_sock *msk, const struct sock *sk) in subflow_use_different_dport()
459 struct mptcp_sock *msk = mptcp_sk(sk); in __mptcp_sync_state()
478 static void subflow_set_remote_key(struct mptcp_sock *msk, in subflow_set_remote_key()
503 struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_propagate_state()
529 struct mptcp_sock *msk; in subflow_finish_connect()
[all …]
Doptions.c449 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_established_options_mp()
562 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_established_options_dss()
655 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_established_options_add_addr()
710 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_established_options_rm_addr()
785 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_established_options_fastclose()
830 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_established_options()
925 static bool check_fully_established(struct mptcp_sock *msk, struct sock *ssk, in check_fully_established()
1032 static void __mptcp_snd_una_update(struct mptcp_sock *msk, u64 new_snd_una) in __mptcp_snd_una_update()
1038 static void ack_update_msk(struct mptcp_sock *msk, in ack_update_msk()
1080 bool mptcp_update_rcv_data_fin(struct mptcp_sock *msk, u64 data_fin_seq, bool use_64bit) in mptcp_update_rcv_data_fin()
[all …]
Dmptcp_diag.c31 struct mptcp_sock *msk = NULL; in mptcp_diag_dump_one()
158 struct mptcp_sock *msk; in mptcp_diag_dump()
202 struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_diag_get_info()
Dbpf.c15 struct mptcp_sock *bpf_mptcp_sock_from_subflow(struct sock *sk) in bpf_mptcp_sock_from_subflow()
Dfastopen.c62 void __mptcp_fastopen_gen_msk_ackseq(struct mptcp_sock *msk, struct mptcp_subflow_context *subflow, in __mptcp_fastopen_gen_msk_ackseq()
Dsyncookies.c97 struct mptcp_sock *msk; in mptcp_token_join_cookie_init_state()
/linux-6.12.1/include/net/
Dmptcp.h16 struct mptcp_sock;
112 int (*get_subflow)(struct mptcp_sock *msk,
119 void (*init)(struct mptcp_sock *msk);
120 void (*release)(struct mptcp_sock *msk);
154 void mptcp_diag_fill_info(struct mptcp_sock *msk, struct mptcp_info *info);
325 struct mptcp_sock *bpf_mptcp_sock_from_subflow(struct sock *sk);
327 static inline struct mptcp_sock *bpf_mptcp_sock_from_subflow(struct sock *sk) { return NULL; } in bpf_mptcp_sock_from_subflow()
331 struct mptcp_sock { }; struct
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dmptcp_sock.c32 struct mptcp_sock *msk; in _sockops()
81 int BPF_PROG(trace_mptcp_pm_new_connection, struct mptcp_sock *msk, in BPF_PROG()
/linux-6.12.1/tools/include/linux/
Dbtf_ids.h192 BTF_SOCK_TYPE(BTF_SOCK_TYPE_MPTCP, mptcp_sock) \
/linux-6.12.1/include/linux/
Dbtf_ids.h257 BTF_SOCK_TYPE(BTF_SOCK_TYPE_MPTCP, mptcp_sock) \
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dmptcp.c170 struct mptcp_sock *sock_skel; in run_test()
/linux-6.12.1/net/core/
Dfilter.c11833 BTF_TYPE_EMIT(struct mptcp_sock); in BPF_CALL_1()