From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B9B9D39C00E; Thu, 30 Jul 2026 15:05:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785423928; cv=none; b=UnPMKyXbCLqZ4KEa42Q9OchYRe0cDC6yfQQd4fMFcWJvsSC62L7MxKNn0yuj0jbtxVrkExZqFENQCm+3QY+OpbVVy0XuMLNiQzzlQELIJc84++FZ1ugBH8eypKmhy4k80CaKsfF5WOPC8Z2mRWZ8bNID7yCLKZDsq3X9ritHZUM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785423928; c=relaxed/simple; bh=3eqvh87wiV2dkx1SknwwX5nJdAXbAzlnhjDiDk6cJ2c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=c6rleKuvVW6uJXkk+UA//Ta8JLGDjcXsZCYaSzP0XFWNrpMfO1f4o+C5+DiNpqX0DYAVriH2MlG/ocoyZ5aEYG4O10j3gNJyI5HEhNpsUGUZMFHbkZCD6hc10UOGhRuCo6n5ZnVT74LNMm0McRK8ssaVPKfCKcUlNrsR51R3XNg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UkTitVAI; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UkTitVAI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 209A41F000E9; Thu, 30 Jul 2026 15:05:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785423927; bh=Y07lc/gvs8fEDZ1wsO86mSBynOO+GABKf5FRoG80rME=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=UkTitVAIYm3Ei/JC5u5kswRf9ykqFMpKwRk6ncjNWuk91DteTbFKLZz+gthgrLX6l JpQtAVKq2xaMSxA8ptqAx71OqLRCrBJfQS7To3O1hI1FnBFH4HDucX+EuaAnneYbIu 7fQSgFt80ltWHcqxzKo8Pox3vQfCZdtDGmDs8zqI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Petr Machata , Nikolay Aleksandrov , Ido Schimmel , Danielle Ratson , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.18 213/675] netlink: specs: rt-link: convert bridge port flag attributes to u8 Date: Thu, 30 Jul 2026 16:09:03 +0200 Message-ID: <20260730141449.669298299@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260730141445.110192266@linuxfoundation.org> References: <20260730141445.110192266@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Danielle Ratson [ Upstream commit f6e3b21608e974c4aaa4cfd73a239dacf1d8a9a3 ] A number of IFLA_BRPORT_* attributes are documented in the rt-link spec as having the "flag" type, i.e. a payload-less NLA_FLAG attribute whose meaning is presence-only. This does not match the kernel, which emits these attributes with nla_put_u8() and validates them as NLA_U8 in br_port_policy[]. The values are not mere presence flags but carry a u8 payload (0/1). Convert these bridge port attributes from "flag" to "u8" so the spec reflects the actual wire format. Fixes: 077b6022d24b ("doc/netlink/specs: Add sub-message type to rt_link family") Reviewed-by: Petr Machata Acked-by: Nikolay Aleksandrov Reviewed-by: Ido Schimmel Signed-off-by: Danielle Ratson Link: https://patch.msgid.link/a57cdfcfc4a6dcb92106c25b4dde5059fde2bd44.1783236731.git.danieller@nvidia.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- Documentation/netlink/specs/rt-link.yaml | 40 ++++++++++++------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Documentation/netlink/specs/rt-link.yaml b/Documentation/netlink/specs/rt-link.yaml index ae4db7e032770f..692b3cd47c3108 100644 --- a/Documentation/netlink/specs/rt-link.yaml +++ b/Documentation/netlink/specs/rt-link.yaml @@ -1564,31 +1564,31 @@ attribute-sets: type: u32 - name: mode - type: flag + type: u8 - name: guard - type: flag + type: u8 - name: protect - type: flag + type: u8 - name: fast-leave - type: flag + type: u8 - name: learning - type: flag + type: u8 - name: unicast-flood - type: flag + type: u8 - name: proxyarp - type: flag + type: u8 - name: learning-sync - type: flag + type: u8 - name: proxyarp-wifi - type: flag + type: u8 - name: root-id type: binary @@ -1635,34 +1635,34 @@ attribute-sets: type: pad - name: mcast-flood - type: flag + type: u8 - name: mcast-to-ucast - type: flag + type: u8 - name: vlan-tunnel - type: flag + type: u8 - name: bcast-flood - type: flag + type: u8 - name: group-fwd-mask type: u16 - name: neigh-suppress - type: flag + type: u8 - name: isolated - type: flag + type: u8 - name: backup-port type: u32 - name: mrp-ring-open - type: flag + type: u8 - name: mrp-in-open - type: flag + type: u8 - name: mcast-eht-hosts-limit type: u32 @@ -1671,10 +1671,10 @@ attribute-sets: type: u32 - name: locked - type: flag + type: u8 - name: mab - type: flag + type: u8 - name: mcast-n-groups type: u32 @@ -1683,7 +1683,7 @@ attribute-sets: type: u32 - name: neigh-vlan-suppress - type: flag + type: u8 - name: backup-nhid type: u32 -- 2.53.0