🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #3440

[PATCH net-next v3 2/2] netlink: specs: add ovs datapath and vport set operations

#3440
From: Minxi Hou
Date: Thu, 15 Oct 2026 02:41
98 lines
10716 bytes
Both families register a SET command that the spec never described, so
a YNL client could not modify an existing datapath or vport. The kernel
handlers take CAP_NET_ADMIN through GENL_UNS_ADMIN_PERM.

In the kernel, the datapath SET command changes the user features, the
masks cache size and the per-cpu upcall pids. The vport SET command
changes the upcall pid. The kernel rejects a type change and rejects
options.

Signed-off-by: Minxi Hou <houminxi@gmail.com>
---
 Documentation/netlink/specs/ovs_datapath.yaml | 18 ++++++++++++++++++
 Documentation/netlink/specs/ovs_vport.yaml    | 15 +++++++++++++++
 2 files changed, 33 insertions(+)

diff --git a/Documentation/netlink/specs/ovs_datapath.yaml b/Documentation/netlink/specs/ovs_datapath.yaml
index f7b3671991e6..9c33d6a2f05d 100644
--- a/Documentation/netlink/specs/ovs_datapath.yaml
+++ b/Documentation/netlink/specs/ovs_datapath.yaml
@@ -138,6 +138,7 @@ operations:
       doc: Create new OVS data path
       value: 1
       attribute-set: datapath
+      flags: [uns-admin-perm]
       do:
         request:
           attributes:
@@ -149,10 +150,27 @@ operations:
       doc: Delete existing OVS data path
       value: 2
       attribute-set: datapath
+      flags: [uns-admin-perm]
       do:
         request:
           attributes:
             - name
+    -
+      name: set
+      doc: |
+        Modify an existing OVS data path. The kernel treats a missing
+        user-features attribute as zero and clears the previously set
+        features.
+      value: 4
+      attribute-set: datapath
+      flags: [uns-admin-perm]
+      do:
+        request:
+          attributes:
+            - name
+            - user-features
+            - masks-cache-size
+            - per-cpu-pids
 
 mcast-groups:
   list:
diff --git a/Documentation/netlink/specs/ovs_vport.yaml b/Documentation/netlink/specs/ovs_vport.yaml
index fa975f8821b6..63a0a41a1199 100644
--- a/Documentation/netlink/specs/ovs_vport.yaml
+++ b/Documentation/netlink/specs/ovs_vport.yaml
@@ -128,6 +128,7 @@ operations:
       name: new
       doc: Create a new OVS vport
       attribute-set: vport
+      flags: [uns-admin-perm]
       do:
         request:
           attributes:
@@ -140,6 +141,7 @@ operations:
       name: del
       doc: Delete existing OVS vport from a data path
       attribute-set: vport
+      flags: [uns-admin-perm]
       do:
         request:
           attributes:
@@ -165,6 +167,19 @@ operations:
             - netnsid
             - upcall-stats
       dump: *vport-get-op
+    -
+      name: set
+      doc: Modify an existing OVS vport
+      value: 4
+      attribute-set: vport
+      flags: [uns-admin-perm]
+      do:
+        request:
+          attributes:
+            - name
+            - type
+            - options
+            - upcall-pid
 
 mcast-groups:
   list:
