From patchwork Tue Jul 25 23:35:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Fomichev X-Patchwork-Id: 13327322 X-Patchwork-Delegate: kuba@kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 B47328462 for ; Tue, 25 Jul 2023 23:35:22 +0000 (UTC) Received: from mail-pg1-x549.google.com (mail-pg1-x549.google.com [IPv6:2607:f8b0:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60D3119BA for ; Tue, 25 Jul 2023 16:35:21 -0700 (PDT) Received: by mail-pg1-x549.google.com with SMTP id 41be03b00d2f7-563db371f05so406978a12.3 for ; Tue, 25 Jul 2023 16:35:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690328121; x=1690932921; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=+8C8WN8g4V3DRA6OM+WF8phKoBb7MuO1zg5ar7S8uBQ=; b=IUQhsgm4rInDGHkyVvck0QBNCBc9z3mP4MBkHFFxRdWFV8wyiCDYa/NvrmfscXx9BX HiSIxKrEWLPGyRzuTY/1aQt9oSyNYVcoVApSGoffXVWNEKya2qyldNGIPoefLrsX1LoS riffsxM4UE7whDxIWjlDfwPWyGjoQkM7ptrsQWqq4EaPtZ0MFRvntYeG6SHvNMNbZfN8 PRzfgW6O56MmbTjjAydVqjpk5+lZsNuI9eCPpT+wes6M+eYsQNxA/p4eyhox7WwtudeP KCTz4ck3pDRJvorEY75WHOGqKHfLIcGsUb1rIz60IwepG90ZmNx1KVuvM9B8aZBR3liX B3LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690328121; x=1690932921; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+8C8WN8g4V3DRA6OM+WF8phKoBb7MuO1zg5ar7S8uBQ=; b=FSnIe8VswnVvKT9L2IjPvL4+yATcwp5zG6WD3FjT3wBDSQj71e/QjdN7rRwQKry4Jj mOj9wtxgmWQ/tRdkCpcHuWrdXzOceGqfG55YD3SNEA9NVthfffCsggroRXeTHm90e66A qdKJIX7f5tMjE3TqnMLCL9fTjvgv/KKrWPU14yEQUH/YkwocNsNgzF7ZUrVHnyxAKiHS c/t+88FL8aD53pTAJ2ZW4ptwfphwhRftYMJ2qEGH68vk5qG74gWvSCldxBUg1u6beWfl s9t8koC3Ssluvy6+s9tX5RxbGhX8ol9Y+1EVcW1t+DZX9apL7DIgWhevvA+mmlzCOuU4 VHoQ== X-Gm-Message-State: ABy/qLZFDGyCBtLD26uMKy9NYOFD/p7vxZJROFerzTiilfNMaWRp1ufd CxxAYZ3hxg2rcAXGp17+Zw9JSgpZnSWvUTfXUBnDB5MHyJRQY3waXPFWwNXU8ii3fVATjn3TNoP mnOkfMXMWIc3SQhD9pztD4hXbDHYyfJ3rP5CgSs4VOLRyiGIe/jvanQ== X-Google-Smtp-Source: APBJJlFM3J9YBZc8dmWZA+ZQ3dv8gl+oE966zbQa1IkwbzASOnjUM+H/dn1QOOd1NHXvOf8ddtgI4wQ= X-Received: from sdf.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5935]) (user=sdf job=sendgmr) by 2002:a63:7f1c:0:b0:553:3ba2:f36 with SMTP id a28-20020a637f1c000000b005533ba20f36mr2622pgd.9.1690328120362; Tue, 25 Jul 2023 16:35:20 -0700 (PDT) Date: Tue, 25 Jul 2023 16:35:14 -0700 In-Reply-To: <20230725233517.2614868-1-sdf@google.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20230725233517.2614868-1-sdf@google.com> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog Message-ID: <20230725233517.2614868-2-sdf@google.com> Subject: [PATCH net-next 1/4] ynl: expose xdp-zc-max-segs From: Stanislav Fomichev To: netdev@vger.kernel.org Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Stanislav Fomichev X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Patchwork-Delegate: kuba@kernel.org Also rename it to dashes, to match the rest. And fix unrelated spelling error while we're at it. Signed-off-by: Stanislav Fomichev --- Documentation/netlink/specs/netdev.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/netlink/specs/netdev.yaml b/Documentation/netlink/specs/netdev.yaml index e41015310a6e..1c7284fd535b 100644 --- a/Documentation/netlink/specs/netdev.yaml +++ b/Documentation/netlink/specs/netdev.yaml @@ -14,7 +14,7 @@ name: netdev - name: basic doc: - XDP feautues set supported by all drivers + XDP features set supported by all drivers (XDP_ABORTED, XDP_DROP, XDP_PASS, XDP_TX) - name: redirect @@ -63,7 +63,7 @@ name: netdev enum: xdp-act enum-as-flags: true - - name: xdp_zc_max_segs + name: xdp-zc-max-segs doc: max fragment count supported by ZC driver type: u32 checks: @@ -83,6 +83,7 @@ name: netdev attributes: - ifindex - xdp-features + - xdp-zc-max-segs dump: reply: *dev-all - From patchwork Tue Jul 25 23:35:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Fomichev X-Patchwork-Id: 13327323 X-Patchwork-Delegate: kuba@kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 93AA48462 for ; Tue, 25 Jul 2023 23:35:24 +0000 (UTC) Received: from mail-pg1-x549.google.com (mail-pg1-x549.google.com [IPv6:2607:f8b0:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DD2D2125 for ; Tue, 25 Jul 2023 16:35:23 -0700 (PDT) Received: by mail-pg1-x549.google.com with SMTP id 41be03b00d2f7-55c79a5564cso2609247a12.3 for ; Tue, 25 Jul 2023 16:35:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690328122; x=1690932922; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=IGwj85fHRecLytFaGyTYqu/ejgCMxvOPzZqFMwTxEcA=; b=KfB2U5WeI52KBJmmdFsM/Ui/u5bBT+VfG3ilLH8fgt3usGD5fViOzvdL7DEMBzmXoA pcTBlUUsta3Mz3wXukZRvCBqnolUJqLj5CeFz1pmBh4f73T/KoOa8CfqC0JCZEU9ktfq zFagCO7NrMGbqROiJ+ZwUYmG5DccFwkKgf8NFzKvRf7ifw/ifXKg3nDjW9SmHsOd1pgr IZnWKoqc+mXFoYuK8c7pCO/urUtc1kyIM7m2F4ez11u7cTppCaRJT1KhCxHBw2UHMeSB f2X8gJj/m+g/WsfeFGSaPJEdz6nBx6xn0k6iNAghCdOmM57BCUzQyy27eIcyAniEZFuc VNCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690328122; x=1690932922; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IGwj85fHRecLytFaGyTYqu/ejgCMxvOPzZqFMwTxEcA=; b=kBDIH4M6MMYxesASwER3VuFSJ9752Qt1bPHP8CbA/leK+UOV1kOdAyxLOmJTdd0pbm C+x578/DplbCLiTsffSRnnmqMN7WTe+8Go0FJxliytjD0CtWsYLYQK2MzSvxmI30+dZ6 Xbaj7uYM/6LtVD25ewyTtPKcUCIk5HHpXQzOIXlMk2XWnxcEKpE/P1Ns3aivF9fiY4uS 7WosKUVRlLvHavAhRgkGcnktCRWssJJaJ3ZKn3i/IrYXxSUs/pF7/tDlPLtCOONQ9nlF Wu1sI0lPE+YyG5YplIMuZG4qL2ERz1e9D5LXoA0GaNTheclXFgtM8cTPyYo4hTnQu7rO casQ== X-Gm-Message-State: ABy/qLauVfMWBDir/p62ngKyp/5Vyu5kcJerswkRmxkeshiP9xCpRVCP VAyIf6CwN2Rny4d6gZA+N+Wt4WF6NWzI795z4MuYS/Kd8bPFqBg9Wc6j/WhcEbA0zN5MN6WfXxU Y8VsYq45av/whcIdsvxeqKvHIM8VZoWkWeukZSqVSC+6OMJ16wBXhhQ== X-Google-Smtp-Source: APBJJlG54qUnzSb7EGNXlz3j2lXDsmQAuIR0VJK/FthrK9AeONy91XGSInyQsco3Ztgiw//sCy6SJ1M= X-Received: from sdf.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5935]) (user=sdf job=sendgmr) by 2002:a63:7b0f:0:b0:560:63a2:d39e with SMTP id w15-20020a637b0f000000b0056063a2d39emr3285pgc.0.1690328122438; Tue, 25 Jul 2023 16:35:22 -0700 (PDT) Date: Tue, 25 Jul 2023 16:35:15 -0700 In-Reply-To: <20230725233517.2614868-1-sdf@google.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20230725233517.2614868-1-sdf@google.com> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog Message-ID: <20230725233517.2614868-3-sdf@google.com> Subject: [PATCH net-next 2/4] ynl: mark max/mask as private for kdoc From: Stanislav Fomichev To: netdev@vger.kernel.org Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Stanislav Fomichev X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Patchwork-Delegate: kuba@kernel.org Simon mentioned in another thread that it makes kdoc happy and Jakub confirms that commit e27cb89a22ad ("scripts: kernel-doc: support private / public marking for enums") actually added the needed support. Signed-off-by: Stanislav Fomichev --- tools/net/ynl/ynl-gen-c.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/net/ynl/ynl-gen-c.py b/tools/net/ynl/ynl-gen-c.py index 71c5e79e877f..0112722fcc37 100755 --- a/tools/net/ynl/ynl-gen-c.py +++ b/tools/net/ynl/ynl-gen-c.py @@ -2124,6 +2124,8 @@ _C_KW = { cw.p(entry.c_name + suffix) if const.get('render-max', False): + cw.nl() + cw.p('/* private: */') cw.nl() if const['type'] == 'flags': max_name = c_upper(name_pfx + 'mask') From patchwork Tue Jul 25 23:35:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Fomichev X-Patchwork-Id: 13327324 X-Patchwork-Delegate: kuba@kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 62B3C8462 for ; Tue, 25 Jul 2023 23:35:28 +0000 (UTC) Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52240212E for ; Tue, 25 Jul 2023 16:35:25 -0700 (PDT) Received: by mail-pg1-x54a.google.com with SMTP id 41be03b00d2f7-56336f5dc6cso2621650a12.0 for ; Tue, 25 Jul 2023 16:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690328125; x=1690932925; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=fhBwyRn68UiYHrmsi2mNFbknLPd/TH5EZanmHFk4ess=; b=0xNKobqZ/zmVrbfh/k0LcXdm4UPxjlBzHow50E4eiMdHa75rQ5qyMouGMBzj4+yU4q 07W8Ld2ESfWS66EjZlbMe+q8P6zekSMoMAY/tLuck1K7+rJB2sQCl2V6qnto3mGuG9nZ kns6w2Eld2xhWmKUO/UorXfCrT/wQ4Io0BaRUjuNbyin54MqLORms26pUkQcmdnJjTmP LY4OomVf2ZSH6djf9mRJqz1TWGv3lYO3sD1fxyQGb7HGLmgiNIkGfnK+pYTNE2fLwe++ 3aiQycStb4Pio9M0Aee30UD7yeY/4sCyzc34fjyYU2Vg0805mgHGBDijssksDV8lGzIu KMsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690328125; x=1690932925; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fhBwyRn68UiYHrmsi2mNFbknLPd/TH5EZanmHFk4ess=; b=XDSgBn1kzHOAEO+ZigabPtOYTGuMCg580IJM7uI5BU1gIVnPCByhQwuEOUsryIKRxd zqnNGVkC+Ff/ZKOjvJnYX7yCCGqSPtKtAYVabIs3bTxl412V1QBvknm7p7HYceF8TTbD DytrewAbmCdaMTyOf/f3LESGzkQED3Lqea/mRqBKhv5Fc+3rMmJ8Y5P1vn+Tveq7+FJn 1j8cjg2kx3BNx0Nne6+2QqeT6RG9vjw5B4R5HIbkhkczEIB7B0HX+jueIcclm1eECwG8 RKvNn5c0vyVSuAk4S2An7UAhEBfM4n6LdEqumyKT0kOO4Q91yqpt0D2lAXfGlGq5GM5Q NSbA== X-Gm-Message-State: ABy/qLb1YNHIu09NjTJA8fNJHlHYJEBNj2FrC6UlJ16ILwFTvx8CCd3h 0gZXwkS2MpBsAd8/uns5thjzcAC5vFlyY20sbHusvUKC2GvT8w5B7T1/xRJvJtgj1VqqdPJIwKg 0M9w8sJo6vJon/R0uHvkZHFFNincqqkOAFCMbmSO593DkH93hXhxoVA== X-Google-Smtp-Source: APBJJlHeXxtz3BP3wai++0ifRHd3JODi6fE/XVHM6CfcNY98GICNHB7/Fq23fcbP5Vzo8mxIMRDY1/k= X-Received: from sdf.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5935]) (user=sdf job=sendgmr) by 2002:a63:3855:0:b0:543:b015:600b with SMTP id h21-20020a633855000000b00543b015600bmr2817pgn.8.1690328124075; Tue, 25 Jul 2023 16:35:24 -0700 (PDT) Date: Tue, 25 Jul 2023 16:35:16 -0700 In-Reply-To: <20230725233517.2614868-1-sdf@google.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20230725233517.2614868-1-sdf@google.com> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog Message-ID: <20230725233517.2614868-4-sdf@google.com> Subject: [PATCH net-next 3/4] ynl: regenerate all headers From: Stanislav Fomichev To: netdev@vger.kernel.org Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Stanislav Fomichev X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Patchwork-Delegate: kuba@kernel.org Also add small (and simple - no dependencies) makefile rule do update the UAPI ones. Signed-off-by: Stanislav Fomichev --- include/uapi/linux/netdev.h | 4 +++- tools/net/ynl/Makefile | 10 ++++++++++ tools/net/ynl/generated/netdev-user.c | 6 ++++++ tools/net/ynl/generated/netdev-user.h | 2 ++ 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/netdev.h b/include/uapi/linux/netdev.h index bf71698a1e82..1a2f6e320f1c 100644 --- a/include/uapi/linux/netdev.h +++ b/include/uapi/linux/netdev.h @@ -11,7 +11,7 @@ /** * enum netdev_xdp_act - * @NETDEV_XDP_ACT_BASIC: XDP feautues set supported by all drivers + * @NETDEV_XDP_ACT_BASIC: XDP features set supported by all drivers * (XDP_ABORTED, XDP_DROP, XDP_PASS, XDP_TX) * @NETDEV_XDP_ACT_REDIRECT: The netdev supports XDP_REDIRECT * @NETDEV_XDP_ACT_NDO_XMIT: This feature informs if netdev implements @@ -34,6 +34,8 @@ enum netdev_xdp_act { NETDEV_XDP_ACT_RX_SG = 32, NETDEV_XDP_ACT_NDO_XMIT_SG = 64, + /* private: */ + NETDEV_XDP_ACT_MASK = 127, }; diff --git a/tools/net/ynl/Makefile b/tools/net/ynl/Makefile index d664b36deb5b..f4eacafa9665 100644 --- a/tools/net/ynl/Makefile +++ b/tools/net/ynl/Makefile @@ -1,5 +1,10 @@ # SPDX-License-Identifier: GPL-2.0 +DIR_SPEC:=../../../Documentation/netlink/specs +DIR_UAPI:=../../../include/uapi/linux +SPECS:=netdev fou handshake +TOOL:=./ynl-gen-c.py + SUBDIRS = lib generated samples all: $(SUBDIRS) @@ -16,4 +21,9 @@ all: $(SUBDIRS) fi \ done +generate: + for spec in $(SPECS); do \ + $(TOOL) --spec $(DIR_SPEC)/$$spec.yaml --header --mode uapi > $(DIR_UAPI)/$$spec.h; \ + done + .PHONY: clean all $(SUBDIRS) diff --git a/tools/net/ynl/generated/netdev-user.c b/tools/net/ynl/generated/netdev-user.c index 4eb8aefef0cd..68b408ca0f7f 100644 --- a/tools/net/ynl/generated/netdev-user.c +++ b/tools/net/ynl/generated/netdev-user.c @@ -50,6 +50,7 @@ struct ynl_policy_attr netdev_dev_policy[NETDEV_A_DEV_MAX + 1] = { [NETDEV_A_DEV_IFINDEX] = { .name = "ifindex", .type = YNL_PT_U32, }, [NETDEV_A_DEV_PAD] = { .name = "pad", .type = YNL_PT_IGNORE, }, [NETDEV_A_DEV_XDP_FEATURES] = { .name = "xdp-features", .type = YNL_PT_U64, }, + [NETDEV_A_DEV_XDP_ZC_MAX_SEGS] = { .name = "xdp-zc-max-segs", .type = YNL_PT_U32, }, }; struct ynl_policy_nest netdev_dev_nest = { @@ -91,6 +92,11 @@ int netdev_dev_get_rsp_parse(const struct nlmsghdr *nlh, void *data) return MNL_CB_ERROR; dst->_present.xdp_features = 1; dst->xdp_features = mnl_attr_get_u64(attr); + } else if (type == NETDEV_A_DEV_XDP_ZC_MAX_SEGS) { + if (ynl_attr_validate(yarg, attr)) + return MNL_CB_ERROR; + dst->_present.xdp_zc_max_segs = 1; + dst->xdp_zc_max_segs = mnl_attr_get_u32(attr); } } diff --git a/tools/net/ynl/generated/netdev-user.h b/tools/net/ynl/generated/netdev-user.h index 5554dc69bb9c..0952d3261f4d 100644 --- a/tools/net/ynl/generated/netdev-user.h +++ b/tools/net/ynl/generated/netdev-user.h @@ -47,10 +47,12 @@ struct netdev_dev_get_rsp { struct { __u32 ifindex:1; __u32 xdp_features:1; + __u32 xdp_zc_max_segs:1; } _present; __u32 ifindex; __u64 xdp_features; + __u32 xdp_zc_max_segs; }; void netdev_dev_get_rsp_free(struct netdev_dev_get_rsp *rsp); From patchwork Tue Jul 25 23:35:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Fomichev X-Patchwork-Id: 13327325 X-Patchwork-Delegate: kuba@kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 2C9328462 for ; Tue, 25 Jul 2023 23:35:30 +0000 (UTC) Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AB19213C for ; Tue, 25 Jul 2023 16:35:27 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-5840614b107so27366237b3.1 for ; Tue, 25 Jul 2023 16:35:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690328126; x=1690932926; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=7VDndtUhTmjZhFwzFz2FDQYmgm5v0x87/y1zJ2WzSNM=; b=iPm678ls4yjZB+VZaqhzezPsLnVigGxTOJ1cO84MW0QvJFaYUqn8iTSrkOt0IeXiwg BU7wQLMcfWg7vYoGSaN0uPvXhyv985ATbA1zXBYfvBMhy76V1afGJrCmzBbo72Bj+OT4 VHT29N/3MJw043NA25EJSeVk2JA6pj8CTQah/B2gMzMYWRzbLKNkJPA1GaNtfHaxWtvq xPEJmDXyxMcHqLUMKCWB/gJI89N+MUPHbrFLLXcCxHTnNrbEEScbt7ur5EKKhMRQKI7a Aa7VuKu+cgO7/ed67I993Vv/Sy3yxZJ6MK4g7Fo1qonsSFSU+kSsZTo+Y4hok7CGZx5n RU6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690328126; x=1690932926; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7VDndtUhTmjZhFwzFz2FDQYmgm5v0x87/y1zJ2WzSNM=; b=X8zGDzk7oyDhhtACQzaeXBTdwjFzU5Sopw3RrxasefMLBjI0K94k37JF4pvkGTkjZ/ 4oXmZnr4uVuxKYL5QPafDQujFVy6MZ96UqBNbipCfNV3rYcjDwTImd6g09wrsN9W/5q6 E93cCgxJdpjfkZH54MXFFPewiz39e0DRz0C3KDSIeuNSEUy805R9Bf7hfube4L+oKSd7 IbnEXZhjik0HRF4onxbv3Ny+M6OoB0IWwRWNS6tjURItWe8G+0NabBU12EXWwqbbDLa6 4y7aUA0ziBVMy/Q8/kT6yhyRvjT6D8CawXfMTbYWiqAHeQVxNEai1CUERLAcDgdUKbRS x89g== X-Gm-Message-State: ABy/qLb9jiN6f0+MdY/P8yFmX7dic1prjR1UsMxBN7MCYK4dFrIj7nMN o1R4YbF+Ug1r/fnO0RG+UkFcw/DD2SH1DoOlXPAnsoqDQKKdHgxc/BQrvxlR0589B5+ebRrgv/v v0rFPjaI52WsoWzP1A2BagFU/kQzkBwa7FL1XwnFwc/Hpxw5ZoerAWg== X-Google-Smtp-Source: APBJJlEOoqTbeWvN7Fh7sHgKSUiVp2bhzEna/PzsGrrIY3s13rkSLfjnWHzv71Ly8TNokJdpNwFdVO8= X-Received: from sdf.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5935]) (user=sdf job=sendgmr) by 2002:a25:aca4:0:b0:d00:a25a:1a54 with SMTP id x36-20020a25aca4000000b00d00a25a1a54mr2795ybi.11.1690328126144; Tue, 25 Jul 2023 16:35:26 -0700 (PDT) Date: Tue, 25 Jul 2023 16:35:17 -0700 In-Reply-To: <20230725233517.2614868-1-sdf@google.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20230725233517.2614868-1-sdf@google.com> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog Message-ID: <20230725233517.2614868-5-sdf@google.com> Subject: [PATCH net-next 4/4] ynl: print xdp-zc-max-segs in the sample From: Stanislav Fomichev To: netdev@vger.kernel.org Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Stanislav Fomichev X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Patchwork-Delegate: kuba@kernel.org Technically we don't have to keep extending the sample, but it feels useful to run these tools locally to confirm everything is working. Signed-off-by: Stanislav Fomichev --- tools/net/ynl/samples/netdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/net/ynl/samples/netdev.c b/tools/net/ynl/samples/netdev.c index d31268aa47c5..06433400dddd 100644 --- a/tools/net/ynl/samples/netdev.c +++ b/tools/net/ynl/samples/netdev.c @@ -38,6 +38,8 @@ static void netdev_print_device(struct netdev_dev_get_rsp *d, unsigned int op) printf(" %s", netdev_xdp_act_str(1 << i)); } + printf(" xdp-zc-max-segs=%u", d->xdp_zc_max_segs); + name = netdev_op_str(op); if (name) printf(" (ntf: %s)", name);