Article View: linux.kernel.netdev
Article #19234Re: [PATCH net 1/2] ipv4: accept nexthop dump attributes in route deletes
From: David Ahern
Date: Thu, 19 Nov 2026 15:47
Date: Thu, 19 Nov 2026 15:47
22 lines
8824 bytes
8824 bytes
On 11/18/26 2:45 AM, Yuen Su wrote:
> diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
> index 8c123b1..6b012c8 100644
> --- a/net/ipv4/fib_frontend.c
> +++ b/net/ipv4/fib_frontend.c
> @@ -868,7 +868,10 @@ static int rtm_to_fib_config(struct net *net, struct sk_buff *skb,
> goto errout;
> }
>
> - if (cfg->fc_nh_id) {
> + /* Dumps can include both a nexthop ID and compatibility attributes.
> + * On deletion, fib_nh_match() uses the ID to match the nexthop.
> + */
> + if (cfg->fc_nh_id && nlh->nlmsg_type != RTM_DELROUTE) {
> if (cfg->fc_oif || cfg->fc_gw_family ||
> cfg->fc_encap || cfg->fc_mp) {
> NL_SET_ERR_MSG(extack,
as the error message at this point shows, the 2 specifications must be
mutually exclusive. iproute2 will need to strip the nh_id or the nexthop
spec.
Technical Details
Message-ID:
<c5fb4561-f12c-431d-b68d-659ea9cd8a90@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367128-linux-kernel-netdev=dewy.ruReferences:
<20261118084510.332821-1-zypulsecore@gmail.com> <20261118084510.332821-2-zypulsecore@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367128-linux-kernel-netdev=dewy.ru From: dsahern@kernel.org (David Ahern) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 1/2] ipv4: accept nexthop dump attributes in route deletes Date: Thu, 19 Nov 2026 08:47:08 -0700 Organization: Usenet Network Message-ID: <c5fb4561-f12c-431d-b68d-659ea9cd8a90@kernel.org> References: <20261118084510.332821-1-zypulsecore@gmail.com> <20261118084510.332821-2-zypulsecore@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2915517"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Y5EmO0wZ1ac4Zm9ms1sewkqPtCU= sha256:dLwrboQfugr/B6GQBTm+O5kqxFUOx1aWK5wCLBgfctw= sha1:QB407OsEommGf/oW8d3e3b7S2kw= sha256:ISKZEdjCubNmIEMepfAJvCutvcIdZoQkHZ4YB2pPuOo= Content-Language: en-US List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 24AA21156CB; Thu, 19 Nov 2026 18:48:21 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EMzJwaj0bfBf; Thu, 19 Nov 2026 18:48:17 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-367128-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 80CEC11564F; Thu, 19 Nov 2026 18:48:09 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 54251120DF3; Thu, 19 Nov 2026 15:47:43 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795103236; b=yEkj2kIrRo8w8+cj3hzCLCkNzkzZq02LsD8hOH4aTNXFwhKhHEIKPqDUKdQzmBr3zuiq M5Euv/EzU/ylXuEXlZXYA9Qsh7ljoTCzx58vpiBeE49oJgzFYw0hI20o7LeJc+JBHdXD0 4y3QhKs9HlA4BvcEPBLCSh+IXXcUPxpcPxHGeSkvvSvpdX733brQEpt0mSObqEIr2tdMn bQJ4+HiyxHriq4Nrqr+6zSkKs8kqI7piouAMbCd22dxha8T98pePkMMakUX3m3DXm8SOk gAfwALMZe88JRZrDCTzLdY/VZxDelSt+dW/gEyD7dhbOWw/1c5GDjA8ONK1YolDvLhA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795103236; h=X-Original-To:Received:Received:DKIM-Signature:Message-ID:Date: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent: Subject:Content-Language:To:Cc:References:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=HFucv/1vEFUJ92a1RgUBjjm3jSf0ckrYCwva8AjNNgQ=; b=Q6oxccNlMGeRumnHnWTk7t/cdwuHvn0sLYOTig19iAOkpuxvCWnS8Ajou5J7OebipFfm DAl3NvBV7m0iGo2S76t1B3FIV5mPi4AlXEDNT/vP9Dp2Hfw8WAODUUqeVWJWEPo9RSI/i Bbrxvnn8gCCN3OXNS+UX0gxwh5/HLSBzfQFOv0vH1pQ1GRNl3WJh5cJ6EQtJV0I6ANVeU 5Ph2UQ6gmKgbr7TUo5I816wREQX+ACyCyAzGBMux9SiY6YXLK/HGApu3oag9w+CFlaI3q drefGx0A8x/zB4HyPbMu7D4iNlIEqnkeWFqfoX52Powmr61QOVQTgyKhxxvxSgzSPpA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JGNlEtNh; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0487C60A3825; Thu, 19 Nov 2026 15:47:16 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JGNlEtNh X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795103230; b=V21pePxzCeEVoPopsDSzUy+fA6s6d1y8q6uCm/cwdYxmN7fUt+ogrGmNIeGYCrX1uYkC gesT+1v8kAcSarRhq4SptR+jYQRquHkLToFkBCqTS3pPi9+43G9os9seMbLmG1oTmUqBM +iGYY8yZ9jsaiNxt9mzG5Nk4Q4lJNrR7SvqvMuj00JtbgM5ecC2Ipev7m772A8DJivRTu 5XGD/t8BaoXH1zdEfqwbSAH/OUnIf0Ec1U6m2uFAbDMoI+0WW78WK9/0cTlKe6E9/keOj AMvFUBKnSpyJky5ihau14Jz2dw3U9f6sCC9YOWacFkSosfMCFOnKqvclOxCm8EjthTA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795103230; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:Content-Language:To:Cc:References:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=HFucv/1vEFUJ92a1RgUBjjm3jSf0ckrYCwva8AjNNgQ=; b=fcMRDIWGsoa/gW93fXgdMwcmD7ubnUxUgZ6xz1y5hcvkg3+O8FFzLnIcdM8NPgOtQwr3 CuC7kOoLsSPGj2u0N99mHXJzbGkEsZpBqecotl/z5BDm792ZdWCGk4h26XZ2+GZHc9pQl m8LJyzz1jm6mO+XkIpOsI9jABCmCNmHPLt7s9dvx7IoC0OeRBp/APjQIOgg44cnNCZmHK wX101fHJjfQFsDkZmJcKjNMDZ3rPz5NNaa+TbIOPzhqV3d8+6coklZtLaZ51Eput0lAu/ 0xSSUpf6EdejK8CJ0NFlgvZYWD5pXjcR7oyLtX0jVO9oFMNk3BN3Ok+UttgfwQ/ZD7g== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JGNlEtNh; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2355960A2636; Thu, 19 Nov 2026 15:47:10 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C48F1F000CC; Thu, 19 Nov 2026 15:47:09 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795103230; bh=HFucv/1vEFUJ92a1RgUBjjm3jSf0ckrYCwva8AjNNgQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=JGNlEtNhcFbkQJXcCLCkwxp05ZPMCRFWIQRlOdGCe9zmDfhODt0ip8SItKrNc+ClY kmq5ZGkjQSLxB0s2CKgGqdRtXEEpGvy3j8sAPkVti/d3hb/yj4wKpm79BRa+LJo3HV rbykHhN0nNjkb8TDpY7nsmA1gfWtK7yWeJtu+GTrZyo40kTk2vtEtowv5SqZwzRqNR 7UnGdww+hBKQsHPRhVrG9nz3I86sRtY8UVViT6vM4O3Ltriw+qEjEWqW9T+UO+SxDD wICHKm5m0oCWBc9JaxCFZPNoFj2cMKLBPlFt1vFD6svgkiaAwM/AlMBXo9p7FPiN38 PR/0qv5/H0mag== X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-User-Agent: Mozilla Thunderbird X-Cc: Ido Schimmel <idosch@nvidia.com>, Stephen Hemminger <stephen@networkplumber.org>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Shuah Khan <shuah@kernel.org>, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org X-In-Reply-To: <20261118084510.332821-2-zypulsecore@gmail.com>