From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by mail.toke.dk (Postfix) with ESMTPS id 9890FA331D8 for ; Thu, 19 Oct 2023 19:49:52 +0200 (CEST) Authentication-Results: mail.toke.dk; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20230601 header.b=FpdS2Z2k Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-d99ec34829aso11352867276.1 for ; Thu, 19 Oct 2023 10:49:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697737791; x=1698342591; darn=xdp-project.net; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=O+5AYyR/jNBakDxt1zQNoJ6ixNt0+bT1Lc6TVZJfgZI=; b=FpdS2Z2kuym7S23hvMDPPcoIXEGm8tlxpBTAylOt0euOTB538loiPmPOGMUd4/HpbI Co3K5379hX/uESU4BNSnUUJoibbE2QYZu6XGvstm0vzd+m7otsBaEG297WgSYGMrnWqh DpMQAJPzc93x/raTg8iQgkDmCsfPT3DadqofwI0rW57gKL02LRY5ZdGKVCXddp1/BWVt v4CZrzMzyRxAfVUTu3DB6CkSe1j05/ZIdJfxX/61KAWR4Nvt5UCYew3cHQJHXUFUcPB1 ShW4Z8TwBZP+g4+aob0MI30MTqfH73kTaXR0w45kkgFeVWzjQGfnMdYKO6oqb/CUbU5O 8p0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697737791; x=1698342591; 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=O+5AYyR/jNBakDxt1zQNoJ6ixNt0+bT1Lc6TVZJfgZI=; b=w7kALc2uQtOuP4HS973Binlg3ihdX75VO8Lnzch0mBJL2ZAzwI0ZPibOlX1Stt1vlC quOCTIacjVxkdxrT/3sfMVuWur1jn4G/FTUFzoDV2z2+Ql0ubJp5fH+vzi+6TPL0dxJG U+eOAUBy0Vm0OE72bKU1rxuCpYPEwFby1GaS8g01Z2J2gsf33lMksx9gWivIVATCLY+T ySKvIDYekLTDTVypdXNh4Y3EIdbEDFT/YfpeN+8aS0rtenPtlYg52vG4KtTtAxUU6jb9 d4YGrLAvuORO2oPR8GoU6Wzc/iEVMNQe/6iq6J8cM7KN+hRp4brcc3NetTu089UG7BEY NdwQ== X-Gm-Message-State: AOJu0YzD20qRln5jvNTro1545lST4jMaZt3m8FigoFHzcet2wRhSJ9aT lyEWhzNtM1zvMbUXBAEgJId9OXI= X-Google-Smtp-Source: AGHT+IF+6U1K2o1M3yW8aAnZpqMUW+oqpAG0sSbv/wmlpowAAYZII2r8d15MKzo3vCTr/bt0q2l4tzg= X-Received: from sdf.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5935]) (user=sdf job=sendgmr) by 2002:a25:8490:0:b0:d9a:6b49:433d with SMTP id v16-20020a258490000000b00d9a6b49433dmr66530ybk.6.1697737791334; Thu, 19 Oct 2023 10:49:51 -0700 (PDT) Date: Thu, 19 Oct 2023 10:49:36 -0700 In-Reply-To: <20231019174944.3376335-1-sdf@google.com> Mime-Version: 1.0 References: <20231019174944.3376335-1-sdf@google.com> X-Mailer: git-send-email 2.42.0.655.g421f12c284-goog Message-ID: <20231019174944.3376335-4-sdf@google.com> From: Stanislav Fomichev To: bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Message-ID-Hash: HV4SJOSICXYNGSNKLTYLTOF5RFGJNVTC X-Message-ID-Hash: HV4SJOSICXYNGSNKLTYLTOF5RFGJNVTC X-MailFrom: 3P2wxZQMKCQ46rtu22uzs.q20Br3-vw176Br3-352xsq7.1s7@flex--sdf.bounces.google.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, kuba@kernel.org, toke@kernel.org, willemb@google.com, dsahern@kernel.org, magnus.karlsson@intel.com, bjorn@kernel.org, maciej.fijalkowski@intel.com, hawk@kernel.org, yoong.siang.song@intel.com, netdev@vger.kernel.org, xdp-hints@xdp-project.net X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] [PATCH bpf-next v4 03/11] tools: ynl: Print xsk-features from the sample List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Regenerate the userspace specs and print xsk-features bitmask. Signed-off-by: Stanislav Fomichev --- tools/net/ynl/samples/netdev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/net/ynl/samples/netdev.c b/tools/net/ynl/samples/netdev.c index b828225daad0..da7c2848f773 100644 --- a/tools/net/ynl/samples/netdev.c +++ b/tools/net/ynl/samples/netdev.c @@ -44,6 +44,12 @@ static void netdev_print_device(struct netdev_dev_get_rsp *d, unsigned int op) printf(" %s", netdev_xdp_rx_metadata_str(1 << i)); } + printf(" xsk-features (%llx):", d->xsk_features); + for (int i = 0; d->xsk_features > 1U << i; i++) { + if (d->xsk_features & (1U << i)) + printf(" %s", netdev_xsk_flags_str(1 << i)); + } + printf(" xdp-zc-max-segs=%u", d->xdp_zc_max_segs); name = netdev_op_str(op); -- 2.42.0.655.g421f12c284-goog