Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 067CA7E for ; Mon, 4 Sep 2023 09:17:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693819041; 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=pXXI8xeMrKWpOffPYbXsy8x85asDW/63do3bz1fFGQo=; b=Qcwwf54Pf6wdbqlDs+KRFIfSv48/phZgoXdz/JttkbsBMwFm1ThbFiCiVexi0EfJPl9Zbi Ex0h8mYo9Ml4o97Qahw/Z5uodblBEoQCPio/yWIfQ1u3MOaYEvgwCWlEI1gykjdjfdaKkC 6xzGYjA1Tkz96en03wj19RG+tMemyqc= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-43-SZ0vcGjEMCS82pRswfQkeQ-1; Mon, 04 Sep 2023 05:17:20 -0400 X-MC-Unique: SZ0vcGjEMCS82pRswfQkeQ-1 Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2b04d5ed394so1908751fa.1 for ; Mon, 04 Sep 2023 02:17:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693819039; x=1694423839; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=pXXI8xeMrKWpOffPYbXsy8x85asDW/63do3bz1fFGQo=; b=DmnNfK0xA+8MklN/PrbYMupb1Kt7QxqlluBO7lXCJkijRkuTuKcBCoSF0VMEsv1mGY 7zk/LHcv+HPSxAwp8fPsm4oecxG/N/vOiP6rxzvl9+CyCF0W/xYsF/9tELC+cwmBdWgU J6wUS+Ku1BlcD5FB770dxorci3o2+Xv7kHnuMd9q2lAbxQTOTCjPpQLqX0HpxAatqZTT /lQJhPhZMYzR8QMMHVAnQCUR8GLomDcOZxRksXLhheBbuOI32J/1tAeodXz6BgnkYsTA gutfv8VtZOF4pbAlmDn53EnnrxuxJ/PDeuvOPSJjxkkTQlt9utJ59ffGCZjSGc1kSPO+ rjUA== X-Gm-Message-State: AOJu0Yxcs5w/o2Z+6vfbAPSLgWti2ZvnPhwJ3szKrM5eP0269ai/sc6X KwdRzQBEfCVQNciuObdC8eVwZR+2okl6imb66jiv7yDNy0tslh+ju1I5BN5UpPaFvzDRkjsPAbJ LVUFYWHA0P1CJvaI= X-Received: by 2002:a2e:84c6:0:b0:2b9:a156:6239 with SMTP id q6-20020a2e84c6000000b002b9a1566239mr4421406ljh.1.1693819039055; Mon, 04 Sep 2023 02:17:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG3S6OuiWZOo5TWO5X+IvrCX1mhwvg5naxxZCOKYquwkAH4XV5p0kro24WNgC8C9R/n+nwp9Q== X-Received: by 2002:a2e:84c6:0:b0:2b9:a156:6239 with SMTP id q6-20020a2e84c6000000b002b9a1566239mr4421396ljh.1.1693819038722; Mon, 04 Sep 2023 02:17:18 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-254-194.dyn.eolo.it. [146.241.254.194]) by smtp.gmail.com with ESMTPSA id hb26-20020a170906b89a00b0098cf565d98asm5818108ejb.22.2023.09.04.02.17.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Sep 2023 02:17:18 -0700 (PDT) Message-ID: <311e7a91b85b8e27f36b304162ebdfd28de18e20.camel@redhat.com> Subject: Re: [PATCH mptcp-next v2 0/6] convert MPTCP to use YAML spec From: Paolo Abeni To: Davide Caratti , mptcp@lists.linux.dev Cc: Matthieu Baerts Date: Mon, 04 Sep 2023 11:17:17 +0200 In-Reply-To: References: User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2023-09-01 at 20:10 +0200, Davide Caratti wrote: > this series converts most of the MPTCP netlink interface (plus uAPI bits) > to use sources generated by a YAML spec file. Patch 2/6 and 6/6 have been > individually verified with kselftests. >=20 > POC: >=20 > $ sudo ./tools/net/ynl/cli.py --spec \ > > Documentation/netlink/specs/mptcp.yaml --do add_addr \ > > --json '{"addr": {"addr4": 16909061, "family": 2, "flags": 4, "id": 10= , "port": 0}}' >=20 > $ ip -j mptcp endpoint show id 10 > [{"address":"1.2.3.5","id":10,"backup":true}] >=20 > v2: > - mptcp.yaml: only put values around enum "holes" (Paolo Abeni) > - _doit and _dumpit renames are done in a dedicate patch (Paolo Abeni) > - removed useless nla_policy passed through parse_entry() (Paolo Abeni) > - renamed mptcp_pm_address_nl_policy in patch 2 (Paolo Abeni) > - (hopefully) more comprehensible commit messages (Paolo Abeni) >=20 > Davide Caratti (6): > tools: ynl: add uns-admin-perm to genetlink legacy > mptcp: convert netlink from small_ops to ops > Documentation: netlink: add a YAML spec for mptcp > mptcp: uapi: use header file generated from YAML spec > net: mptcp: rename netlink handlers to > mptcp_pm_nl__{doit,dumpit} > net: mptcp: use policy generated by YAML spec >=20 > Documentation/netlink/genetlink-legacy.yaml | 2 +- > Documentation/netlink/specs/mptcp.yaml | 394 ++++++++++++++++++++ > include/uapi/linux/mptcp.h | 174 +-------- > include/uapi/linux/mptcp_pm.h | 149 ++++++++ > net/mptcp/Makefile | 3 +- > net/mptcp/mptcp_pm_gen.c | 179 +++++++++ > net/mptcp/mptcp_pm_gen.h | 58 +++ > net/mptcp/pm_netlink.c | 114 +----- > net/mptcp/pm_userspace.c | 8 +- > net/mptcp/protocol.h | 6 +- > 10 files changed, 814 insertions(+), 273 deletions(-) > create mode 100644 Documentation/netlink/specs/mptcp.yaml > create mode 100644 include/uapi/linux/mptcp_pm.h > create mode 100644 net/mptcp/mptcp_pm_gen.c > create mode 100644 net/mptcp/mptcp_pm_gen.h Other then comments in patch 2/6 and the (IMHO quite confusing?!?) warning reported by the CI, LGTM! /P