From: Stanislav Fomichev Date: Thu, 27 Jul 2023 16:30:01 +0000 (-0700) Subject: ynl: print xdp-zc-max-segs in the sample X-Git-Tag: block-6.6-2023-09-08~22^2~304^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=26fdb67e8b4ae08eaab40a63c2e3a5e48f9c31f5;p=linux-2.6-block.git ynl: print xdp-zc-max-segs in the sample 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 Reviewed-by: Jakub Kicinski Link: https://lore.kernel.org/r/20230727163001.3952878-5-sdf@google.com Signed-off-by: Jakub Kicinski --- 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);