-- 
2.56.0
Technical Details
Message-ID: <20261015024132.698658-3-houminxi@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346528-linux-kernel-netdev=dewy.ru
References: <20261015024132.698658-1-houminxi@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346528-linux-kernel-netdev=dewy.ru
From: houminxi@gmail.com (Minxi Hou)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v3 2/2] netlink: specs: add ovs datapath and vport set operations
Date: Wed, 14 Oct 2026 22:41:31 -0400
Organization: Usenet Network
Message-ID: <20261015024132.698658-3-houminxi@gmail.com>
References: <20261015024132.698658-1-houminxi@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2435830"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:f2eTUtHrpnk0BTLsg+ZlTO5egMc= sha256:OOe8RXO8tT3Pr4t8XVnTWCd3A7SElWcU9pvlZGVatuE=
	sha1:NvEvgpCgyhRE8eGR6bGlvbGgkj4= sha256:0hFJJZUcuanISSu3RMwVFOzNfWRklVB7d0I7VoO+b+E=
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 816A8110237; Thu, 15 Oct 2026 05:42:15 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.848
X-Spam-Status: No, score=-0.848 tagged_above=-9999 required=6.31
	tests=[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.25, MAILING_LIST_MULTI=-1,
	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 WYUb2pIJCNCh;
	Thu, 15 Oct 2026 05:42:08 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-346528-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 870561101A3; Thu, 15 Oct 2026 05:41:57 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sto.lore.kernel.org (Postfix) with ESMTP id A6BC460AA82; Thu, 15 Oct 2026 02:41:52 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EEE83B3BF5;
	Thu, 15 Oct 2026 02:41:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ih7Cs7d+"
X-Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id B31202F39B5
	for <netdev@vger.kernel.org>; Thu, 15 Oct 2026 02:41:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.52
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792032112; cv=none; b=qNXnu2UGBVvN8lVSbLm53bl/ZhadIilOaePlsakOSu9TPvXBxGGGRx9K3a4sR9BpHIW2hIY70tmHkl6r5ogYGzBbSv5puyJT3+QdIOt5Y3jCkCxm2oj1ikErjfcspKwTygJ83T7GeZuIGlLJatnIh+ESyZAydxBvsnxctB+is4E=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792032112; c=relaxed/simple;
	bh=CUZyje4n78m4jdXPd4SAa+g8xkwZKgDYJT/HhjzS9/M=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version; b=NWaQYgLW81DqiUXLgmyO8VDmxr+kI+s2quSKSY8Dh9upZncKVy6BBLxI92M2VnOnW5F6StrWvgCjI9eMSVP8QvYKV5hIyYVk5Eejl5AmhPNUgf4jV1Oib9+LZauU2Da1fa5vhO2ZwnLQcDKd6FY0uoQZPNu4qoVud4eH9HM1PvA=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ih7Cs7d+; arc=none smtp.client-ip=209.85.210.52
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-ot1-f52.google.com with SMTP id 46e09a7af769-82503732024so2441180a34.3
        for <netdev@vger.kernel.org>; Wed, 14 Oct 2026 19:41:50 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20251104; t=1792032109; x=1792636909; 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=EOKISdkeff5znYeTft3P6Dn+hHPoZACNR8vzTbmw6w8=;
        b=ih7Cs7d+PjPw+KDXQTWQigJ0m4OHHCxffZBGKSlYRBXzzXes/aCgynbnB04ZcgQFC8
         hrxHyRP+1sTN28vD/x174Seru/UjfHsutHGHfQ/HCJKcemAwGebQXwc+aaTf+MuWQCe6
         k90WvciY4BiQJyMK93jUJVBxmzua+ZH3Xjzt0HLHqlcep2XNeyLfyQ722ZoaN3+4RgPm
         rY/EceRvKUpxRJly/B6xwWs8BoUYgLfNmKaHdYUJeb7FrE9fvWN/l6xva/CtR6of9yjS
         /sNEbT5woreTLdSbCM/bRFWDJLCQzJ2E4n5AvXVbv8colk7lKRYr/N3GUnsTLiSwRfVt
         qVAQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1792032109; x=1792636909;
        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=EOKISdkeff5znYeTft3P6Dn+hHPoZACNR8vzTbmw6w8=;
        b=sZoQQCZ14baye6A7JDbJ3te6IUeF1UM6zYswlejQP5Gs+k/l/Qm4a192JgucbnPjIh
         IS+VLGTFPtWa0o+uZgtTMu8Y1MWdIQnRX5kKa4hdF08ylJoNaqeL3Q1DQgeUJdD8vXIT
         H+eJass2Fk/3Eyq1BjMeLcUbuQK9WqIIlRN0NKQskRA1Q4EvzjMkHCAoELmwu5h3aRI1
         K0aUuefrheZI9JhVhI6loHtIhMhYjlR8iOlomVIOKLdj88cpATsGoYbLaqLfb1k9n2r3
         KIIAkLnBpKyM1LEWIt8dPBciwczlhQGMC7+7OvskSniUbu3haTKxCOLoqnI4xpFcGuQC
         j8DQ==
X-Gm-Message-State: AFq9FYK4PlnN6A2CClC90ii2IQ67Zz6JA1Z3R2XG3Vol3o36bceex9Sn
	AN6QtGMB+k/Q21pYMbIVogjrY6dLGJYBN926o3cOEBSQ+bfZgjWJztwl+LhG6m/P51UUkg==
X-Gm-Gg: AYBFou0+7kduKmRFWKzSvRef6HtRd6dDn8UlAxATg+XXhoRnlPL3yvIkAoR6D82q8ZF
	nXzUjBIv/lldixuIHXUNAH8YRWrpyeiFqdRUfMkMDr9Nlqm5TVFNWsrfILnXhrlNOU+esijukcp
	wyydvW1Lf/4MHinswm15CO4aO/Ur047ohmxceOcclFi2RkkqKtVqeWFBFw8YNfz4Zx6BjNM5VLm
	6j+j/+wg8gMnrYYjAu95f18CduVtbX3b9iHqtIpORKASdckS5brb3yG3PRMPP3nkxYV4d9CA26g
	r+7VzF36QZCGjv7PPM703B2qbkQ6HVODBnOfDP05yxjV51lsbPC7z/7x0k+Zjzy99vaB0gq0Di0
	Be8ONDkzLMtOcRui3Xwr95s5KExScFiMF9YjkQX/2rcx3qq2Ozc1Ovci375diNOQaKUPGSRO2iL
	+akVabT0TK2mivy4qMTHDHCml/rrASPSjO9wSkDLM5X1KU0RgbdsG61fim8hh50xPDCfPSQGH3X
	Tu7
X-Received: by 2002:a05:6830:2e06:b0:7fa:ab72:9e05 with SMTP id 46e09a7af769-830980577damr24300855a34.29.1792032109454;
        Wed, 14 Oct 2026 19:41:49 -0700 (PDT)
X-Received: from houminxi ([61.170.152.244])
        by smtp.gmail.com with ESMTPSA id 46e09a7af769-830385b9cb0sm16720024a34.4.2026.10.14.19.41.46
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Wed, 14 Oct 2026 19:41:49 -0700 (PDT)
X-Cc: donald.hunter@gmail.com,
	kuba@kernel.org,
	davem@davemloft.net,
	edumazet@google.com,
	pabeni@redhat.com,
	horms@kernel.org
X-Mailer: git-send-email 2.56.0
X-In-Reply-To: <20261015024132.698658-1-houminxi@gmail.com>
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>