Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp323114lqc; Thu, 7 Mar 2024 20:35:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX0Ywwhy1jp50iv+EnNE9NMUxTWeRDM2nRSD2iHQKh3juBgoyss+WqJYjpp0LOHnk4LTBCcEkd8cpovDhfe7e27IEsP53Mz9uZWnsSP2A== X-Google-Smtp-Source: AGHT+IGJVImkCn9+m/ojavAbPknKIPvJVbfr9XUSmz9nzOEcQKB/Dkmy7Q6qCq6Q23m5te9Rw+oh X-Received: by 2002:a05:620a:372c:b0:787:c4cc:60f4 with SMTP id de44-20020a05620a372c00b00787c4cc60f4mr5411384qkb.33.1709872536757; Thu, 07 Mar 2024 20:35:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709872536; cv=pass; d=google.com; s=arc-20160816; b=FY5j+lMresERy6hIq8cFp4TMZhegojBRZfvGjYSnv2VZRbr6WaRcan3nyWBuug/NqN nv5/iI19uv2a3QS9VL2rL/UpDeX5oYFhKGKd1xW1jNvGn1KvYa/CiDKS3lHB60y+bm9e yTHp8/+w7+32SYc2mr9OAEqcYLVtjwaebcvPgoCS1BjWZv88bv7OpNbvLuhJzUnuZ1YN yDlkRbGaNLDm+pAU7q1JF5MVab3vS6SDj7x5Ox7NHDfZ038RslV55QUdR/FzC5EEsbrf ijB5NdPVUS2aWmtFl6c/FtYrcD2gZTIxbkV69a+P1YJMdg6cmNwTjrlQgfKHY0fliN+t eQ+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=JwQJgBHp4lkGL8l9xHEz7fyusq3sS/AOFreT6vGhpy4=; fh=PIbHQJ/M39nyj7w/ae2nkMPZkJ1VtYZ/6FFrBQNBDTM=; b=TTMxgn5DymFZoJViuhgxnYDU2k/5Trh3RmlT7XibtCpoYXC9kJT2+jrheQVrTqYqBi NjIH7N4vIv6VUeiYiZ3+/Z2hWfvTSVjZ2Mg2A7EBcCelE2gcM49L5aFm/V+imi9QFNyM oXQ4nZyWshGe2b7kukzBIROWXz5CF1h5vM0N1V7wFvhJ49D8vWZzQCpEJqNNkmG5F2Qi 7+i7ZtGA8ytuvwf2kvExBsfKEWyBhUslUSoOeRVj7q3tHz2n6SV5yEU/tIImAKO0oQnT 62gjU0SyBfsPguWyY3OZIJuCDrqHup4DdLXWJmBAssTdxP0fZzh6TVmw/BeD7ZNcbX7t aGIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KG6sTqAV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-96505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k6-20020a05622a03c600b0042f0601156fsi7005434qtx.397.2024.03.07.20.35.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 20:35:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KG6sTqAV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-96505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7ABD21C20D54 for ; Fri, 8 Mar 2024 04:35:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE5BD2E633; Fri, 8 Mar 2024 04:35:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KG6sTqAV" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 221882C857; Fri, 8 Mar 2024 04:35:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709872527; cv=none; b=ZbyFwqzuWwJac3lhyFoMSbETwRgdZzZkT3TeZL9wCLrO5ePmO/sUyvr0oP9iJX39Hwh+SRBC7gzSHPTBCNKsnVVmFmzIJf79BLt31NEeZfmg5sbSyn8/IDdZqTjKD6kNH9oALp/PDs5ZXeNp25jhRYbfyBJDoOhk171i1USsZDI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709872527; c=relaxed/simple; bh=yWj8/hJqPE2pqJgHPZirhlHTQyI5nLVSmlITFRiJKhY=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Kn+4Yo/l4sdyK2JOqJhSmxsBZ4vZSu/NjNfx2pROCc+nwgyZGCWJetPT4e7XTrYzWxg55rz81a1xtH1rN7bPcEg6J98WjcY6D04GCWtIQDLLnjJCF0jXMlABg24CMbxXh8/TzmV2dqdqhB6i/DNbRrOlz2NFtn1VLWyX/B93Yk8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KG6sTqAV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74A2CC433C7; Fri, 8 Mar 2024 04:35:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709872525; bh=yWj8/hJqPE2pqJgHPZirhlHTQyI5nLVSmlITFRiJKhY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KG6sTqAVccTzyQVqJPgFwKf0HZaMVOmfOGKHO+x0y/KO68MOCkch9Wk/trnPYOZZK 5fJl/XO5ILc2Na3wEuDfy2AOO6gA0/DZpS6IUyFX8J7/a4vFsiHm61KnuPyuS7fDiX KilQSjdLr/DI+1KTpCiDcAlU5WnwLRAYo3fJWWhpwhxprAjWsoQptsF6FJ1UUvcT1i sRo9IBoyXEmus+NX9WEEWLtB+Nx/T/0rst7n7qf62GhJ3X09UgrzJ2Nllr7n+YdWYW g1iMgN6hCJQNFnF28ZqL9Y/AmEL8UuCF1JJV18IKJuw9c77JLy+2f1eprEE1VOGXKW TNnS7dQGmsDkA== Date: Thu, 7 Mar 2024 20:35:24 -0800 From: Jakub Kicinski To: Hangbin Liu Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Paolo Abeni , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] Doc: netlink: support unterminated-ok Message-ID: <20240307203524.34895501@kernel.org> In-Reply-To: <20240307070106.1784076-1-liuhangbin@gmail.com> References: <20240307070106.1784076-1-liuhangbin@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 7 Mar 2024 15:01:06 +0800 Hangbin Liu wrote: > Subject: [PATCH net-next] Doc: netlink: support unterminated-ok I'd use this subject: netlink: specs: support unterminated-ok > ynl-gen-c.py supports check unterminated-ok, but the yaml schemas don't > have this key. Add this to the yaml files. > diff --git a/Documentation/netlink/genetlink-c.yaml b/Documentation/netlink/genetlink-c.yaml > index c58f7153fcf8..7094d619cbb6 100644 > --- a/Documentation/netlink/genetlink-c.yaml > +++ b/Documentation/netlink/genetlink-c.yaml > @@ -208,6 +208,9 @@ properties: > exact-len: > description: Exact length for a string or a binary attribute. > $ref: '#/$defs/len-or-define' > + unterminated-ok: > + description: Allow the string to not use terminator. > + type: boolean Can we expand the doc a little? How about: description: | For string attributes, do not check whether attribute contains the terminating null character. Also maybe let's leave this out of the spec for: Documentation/netlink/genetlink.yaml that spec is supposed to be simplified, supporting both string flavors just complicates things.