🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #2145

[PATCH net-next v2 1/2] netlink: specs: add ovs_flow del and set operations

#2145
From: Minxi Hou
Date: Mon, 12 Oct 2026 06:55
75 lines
10021 bytes
The ovs_flow spec only described get and new, so a YNL client could
not delete or modify a flow. The kernel has had both commands since
the family was added: del flushes the data path when neither a key nor
a ufid is given, and set looks a flow up by key or ufid.

Name the attributes each command reads. del and set need CAP_NET_ADMIN.

Signed-off-by: Minxi Hou <houminxi@gmail.com>
---
 Documentation/netlink/specs/ovs_flow.yaml | 35 ++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)

diff --git a/Documentation/netlink/specs/ovs_flow.yaml b/Documentation/netlink/specs/ovs_flow.yaml
index 951837b72e1d..b1c884b4115d 100644
--- a/Documentation/netlink/specs/ovs_flow.yaml
+++ b/Documentation/netlink/specs/ovs_flow.yaml
@@ -438,7 +438,7 @@ attribute-sets:
           are exact match bits.
       -
         name: probe
-        type: binary
+        type: flag
         doc: |
           Flow operation is a feature probe, error logging should be suppressed.
       -
@@ -988,6 +988,36 @@ operations:
       doc: Create OVS flow configuration in a data path
       value: 1
       attribute-set: flow-attrs
+      flags: [uns-admin-perm]
+      do:
+        request:
+          attributes:
+            - key
+            - ufid
+            - mask
+            - actions
+    -
+      name: del
+      doc: Delete one flow, or every flow in the data path
+      value: 2
+      attribute-set: flow-attrs
+      flags: [uns-admin-perm]
+      do:
+        request:
+          attributes:
+            - key
+            - ufid
+            - ufid-flags
+            - probe
+    -
+      name: set
+      doc: |
+        Modify an existing flow. The kernel rejects the request with
+        -EINVAL when it carries neither a key nor a ufid. Replacing the
+        actions also needs a key: a ufid on its own is not enough.
+      value: 4
+      attribute-set: flow-attrs
+      flags: [uns-admin-perm]
       do:
         request:
           attributes:
@@ -995,6 +1025,9 @@ operations:
             - ufid
             - mask
             - actions
+            - ufid-flags
+            - clear
+            - probe
 
 mcast-groups:
   list:
-- 
2.55.0
Technical Details
Message-ID: <20261012065552.2426415-2-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-344755-linux-kernel-netdev=dewy.ru
References: <20261012065552.2426415-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-344755-linux-kernel-netdev=dewy.ru
From: houminxi@gmail.com (Minxi Hou)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v2 1/2] netlink: specs: add ovs_flow del and set operations
Date: Mon, 12 Oct 2026 02:55:51 -0400
Organization: Usenet Network
Message-ID: <20261012065552.2426415-2-houminxi@gmail.com>
References: <20261012065552.2426415-1-houminxi@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1702201"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:xb3hTiopg5H18y6vfHZq0loLgyU= sha256:zV69GtWP37lHHUQGeYbMegQ3H1RDAry8IUQ/V0ORQB4=
	sha1:Er2JqX643FgL+ZKa2ocjYt3V/sM= sha256:MdeK4aByWc8Ra8CT4n7Mj27Sccf2CjZFl8LGzKkV08E=
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 6F2E110FB07; Mon, 12 Oct 2026 09:58:22 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.749
X-Spam-Status: No, score=-0.749 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, 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 rrew7wKaU-fs;
	Mon, 12 Oct 2026 09:58:19 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-344755-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 41CF310FB00; Mon, 12 Oct 2026 09:58:11 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id C02BA3A3AC; Mon, 12 Oct 2026 06:56:07 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F02C438037;
	Mon, 12 Oct 2026 06:56:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ompA+xjp"
