Article View: linux.kernel.netdev
Article #14106Re: [PATCH net-next v6 2/2] netlink: specs: add ovs datapath and vport set operations
From: Minxi Hou
Date: Tue, 10 Nov 2026 17:52
Date: Tue, 10 Nov 2026 17:52
22 lines
11784 bytes
11784 bytes
On 2026-11-08 12:39, Sashiko wrote: > [Low] The min length has no effect for this family. > [Low] The vport set list names attributes the kernel rejects. On the first one, the mechanism is in the generator: TypeScalar.__init__ calls _init_checks() only when the family is not classic (tools/net/ynl/pyynl/ynl_gen_c.py:375), so for these families a check documents the kernel policy and nothing else. The kernel enforces it with NLA_POLICY_MIN(NLA_S32, 0). v7 keeps the declaration and changes the type to s32, which does reach the generated request code: it now calls ynl_attr_put_s32() for the attribute. One disclosure on the same point. v7 also adds a max check on masks-cache-size, for the same reason, and it does not reach the generated code either. If a check that generates nothing is worse than no check, say so and I will drop both rather than leave them in the spec. The vport set list no longer carries the ifindex or the options, and the doc says that a request with either of them is rejected. pw-bot: cr
Technical Details
Message-ID:
<20261110175205.978410-1-houminxi@gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360489-linux-kernel-netdev=dewy.ruReferences:
<179414156884.994134.5015506800657224516@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360489-linux-kernel-netdev=dewy.ru
From: houminxi@gmail.com (Minxi Hou)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v6 2/2] netlink: specs: add ovs datapath and vport set operations
Date: Tue, 10 Nov 2026 12:52:05 -0500
Organization: Usenet Network
Message-ID: <20261110175205.978410-1-houminxi@gmail.com>
References: <179414156884.994134.5015506800657224516@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="672457"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:MiH0mPVDb2ypcA5tbqJq4JBEXuk= sha256:w6snxcjgSgP338A1CWFuINgVhUP0UXsZnTwzkZC1Eqw=
sha1:0tcgWkYjhs/oz587lfJGJF2Fm9c= sha256:tc/b0HzRNlU1XHZ65mSVaSP7r8EnXmCNyphj6o/kI30=
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 A793E113CB8; Tue, 10 Nov 2026 21:34:13 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
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=gmail.com
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 JgmN02vySSH7;
Tue, 10 Nov 2026 21:34:10 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-360489-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 7DE4A113CA9; Tue, 10 Nov 2026 21:34:02 +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 47D101A1482; Tue, 10 Nov 2026 17:52:23 +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=1794333142;
b=JwTWJNd0jrKn/fKJFPQoMRL4cgz+UnbouzilXDclUQcAabJCUvdVlV3x0RWBLcdvDHnb
c5ygNZbsKMct2rM/aiwk43rX2Th9SJ2oCWDiDvCfoC2AezRosx7JE7Jz/Je531jbfA3PQ
i07QwmBl1QLxM4xmzB9UW5s66Jn2WBqshseEAl4cXy5Yfe55ClrM0KWQsVAZjlGYsFE2A
ThTs0EJjTzF0J8Bj/L5PuSZgA7J34LH7QHKjw2JkQAOZU6X4dh2K8ZXo0656wX0aks7K+
wuC8ltZ7FrSznwKX5iyDdwWAHqyC8nR2LIIlbmao8XVCIv1NT0aUcBjXRzbdPgs5aJg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794333142;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding;
bh=rdOmAeG6poyov//lJ4VIygTia9///k0Lcnf6KqKTndk=;
b=ZdWdh0In7wlAvKd6k4dRDT0XSjKszsqcDJzFwJbxSleD2nq+hGuL+gzeia6plHXkhIVB
yIIst1c0GZKXpVrL/rRTNd0y3JOUGziirMHQXE2pFpvdaMjgxpMeC0oZ5cuMeXYfQcpQj
DRxZSYmEfE8fwojsO7L6z8X1foU1kkys7etKqECXTENbpVcDIAADJciOLy5HKkni8bzh3
qHkCwqV4LRBh6ymGuwSo+hg+k3dCb4bStKZbspFNKHk2KWntLJ5ltKnAWn48MXWRYa4ZO
wBMjLJvquyFefbemSiQ/yi36sng2v3x/Yg8Vt2wd6kr0kdK43HhSMxzztOdX24qqvvg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="Upm/kl2W";
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
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 8136F606A327;
Tue, 10 Nov 2026 17:52:22 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Upm/kl2W
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.161.52
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794333141;
b=NUHpSGcKn5eMjZuVfVeEY1VH+0LfsH8qXHHBoJAMDluXLWhS2kRezMyoEumAKgsxE9zq
ax1W6DtJEGyU43Xxr1ICrs7QMf3K7SsX8Y8RZc+Go3/czRXTSrFjJzECB6NCWDC4y9oMr
DlBHZhKpxnQ+VYUpEMPTNaz9tyopjdHfuB3rLQ9n7ETkm8XIg62fCVFPIbc022723V+lf
Npc2zWoKqYhpWIRTTEc3rWRkpkpbXSn3RcK7+6n07S/t5viy6SjgqVOMermUdpLukO4H9
dwYgtx7a46j8IIYXjEMaEGt3NEY1rUbZpYz1CABmQtCBnEWBEadKQikl81GSpzU6ugw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794333141;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=rdOmAeG6poyov//lJ4VIygTia9///k0Lcnf6KqKTndk=;
b=KKXXDVb2j0AUOhJ0woQOAO8oOeeOtW9sCtSVkwcQoIo5/n2lhfc+C/lTAHW56T7DVtpB
i3OKmPnA+1jjAEd5tjugaRv1CUbZjQRVXOkXuyBhEzLnnjwxcBE3m6XSk10OrL+q/x7jo
iXNVPCQ9jxCNOGym/ejcgOdMGqDnRAq0fRMHyki4nP/U5t3mn+24I9ZW7tMVWRoD91+jO
O0LsTqjmLGsZx75qrNzz+XsJaNWQxzIIf+9P6lAQDRLDrayVJ0QGXvSRbSnt2BxwQQKpU
NGAG41MunWbEDrp1XXytGXZVANKtrtVaaEUiVMfr+C3sqMJTs2uWrmfDcKIfCQNRS0A==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="Upm/kl2W";
arc=none smtp.remote-ip=209.85.161.52
X-Received: from mail-oo1-f52.google.com (mail-oo1-f52.google.com [209.85.161.52])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52554606A320
for <netdev@vger.kernel.org>; Tue, 10 Nov 2026 17:52:21 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 52554606A320
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-oo1-f52.google.com with SMTP id 006d021491bc7-6df7f544919so1221222eaf.1
for <netdev@vger.kernel.org>; Tue, 10 Nov 2026 09:52:21 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1794333140; x=1794937940; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=rdOmAeG6poyov//lJ4VIygTia9///k0Lcnf6KqKTndk=;
b=Upm/kl2WFo2qWXjipnwhP45CQUSdz0AUAlQ2ZTR4etmokvCbHB4jviat920uvatp8h
u2gtBwHNzwJdmKmXLlgcidnbUaVlwayDRzdO38pYgO2NF4EsCpyJF0+Z3TAcSfyviW9X
Zk7NQH79Aq1nkMeCEabh9QNaE5RBSP2+6b0a4mRBnQSHDHscFfRGINJSmb0TPHL40ci0
y0oelyZWXj71erHj6F4E4IknPJwl4hDMjVA6ykh/9X80tREM90kP0IhRxxuMedCGYgvQ
DxUnm3wj1Sgv32HzMgfgN3GpttgPv34XVQvEc+o37hCy5q46vIwcwc/G2gDbo51MohtK
lafw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794333140; x=1794937940;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=rdOmAeG6poyov//lJ4VIygTia9///k0Lcnf6KqKTndk=;
b=yFE4YSC7LyN/LJ3THaXeJX2ShLvO2WWvxhHGL61ScNmcBJickUqf36yU/5E2ClUArr
hbuxpxOo2Yyr1e0h28aFB16QktSc10QxSRNcg1TEa1IQKUL7doDEdPPuIGyQ5JZUYqDL
vFBRa4Ba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:20 -0800 (PST)
X-Received: from houminxi ([61.170.225.237])
by smtp.gmail.com with ESMTPSA id 006d021491bc7-718a8f660b2sm2127174eaf.4.2026.11.10.09.52.16
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 10 Nov 2026 09:52:19 -0800 (PST)
X-Cc: Donald Hunter <donald.hunter@gmail.com>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
Aaron Conole <aconole@redhat.com>,
Eelco Chaudron <echaudro@redhat.com>,
Ilya Maximets <i.maximets@ovn.org>,
dev@openvswitch.org
X-Mailer: git-send-email 2.56.0
X-In-Reply-To: <179414156884.994134.5015506800657224516@kernel.org>
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