ynl: print xdp-zc-max-segs in the sample
authorStanislav Fomichev <sdf@google.com>
Thu, 27 Jul 2023 16:30:01 +0000 (09:30 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Jul 2023 16:33:12 +0000 (09:33 -0700)
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 <sdf@google.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230727163001.3952878-5-sdf@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/samples/netdev.c

index d31268aa47c5d4d2f9cf37b3c70939cb9bd6678c..06433400ddddb3b9b7a0d61c57702191c0ed9f86 100644 (file)
@@ -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);