X-Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178])
	(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 4FE50436377
	for <netdev@vger.kernel.org>; Mon, 12 Oct 2026 06:56:06 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.178
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791788167; cv=none; b=UHrvHyeKEa6sBvjfjVJLg5zxMl+pOU13qCyRueQtTjUVtymYJnzv+kEQHOeg5PR1Xalogic9Eri5T0G+fcE4GyOqFgeJ42sv61Q0OTT/slH+Ot3JV0aTF6iW5XPk5jiB+KKeuD2VEnieovNBrgouAKBflc3gu8fxgizwsIsayxw=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791788167; c=relaxed/simple;
	bh=wq9LjaHC25uzueKjo38CDdE50fQDIv7YR9Rh+AIzOQw=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version; b=NhylWALoDfkTdUYJiv/FXA4dgeUdJsTf0iOQR+cATsijqGnuBVx0WwPs2J3y4LtHVPDPBHFS0l1nO1v/a1qe7mpwGhX2fPhXDImjRZ+GgrJREuYvLXAYxyZVA/kJhq/0Kq3+9E3hDk5xwKuhMmMnIJEIxVBvt7YtMscI102QPQo=
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=ompA+xjp; arc=none smtp.client-ip=209.85.128.178
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-yw1-f178.google.com with SMTP id 00721157ae682-888cbacf70eso17152197b3.1
        for <netdev@vger.kernel.org>; Sun, 11 Oct 2026 23:56:06 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20251104; t=1791788165; x=1792392965; 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=1J9nUlqHHAtSfKkf6fyMdm5ZLjWs1fX2p5xM45lxjX4=;
        b=ompA+xjpeuYf4ykepd38IplkrKgi8BStpUd5MIJqWH/1kRHkaIp89UHFL13z+NWYhn
         IMxTL37wcPFZoiSNphHazzyPii1UQ8odQJqTJuOqKDnrIrtUSCfPU46bpb8gUq/QD51S
         NR9eea5kaEIsEQUWq/VUo4+OpTBpKoQDckk1WgGBgpXxtTvSPDEXbed/WzbJGrI0gHBy
         yFk7FX+/nt8N+Hpl2x121TSVX/KobJWc7yt8H0hFfaKqmPUp+DRa3Q1XRszPyNmjm7B3
         rf0TUcWDJ45G/gcPxH+CKjIUEnHmHgXKH+nbc9tfFFbK77QOqbKGSuFxe+KwGFHqiBOL
         LWnA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1791788165; x=1792392965;
        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=1J9nUlqHHAtSfKkf6fyMdm5ZLjWs1fX2p5xM45lxjX4=;
        b=JdzcsaFZGIxvQor2IK0mCtDHzVqRto08Wb/PJ+NwqlC5iDAvdaZdI0NU3yCw7HnoV/
         KOdhmJX/IfVm61fjmQETliLDv1WbqRM0hml4AjSyOPlvoS3NRrIL+1ymB9jwRcCxc2vw
         /V1aHI0IT549/XX9bInx+jRyQgRS2+iP+RoX3zn0AVy/1m3+khVWZq+/8UqVm7a8vZqK
         Ln1fsMd/5d/jw+rrLbcOBevTm+LBRhR4gpy5AYWfbcjsxCrS7JamzsAF9ttCA85FlcTv
         q8mvput5g8exmxsmUh59ObM9GbxS9SVzpwbkXGzInOXDmLb8RoI+sOEF+g+btCRnXjgi
         w+aQ==
X-Gm-Message-State: AFq9FYKgOGRUI+JJsvxxo1AVkwOVDr2GOW1H4UvIxYWiK+LYHc0bRTUw
	GCxJTHLZsNRmwzvhyKx5UKodJ3jSm0ZZgGL7Ldv39IxZc2dg6gNfvHZBr3hMm0VpCpOjmw==
X-Gm-Gg: AYBFou2fvFFneSBq0euvuLq5h/SNarMSXIRy9f6Yq2nz8fvUSpydjuS3YNOyfFe0ujl
	QcnbGnbktTtqNk2s4vaoweK9Q6aPwCBpppKvc6FpbDLhSnsEA6jr47TXOVlQkKKiOzIWZJr8rNx
	ze4304Ca4PoAMnYcyTkNwgxN8rTP9I/c4Vd8N2PKXFxDS3UK46DQ9DlKOxEaVnGwtKvpqqW5J0x
	nnHWAXGDgEhxoe75Yy/QPfqEjTBRh9oC/Ph6hbR39rvEjWpVI/Pn1boQ5L1haRgkhR5gm8qsUZK
	dBb15RhuSwgFoNYruBXN67HbvoweQ9h4CrWd8BfgJnO97Q1T2rQuj4qM0cLsdE6M226Q1BBdDwW
	aWpvFYlZXPK1ZB0XOA9BPEPPShhCBlSmvYjanrsG8JRLSLyRXzpmBdzvQ1izyL8QqmBmNhGmHgf
	w2iGzwoGkfuYq+JSJGctljeiUdQjDPNX2bxxJWafCzTIdAixzsq+a8Lz16T6/NUfQg
X-Received: by 2002:a05:690c:83:b0:871:bc3:9856 with SMTP id 00721157ae682-8b07ede5a10mr23868627b3.33.1791788165190;
        Sun, 11 Oct 2026 23:56:05 -0700 (PDT)
X-Received: from houminxi ([61.170.159.53])
        by smtp.gmail.com with ESMTPSA id 00721157ae682-8b07f25ae62sm32256867b3.43.2026.10.11.23.56.02
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Sun, 11 Oct 2026 23:56:04 -0700 (PDT)
X-Cc: donald.hunter@gmail.com,
	kuba@kernel.org,
	davem@davemloft.net,
	edumazet@kernel.org,
	pabeni@redhat.com,
	horms@kernel.org
X-Mailer: git-send-email 2.55.0
X-In-Reply-To: <20261012065552.2426415-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>