From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FAB2C6379F for ; Tue, 14 Feb 2023 19:23:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232364AbjBNTX0 (ORCPT ); Tue, 14 Feb 2023 14:23:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbjBNTXZ (ORCPT ); Tue, 14 Feb 2023 14:23:25 -0500 Received: from out-14.mta0.migadu.com (out-14.mta0.migadu.com [IPv6:2001:41d0:1004:224b::e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 792DB2BF3F for ; Tue, 14 Feb 2023 11:23:10 -0800 (PST) Message-ID: <78481d57-4710-aa06-0ff7-fee075458aae@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1676402587; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Kpftc87W23vT1+W4TU4Q53NONXxNtzCbpVHA7c1mifU=; b=Nyp/2uwKHZ1JjmabvG+8DiATaGHt8flGjZGZMBOWHVECUovbEAxg4m0TKi6/51HL51qHNK J9XRW5kGgwVOu7Wj+yGDTQ5Arm3kerSdgkemPCgftKlXufmHRNoEqQC+ulfBliKsdUBfHT IPWgF9MsToWDIq/36a+lC4jqfr+xDXQ= Date: Tue, 14 Feb 2023 11:22:58 -0800 MIME-Version: 1.0 Subject: Re: [PATCH bpf] selftests/bpf: enable mptcp before testing To: Hangbin Liu Cc: Matthieu Baerts , netdev@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , bpf@vger.kernel.org, Jakub Kicinski , "David S . Miller" , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Felix Maurer , Davide Caratti References: <20230210093205.1378597-1-liuhangbin@gmail.com> <6f0a72ee-ec30-8c97-0285-6c53db3d4477@tessares.net> <19a6a29d-85f3-b8d7-c9d9-3c97a625bd13@tessares.net> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 2/13/23 7:11 PM, Hangbin Liu wrote: > On Mon, Feb 13, 2023 at 05:28:19PM +0100, Matthieu Baerts wrote: >> But again, I'm not totally against that, I'm just saying that if these >> tests are executed in dedicated netns, this modification is not needed >> when using a vanilla kernel ;-) >> >> Except if I misunderstood and these tests are not executed in dedicated >> netns? > > I tried on my test machine, it looks the test is executed in init netns. The new test is needed to run under its own netns whenever possible. The existing mptcp test should be changed to run in its own netns also. Then changing any pernet sysctl (eg. mptcp.enabled) is a less concern to other tests. You can take a look at how other tests doing it (eg. decap_sanity.c).