@@ -212,6 +212,7 @@ static void subflow_ulp_clone(const struct request_sock *req,
const gfp_t priority)
{
struct mptcp_subflow_request_sock *subflow_req = mptcp_subflow_rsk(req);
+ struct mptcp_subflow_context *old_ctx = mptcp_subflow_ctx(newsk);
struct mptcp_subflow_context *new_ctx;
/* newsk->sk_socket is NULL at this point */
@@ -221,6 +222,7 @@ static void subflow_ulp_clone(const struct request_sock *req,
new_ctx->conn = NULL;
new_ctx->conn_finished = 1;
+ new_ctx->icsk_af_ops = old_ctx->icsk_af_ops;
if (subflow_req->mp_capable) {
new_ctx->mp_capable = 1;
Currently inited in "mptcp: Add key generation and token tree", causing transient build failure, move here for consistency and fix build issue Squash-to: "mptcp: Create SUBFLOW socket for incoming connections" Signed-off-by: Paolo Abeni <pabeni@redhat.com> --- net/mptcp/subflow.c | 2 ++ 1 file changed, 2 insertions(+)