Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2113921rdb; Tue, 20 Feb 2024 18:44:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVicl89Gr0vKZOT5n1LbtuApgX62OhQ5Gvw85sv64pOMq50k2uWqu32J6itGI0RIgF02NqjXInRV3jFt0yckpyBQtKXwvKo5TsRFp7Y2Q== X-Google-Smtp-Source: AGHT+IFFN/O08manp/5RdM57HzKaKhHBTvuJnana7748q0c/7LSbryfb7TDz+8rN+ea0m6wNxVBp X-Received: by 2002:a5b:207:0:b0:dcc:9f62:7520 with SMTP id z7-20020a5b0207000000b00dcc9f627520mr15429803ybl.59.1708483476747; Tue, 20 Feb 2024 18:44:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708483476; cv=pass; d=google.com; s=arc-20160816; b=RxJSjEFpus2774SBd/1sqIsNSuCQ0wDVY6XH6MEiahMfY2rVnvuRjh/2JKCstXk5if oBdXkoVBOGtBZhVZ8DCZTyngbxe+0oX9s4cwOeirMHu1rX++l6QQilSSqKy1tG1KUaCp P27gRgwCB3Mn6iISO1PSdTs5YpMlau342t443E4s5IoUL98jdMuVeCIWSpLnO0IeVOKx nR9kIa95iHOf3fgASXUG6T/ojgHM6WN0e9m8JAFGd3vmiJeyiHQilQzH3kJDywkVVo+H wZHiFdaWfUwB+Hi5VVNk6hOfb6A+kz3QSdADnLj027d75ZLRhvWHQ13tF61/LzWUB821 z5Jg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Z0lw8yuw6dEshhXQtSzOlEqit8Tqe6AuDVR8C+SZm14=; fh=zlmumGMsSR313iDRsmEq14aH1aEfbGp1ApHAx5Wq/50=; b=aQMfe0ES410M6WC9T3evxwhCaaFi8sGDJ5B+XHB6Aw7UF7MtM22sJGzEY/QLyPqo/e x/W/b2jC7CaZZdeg+6e2LNLM7wPyuh6Ww/d/pvY+04rXYWbhEz7gH4DcmZwgBUV2yyS7 eHeya4R6RQMxaJcS5MGNRkmgLN6PlccQaREUu/s5E84V5bPz5A0UE1FJOXc5xeklQo1b ytKC3FVqPegopxFolPAoGp8B/Z9aryuwJ2ym+d7bOBqbaPLgBVlbmTNUiHJbOa32wXqY fxEN+6XGZhh9hguvGACAsS9e85RyNIczhVFJntJHuUVHVjyQegTIcFnBBOeLZxCPP2+C u4+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="H/6HpPzn"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73973-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 17-20020ac85911000000b0042da77e7098si11268814qty.404.2024.02.20.18.44.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 18:44:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73973-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="H/6HpPzn"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73973-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 73A821C22A90 for ; Wed, 21 Feb 2024 02:44:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E951A28370; Wed, 21 Feb 2024 02:44:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H/6HpPzn" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1D5C12F36; Wed, 21 Feb 2024 02:44:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708483466; cv=none; b=BmvWfEfzZW2hQBf/TWpKQlfLvrDQa677MzBPwTcWx1xBP+HaRQZhqbaesD8nNCJnETndUi3jZKsltIlI7z4WFXwlsdjNWhHY2L/IsJxpe3/aJGHefbhxKYbt9Ru7UB3TgvB92w869qasiIqVRG3rUQvongfyhvHRz8MTiNJ93SE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708483466; c=relaxed/simple; bh=8a1OrPvpvJAvQeZbo8+FjNLm+ecYqk/MacrjDuZM+Tw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Sml68nq0kTwJ2962ivh0r+4yTSEBcs3hZcIdlgkAg4qXbzD25SFtKgaTsePX2fAQTu9QxFXB7iB3dMtbwa1ukp2Dj3p6MVQdJDhwcwukzTuG6nQOt73sWkVcqwCHsXxVW1mXp0smOKAa/bvPpXpCfvbMEw2d0MOKUftug6lcvsw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H/6HpPzn; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49149C433C7; Wed, 21 Feb 2024 02:44:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708483465; bh=8a1OrPvpvJAvQeZbo8+FjNLm+ecYqk/MacrjDuZM+Tw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=H/6HpPzn2pbHe6jrtJIyM/fQDgqYAcGhrA6eayhy4AkhH+lD3bNTWLk3Um3Y9ol/r 2So1twZPhhU3gEXHjO/651aihjO9eBgLvLIXcTv8LH0tYqgP7ORkSRMSJeFBE3vdsv cSSABiJ0lfBlOKT7/DoYGq7Mj6Vw4lWXrzPyx6K0GjIFJctV2F+cyzxUDkbZy1PL2g CiMvafFmCxOnlSbzw0u7wbXG9fpy+xXVlRbrq+YR/vJsc5y//EKiOuXxhAC85To9DC pKnThz7B8X8ZYWsUdE//XJxWupmdjyMtm9cmrOCDEOQ1UNuiHyQ2fsUzUYpLvxQl7s iqhbj8q348ejw== Message-ID: <8afe7956-8f29-49e8-a59f-7e6b4136fa1d@kernel.org> Date: Tue, 20 Feb 2024 19:44:24 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next] net: copy routing table more efficiently in rt_dst_clone Content-Language: en-US To: Oliver Crumrine , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: From: David Ahern In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/18/24 6:35 AM, Oliver Crumrine wrote: > diff --git a/net/ipv4/route.c b/net/ipv4/route.c > index 16615d107cf0..ebb17c3a0dec 100644 > --- a/net/ipv4/route.c > +++ b/net/ipv4/route.c > @@ -1664,22 +1664,8 @@ struct rtable *rt_dst_clone(struct net_device *dev, struct rtable *rt) > rt->dst.flags); > > if (new_rt) { > + *new_rt = *rt; rtable is a container of dst_entry, so this is copying those fields as well. pw-bot: reject