Re: [PATCH bpf-next v2 3/5] bpf: add 'bpf_mptcp_sock' structure and helper

2020-09-14 Thread Song Liu
On Fri, Sep 11, 2020 at 8:15 AM Nicolas Rybowski wrote: > > In order to precisely identify the parent MPTCP connection of a subflow, > it is required to access the mptcp_sock's token which uniquely identify a > MPTCP connection. > > This patch adds a new structure 'bpf_mptcp_sock' exposing the 'to

[PATCH bpf-next v2 3/5] bpf: add 'bpf_mptcp_sock' structure and helper

2020-09-11 Thread Nicolas Rybowski
In order to precisely identify the parent MPTCP connection of a subflow, it is required to access the mptcp_sock's token which uniquely identify a MPTCP connection. This patch adds a new structure 'bpf_mptcp_sock' exposing the 'token' field of the 'mptcp_sock' extracted from a subflow's 'tcp_sock'