From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-fw-9102.amazon.com (smtp-fw-9102.amazon.com [207.171.184.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA70C33CA; Fri, 21 Feb 2025 03:36:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=207.171.184.29 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740108974; cv=none; b=Hr0DnIit8E0R+kFXAH4jUnc1Fkk1HZeHrF7E5XNeJCmpoo7MBD9OTNvc2oB1zKzQPC8+SBb7Ly0SHlvNprGVzKhlbkI/S5l2dQTWivApTZH0NE+UlAbxHpr8UceehFJ6Zms1xFfVE5/XsQaSnnABC7hiKnEsfFoh4WFKGTllFm4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740108974; c=relaxed/simple; bh=gKthB+K0tAoEXAa0sueo9AGRemYbKF6ODWZJ+MhsZc4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Y7JOFu2rYGFL4PwcUY3I5m9mDeP5y1i4duWcUOiohZnO2VsqvZkwgOBKih07n4fB/yN8jD+1htMObb3y227NC+y5G5g6AfEDJ4EKjR/cu1z6HwfOukZk2S/zC3fNmnRx7WYKtJg54XI2H/EPNpghXBeiFbWGigd2kXS+NA9oEso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com; spf=pass smtp.mailfrom=amazon.co.jp; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b=GEsUhoOq; arc=none smtp.client-ip=207.171.184.29 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.co.jp Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="GEsUhoOq" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1740108973; x=1771644973; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oFHrnoZA5yunh9fQerpN+ou0poPl6NY3Hw3Lua8KpXw=; b=GEsUhoOq5jmSSgH6tN7mhqjMFxtEigYUddRsNFaT1viaPHC5fOEBQxgT GdmAxZ4cNcNzJuTRjujStW5ZUD8eDTTs0+ppD/IcCs+U7rIXyhybzfaWo +m21pgEHrBXRh3K38mn9xMlJnpaYQkqqu++c+zFESiH8PHfq0zF89N1As o=; X-IronPort-AV: E=Sophos;i="6.13,303,1732579200"; d="scan'208";a="495797487" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO smtpout.prod.us-west-2.prod.farcaster.email.amazon.dev) ([10.25.36.214]) by smtp-border-fw-9102.sea19.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2025 03:36:06 +0000 Received: from EX19MTAUWB002.ant.amazon.com [10.0.7.35:31178] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.35.58:2525] with esmtp (Farcaster) id 8cb3c8f8-0a7a-4678-9917-956104d654d3; Fri, 21 Feb 2025 03:36:05 +0000 (UTC) X-Farcaster-Flow-ID: 8cb3c8f8-0a7a-4678-9917-956104d654d3 Received: from EX19D004ANA001.ant.amazon.com (10.37.240.138) by EX19MTAUWB002.ant.amazon.com (10.250.64.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1258.39; Fri, 21 Feb 2025 03:35:58 +0000 Received: from 6c7e67bfbae3.amazon.com (10.135.209.63) by EX19D004ANA001.ant.amazon.com (10.37.240.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1544.14; Fri, 21 Feb 2025 03:35:52 +0000 From: Kuniyuki Iwashima To: CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH net-next v10 06/13] net: ip_tunnel: Use link netns in newlink() of rtnl_link_ops Date: Thu, 20 Feb 2025 19:35:44 -0800 Message-ID: <20250221033544.74835-1-kuniyu@amazon.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20250219125039.18024-7-shaw.leon@gmail.com> References: <20250219125039.18024-7-shaw.leon@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EX19D039UWA004.ant.amazon.com (10.13.139.68) To EX19D004ANA001.ant.amazon.com (10.37.240.138) From: Xiao Liang Date: Wed, 19 Feb 2025 20:50:32 +0800 > When link_net is set, use it as link netns instead of dev_net(). This > prepares for rtnetlink core to create device in target netns directly, > in which case the two namespaces may be different. > > Convert common ip_tunnel_newlink() to accept an extra link netns > argument. > > Signed-off-by: Xiao Liang Reviewed-by: Kuniyuki Iwashima