Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp703336rdg; Wed, 11 Oct 2023 03:14:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFSCfkHP2vkRAT98HPtY+weixVy5ildvymgPrvYjFP3IJvpdm/4NPuclwuBYvzh6iM5NmNJ X-Received: by 2002:a17:903:188:b0:1c9:b5a6:44a0 with SMTP id z8-20020a170903018800b001c9b5a644a0mr5134275plg.23.1697019279008; Wed, 11 Oct 2023 03:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697019278; cv=none; d=google.com; s=arc-20160816; b=m6uyN7Z/+5Zo1pC5KFgATXvLNXlasiGMRbIDCo/P+nOItWXToSdH5Iu/T0pIgwdDqc IWirEU5+uiBBaMD8my1DCwKOZwN0icDckgT/GJYBnybotJon4F4wAmTRCi0eiDTWtDKb PphVCoT51Mz2UEm5zI/WODqa8ARW7TEIyi1EyYfmadi/pycaLWo8LZ3GfwyAeQM9ccGh tgn7hnGxQvZcdnABGuLw7/6jH4dba05TCltDC3JH3jlAK2+QXbeW352+FAx4l3pl7xU8 hh+M91ZovwJrsy0Zy5uMcUel1dzLWUxwv8Pa8+c7sYjjgQrSj/t40ORGEkZigUjl44d3 kICw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=RLI+gNG/Ik5TmE6Ss6b86D5IYiR1FClxUP9y17ZJqCA=; fh=70b8fIol8GyJW7WCoZRold4MgPWxX2p4N0fEqdYyAQE=; b=fUw4Ks8e88J6A2YPmDATICTNdZf6PQMyyWhRiEitCgRfQW01WILpuXDDT3vosiw5GO KiNgI9jTU0gGKFD/O6s3C4Fl2zbv6x/Qm0S2iHhPteTJjiYA3m3AVcrDTHgJlxb0KUZQ iVCNwiCXam5/q8VRd2XI0KFZYCWd2jmSFffWSIwcDfEFvmTM3d3jgMQHZrw6DJWxY/vn JyddK3uNmaDoODiWC/LqBt3aD267TXPV/Qyc97wM+4iS0d8wu+nvVfupwvQ+CCpfpTuq 2Sg1cYYR2qKpSe+hHxz1ARP4G83CXu4v7MhgQtvAE7Zz23qBDAw1OmRBGE6r3ZK02oKt 2Ulw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=V1F8h9+9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id z1-20020a170903018100b001c5f80bf574si13149780plg.487.2023.10.11.03.14.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 03:14:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=V1F8h9+9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 91CDD801B6D0; Wed, 11 Oct 2023 03:14:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231948AbjJKKOS (ORCPT + 99 others); Wed, 11 Oct 2023 06:14:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230238AbjJKKOR (ORCPT ); Wed, 11 Oct 2023 06:14:17 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B67A9D for ; Wed, 11 Oct 2023 03:13:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697019210; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RLI+gNG/Ik5TmE6Ss6b86D5IYiR1FClxUP9y17ZJqCA=; b=V1F8h9+9Q6CPPxjyE7J+5ve2zno6g8TNyl8YleUxGNcSh8TKxrKWuAT+UViBYBPjEzGPy4 Gd1xjnQqUWXY5EnzKp9j8qHHEN/Y8vwFl0la4juFrwgKkdkxMmEKsSPbcIf5ClCk64DeWQ x9N2pV2WaHrXQncyVnCk5DnezvOT5/I= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-120-9MxLMbTXNsCjfrvh1CugUw-1; Wed, 11 Oct 2023 06:13:19 -0400 X-MC-Unique: 9MxLMbTXNsCjfrvh1CugUw-1 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2b6ff15946fso58391651fa.2 for ; Wed, 11 Oct 2023 03:13:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697019197; x=1697623997; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RLI+gNG/Ik5TmE6Ss6b86D5IYiR1FClxUP9y17ZJqCA=; b=rJawSERIUDCbw/rObcCFyBCbWdRjbSE3Ktw2zUufn8vXGUot7qjK1rA0I/pDbFOJxj OnXhTpX5tm3MXW+Fh+BBocbhP8bV/VIG4EClH1dvx94hpG2H7wR9FoujWTWbh+dujtDq JpRowC2JnIiVrdCyIvnouhhaMgKlJENAvHURnSMaEk+BOSrGi+rZiI4ZZj4Mz6EV8VBC bm0uHqG5aCuM/cYKpYB0i9oGMAiOwc4+Z27P2QzKLcxsnJ3rEF7RCwE+Ifchn1BRqlSC 38C2aJp+Ux67SuVJxi/akGz7WQhSmj/umff58gP62SKv0zjF7udDDaBqACjWQSiK5REm snzA== X-Gm-Message-State: AOJu0YyK6RCT4b8ENud69oSQywGe+UvQElr+ptwMmBV1QCZGn4GANxPl aNzVix+IofFDKqbYJHS0Es1F2YL5r3nQQiSHmxL/3geiA/3OjgY0/hXM9HAmempcfN1rAPv21b/ eG4t+f4dG492WoVp9GJUgjPnRNMDDNtNsGLduQ2cTAeybQovx X-Received: by 2002:a2e:9001:0:b0:2c1:7df1:14a6 with SMTP id h1-20020a2e9001000000b002c17df114a6mr18885594ljg.9.1697019197157; Wed, 11 Oct 2023 03:13:17 -0700 (PDT) X-Received: by 2002:a2e:9001:0:b0:2c1:7df1:14a6 with SMTP id h1-20020a2e9001000000b002c17df114a6mr18885577ljg.9.1697019196839; Wed, 11 Oct 2023 03:13:16 -0700 (PDT) MIME-Version: 1.0 References: <20231010-upstream-net-next-20231006-mptcp-ynl-v1-0-18dd117e8f50@kernel.org> <20231010-upstream-net-next-20231006-mptcp-ynl-v1-3-18dd117e8f50@kernel.org> <20231010180839.0617d61d@kernel.org> In-Reply-To: <20231010180839.0617d61d@kernel.org> From: Davide Caratti Date: Wed, 11 Oct 2023 12:13:04 +0200 Message-ID: Subject: Re: [PATCH net-next 3/6] Documentation: netlink: add a YAML spec for mptcp To: Jakub Kicinski Cc: Matthieu Baerts , mptcp@lists.linux.dev, "David S. Miller" , Eric Dumazet , Paolo Abeni , Mat Martineau , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 11 Oct 2023 03:14:36 -0700 (PDT) X-Spam-Level: ** hello, Jakub, thanks for looking at this! On Wed, Oct 11, 2023 at 3:08=E2=80=AFAM Jakub Kicinski wr= ote: > > On Tue, 10 Oct 2023 21:21:44 +0200 Matthieu Baerts wrote: > > +definitions: > > + - > > + type: enum > > + name: event-type > > + enum-name: mptcp_event_type > > + name-prefix: mptcp_event_ > > I think you can use - instead of _ here. > For consistency with other families? right, I will convert the whole spec. > > > + entries: > > + - > > + name: unspec > > + value: 0 > > 90% sure enums still start at 0, only attrs and msgs now default to 1. Just checked, value:0 is not needed for enums: I will remove it > > + - > > + name: announced > > + value: 6 > > + doc: > > + token, rem_id, family, daddr4 | daddr6 [, dport] > > + A new address has been announced by the peer. > > + - > > + name: removed > > + value: 7 > > Follows 6 so no need for value? correct, will fix this too > > + - > > + name: addr6 > > + type: binary > > + checks: > > + min-len: 16 > > Do you not want the exact length for this? > If YNL doesn't support something just LMK, we add stuff as needed.. ohh yes, we had NLA_POLICY_EXACT_LEN before but ynl doesn't seem to support it. I can try to add the support and include another patch at the beginning of the series, is that ok? --=20 davide