Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp510094rdg; Tue, 10 Oct 2023 18:08:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGj7i9QX2tRiOGBCsKEPi8kQR6/413Ge+4gXHOIpGvnm7P5r7g5TxEjVmdVuNVFT7yOg2bz X-Received: by 2002:a17:90a:f698:b0:27c:e346:375c with SMTP id cl24-20020a17090af69800b0027ce346375cmr5877762pjb.18.1696986527536; Tue, 10 Oct 2023 18:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696986527; cv=none; d=google.com; s=arc-20160816; b=GZHShhC53GJctMMVpbsmSvdG/bj2WZhPB3kSqDVOvZ8nGl3elXYue1fgnz7BfrjufN O+zRT4zx/PMNn1DSsw7nv4l83MKqC74dR1ioc5wPtdGxAujr2FLVT5X+cW/B30ikYybU V8bHPZDgpO5blbhjbO+gqfhAYkbnOdYfjuqqc18iMvVShyhePwUifaIiy1wv0Y+b2PE+ wXI6VqquA8oKwlM9AE/LeA3ww0QmieDXKbbqD3yNKxtDYe2lZ0rOWd2y2qvvwlzrCnZm Xb7ySphFsaQ8HAzOYwILugUEYOw80ZT4Kvkr2hdzYh0fI3emtJ/M3/XFgOEVIw5arFNz /GiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=S8OfHtXpt+oyrhYuTO4ElHu6kkF7iXFwTth+go8VBN8=; fh=CgsjOnql4Q/b8tie6SNRegh/yvTcrJrN4dbruEvnJM8=; b=ZHsfpksg+K0dflU0qYAXnnI4o+wX0lcr3CnSF9pqLBnDQA9xscRaxD+JCZYr616oT/ ZzH2WVD+xODGz7k0xgHR7RRhH3jFNeaXFSejiQzZftjO6PP5gjasjfTiGU1BhJg2/wjr Z35YoMevA57/Ge0RFq9TkTg8wSs+uZH5+IXpgbLEHAnU7POhKNbJVJRaZ8dqM6O45kBi 3Mamjc/ETeZXrjQWi3uabLuMVVdFVp3QgvH7jyPVDrwJFrm0sCFJrsCYLfJ4yTIM0zdA sTEbwxzeR3Ipgz8EaqgyTiGV0GvUUmRIoDm1U9x4WRzxDDoJaml1w+LEPxeyS77L5wP5 ud+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T1oKeHYL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s140-20020a632c92000000b0056533c00e83si10194563pgs.413.2023.10.10.18.08.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 18:08:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T1oKeHYL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 88CB38129ADE; Tue, 10 Oct 2023 18:08:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344488AbjJKBIo (ORCPT + 99 others); Tue, 10 Oct 2023 21:08:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343612AbjJKBIn (ORCPT ); Tue, 10 Oct 2023 21:08:43 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4098E8F for ; Tue, 10 Oct 2023 18:08:41 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76EA7C433C8; Wed, 11 Oct 2023 01:08:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696986520; bh=q6kCuKw1p9zMOPVBO4PESzKHHtd8rxfLWiEaydvuP8U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=T1oKeHYLIwOvj57maEkeiU/sXMyjNjKzGbBivTqn4jMWhhrkRgl1WQseQhT+j7T1J p1bQTwIR7EObse0T5HRmZCu7IRKc/8TRGWMZgFYVeOxyFsfLv0nNpNgl0kjL3h2Q4B CF2/Z8D8SFqAkRWT1dPQ5z3yptR2sjXGrqMLr5XasZQvfgGCKdgKa1/cmXKpvMenO9 y3tqU+lDsjTfxLgmxnplB3hrrNnZ5dkVKrcQTE/95DYEsE5yG4502IMg6gf7s0Z1YA PpX04tiF6vebL7346+zM9Zut/sqGj3Zy0M5kksvXP+WYxtTzmORvMsJ4ElYY/VmbmF UFPC5+0MCdDwg== Date: Tue, 10 Oct 2023 18:08:39 -0700 From: Jakub Kicinski To: Matthieu Baerts Cc: mptcp@lists.linux.dev, "David S. Miller" , Eric Dumazet , Paolo Abeni , Mat Martineau , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Davide Caratti Subject: Re: [PATCH net-next 3/6] Documentation: netlink: add a YAML spec for mptcp Message-ID: <20231010180839.0617d61d@kernel.org> In-Reply-To: <20231010-upstream-net-next-20231006-mptcp-ynl-v1-3-18dd117e8f50@kernel.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 10 Oct 2023 18:08:46 -0700 (PDT) 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? > + entries: > + - > + name: unspec > + value: 0 90% sure enums still start at 0, only attrs and msgs now default to 1. > + - > + 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? > + doc: > + token, rem_id > + An address has been lost by the peer. > + - > + name: sub_established Similarly for names we generally recommend - as a separator. Looks more natural in places where it's used as a string, eg Python. Well, I guess at least to me it does :) > + value: 10 > + doc: > + token, family, loc_id, rem_id, saddr4 | saddr6, daddr4 | daddr6, sport, > + dport, backup, if_idx [, error] > + A new subflow has been established. 'error' should not be set. > + - > + name: sub_closed > + value: 11 and here, /value/d, s/_/-/ > + doc: > + token, family, loc_id, rem_id, saddr4 | saddr6, daddr4 | daddr6, sport, > + dport, backup, if_idx [, error] > + A subflow has been closed. An error (copy of sk_err) could be set if an > + error has been detected for this subflow. > +attribute-sets: > + - > + name: address > + name-prefix: mptcp_pm_addr_attr_ > + attributes: > + - > + name: unspec > + type: unused > + value: 0 > + - > + name: family > + type: u16 > + - > + name: id > + type: u8 > + - > + name: addr4 > + type: u32 > + byte-order: big-endian > + - > + 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..