Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp380554lqi; Wed, 6 Mar 2024 23:01:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXtN31MxzRYdFW55U/s9WbvhdRTXQm4D26tEYsdOd3gekF4RyfZojbH83ZHmQRId1H3FfqVUXTAJCPQ5UMvaaUyonMiHopodhxcu7lf9A== X-Google-Smtp-Source: AGHT+IEQ/1tznIt8dIE050U8eEKPIBuuN4OYJiIcCbCxF+XyzitTOo9TyzFwyZ47cBt+0SN54uWg X-Received: by 2002:a05:6358:7416:b0:17b:b52c:c121 with SMTP id s22-20020a056358741600b0017bb52cc121mr8700642rwg.13.1709794908701; Wed, 06 Mar 2024 23:01:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709794908; cv=pass; d=google.com; s=arc-20160816; b=tafEbBtkEyttjGzUHqx6UKZ8BF0PVwyG+X5NFkpq9wsA270k3OlIu3wYegtVoALnau YjG/RcnuoJ5nOOXrsVY6A+/+4On6Vf+PpUvjN2QEJBMfUQlW0zdgyT6aqsjunuaXKzrZ p/NntlrGEW2ckGV+Z63buPWRfP2iVVr2cpMJVgRKvI8cgsu9AkLvjYfWhYHCmMo3nb1u eoh56uRe3ET/Mjs5pCP4eq2VDgicv9N2diUbDoXrkAo2kEakvET/K60jEUH/2wuvjsa7 NOnVnQU9XnEPrvQsbOy+b1ET6Xz6/yOyExLPie/gyQkdPuJK/QqQyflappt2V+pk+CES HTgw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=aeJ+JntwKW4wdQtAHs36UWp64DtpgAOAPqSLV/Dt1Q0=; fh=P+36C/M8c0xPHzVW/A9iRZYiNGbAASJWK9a11ju/34I=; b=LPBP2Yl8VGJkw9RMVdJUoH2aWfeM6OjI/b8eMZ5NiX5R9xsW3T7C5VKCbqnfYtpDML JRRTApdmSs/mQPZcqsVD0LGydO3ikaEmjomIx1B4gCi4zzwjcPLJZmNvqWtT0cFAz2uL lQFlpXaZGvjV3X6H+7d/eX1qdPwtWOImt/JQ9NTzVPoX5vafQVFWce+n0D1RmkAam+26 X75w47ONjl/DxL/l0ZG6MJ5cQ5h6fRF4o6CVU8OKw2UZ56Xw5uowIc0misTSIAWIEbWC nNDyXmNJ8vcXHfz+Jl3+M/0h41sWPbfgYqBsOA97CiRAajkAlmEwxNlNm8XwKPt5srkd Y6IA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X7lsQXAl; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-95032-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95032-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g15-20020ae9e10f000000b0078847658dcdsi594207qkm.230.2024.03.06.23.01.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 23:01:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95032-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=@gmail.com header.s=20230601 header.b=X7lsQXAl; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-95032-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95032-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 9C9141C21554 for ; Thu, 7 Mar 2024 07:01:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5F8B1F95B; Thu, 7 Mar 2024 07:01:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="X7lsQXAl" Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 9F11C1D529; Thu, 7 Mar 2024 07:01:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709794882; cv=none; b=i70S09rL9BoqnPyxKCnDP2/nwTyUYOryZxedWpwzm7AMrfDOBdxCPH4t4CT0twI/yJyNdeIjUAgytXrhBt106VHzk5zUWZzcqaqoUgtx4gPLqrdKCwpKwMSNig/LFLoBUSm/A3oU2F/xFh7L/S0lbdDSO9KLt4lX1ncJQT3gozs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709794882; c=relaxed/simple; bh=43aEq9C39A8hDzjssPpDD+NB6N195l1L/QFKz3eMy3M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PARDgnTSbiryT/Ihety3KoJarEx9g/ETqIdWXBe09ZycB/etPBc8Crs95t7vFC8joVvWOiclV4eL+3b0x5NB94CL5XENhttV/EdZKHvIGIIgv1mt4kPSdkRqoLkQJ38BYfQbar9tIBjH5Tu2Lej2+2hVrGCZNP5V3bBgZjbkIGU= 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=X7lsQXAl; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6e64a9df6c3so388419b3a.3; Wed, 06 Mar 2024 23:01:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709794879; x=1710399679; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aeJ+JntwKW4wdQtAHs36UWp64DtpgAOAPqSLV/Dt1Q0=; b=X7lsQXAlfi7dOtHpxJ81nlpz7UG77bYVcrR9x4Wd2MIGuYdmQf0D93ACe1jmNu6q5E ARKgrbUd6UI/gzQQz5ge+6OeH5Vg+M5ETi5QzCIlmC/jVwSVDTV7bDpXdHZ/Kst5ILaL /16Fi7IQOwEX+a+5ryKxtgQu9h2mmc5TNHd24lzA6OG/PLCbFH3+sK/pYLufLkL7HNRU JAKuNN1rD/PbtxfFoBi/iLqvv/v0wIFcxCRzPiDmz3WdcKpTZZEUVmLAucVCoSPR9Vwh lxLn6cW/viYQgfqjSUwPWBbQXKXKPjvea7Y8yChKL9V+AMx0dDunFKKuurzb7IqvW8Dk uYpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709794879; x=1710399679; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aeJ+JntwKW4wdQtAHs36UWp64DtpgAOAPqSLV/Dt1Q0=; b=CBCAG84X63lZ3/t9wdzokA9NPambieXMpGkFLsnd/LDWYJoBida3k83J9Tj7uA9CxH rHsPUgN2b70ufNJ8IC9Ci1XxQoCG6Kis54VbyoYImt9RqmHpxnQt5B5Q2x1LtjWW7JKs zSQcelJHkOZfyM5I+UndNuK/tSnNWN+ddz1Ryan5rw6UcUaTvESZi0BX+RsmAkiV6lPt kV2vztJSimNlRhWTd41+9V4Slkwly7ZUaFibnLoneQxTSHOFTF6GWdMkZQajJ8xGffE1 RFtpxNasfnddgisci41l/PA1pQuDeauJJfThi/zBkwUpneH9UbFOns7enZ6hYXn+GkJg yNhQ== X-Forwarded-Encrypted: i=1; AJvYcCWN1Vn3LEE6eITtQnx1H+LkothMH+BuNAI0xSQPNH0nKnq9zM+/KMuB5CT3ow9Vh5IBzxhNeyc2Jzo3SzvgiuifXUtjh3PCD8auEhjB X-Gm-Message-State: AOJu0Yy59DR+iMhVMhWfMWBNGkqdVy+iZBnWUj53igMNk9imFZCapRRN 5OmmxMRNH2Y4afE7wEpHIWgSbnkR+IGtmp4Dp7kO9UrWbyQXkQNMOkAU+Sm8SWo= X-Received: by 2002:a05:6a21:999d:b0:1a1:5144:79ab with SMTP id ve29-20020a056a21999d00b001a1514479abmr7352893pzb.10.1709794879369; Wed, 06 Mar 2024 23:01:19 -0800 (PST) Received: from Laptop-X1.redhat.com ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id y23-20020a17090264d700b001dcdfcbf245sm13246885pli.119.2024.03.06.23.01.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 23:01:18 -0800 (PST) From: Hangbin Liu To: netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, Hangbin Liu Subject: [PATCH net-next] Doc: netlink: support unterminated-ok Date: Thu, 7 Mar 2024 15:01:06 +0800 Message-ID: <20240307070106.1784076-1-liuhangbin@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ynl-gen-c.py supports check unterminated-ok, but the yaml schemas don't have this key. Add this to the yaml files. Signed-off-by: Hangbin Liu --- Documentation/netlink/genetlink-c.yaml | 3 +++ Documentation/netlink/genetlink-legacy.yaml | 3 +++ Documentation/netlink/genetlink.yaml | 3 +++ Documentation/netlink/netlink-raw.yaml | 3 +++ 4 files changed, 12 insertions(+) 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 sub-type: *attr-type display-hint: &display-hint description: | diff --git a/Documentation/netlink/genetlink-legacy.yaml b/Documentation/netlink/genetlink-legacy.yaml index 938703088306..aceb72175365 100644 --- a/Documentation/netlink/genetlink-legacy.yaml +++ b/Documentation/netlink/genetlink-legacy.yaml @@ -251,6 +251,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 sub-type: *attr-type display-hint: *display-hint # Start genetlink-c diff --git a/Documentation/netlink/genetlink.yaml b/Documentation/netlink/genetlink.yaml index 3283bf458ff1..f6d5ea44bf86 100644 --- a/Documentation/netlink/genetlink.yaml +++ b/Documentation/netlink/genetlink.yaml @@ -175,6 +175,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 sub-type: *attr-type display-hint: &display-hint description: | diff --git a/Documentation/netlink/netlink-raw.yaml b/Documentation/netlink/netlink-raw.yaml index ac4e05415f2f..0e105f21080b 100644 --- a/Documentation/netlink/netlink-raw.yaml +++ b/Documentation/netlink/netlink-raw.yaml @@ -270,6 +270,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 sub-type: *attr-type display-hint: *display-hint # Start genetlink-c -- 2.43.0