From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by mail.toke.dk (Postfix) with ESMTPS id DF8DBA2E226 for ; Tue, 3 Oct 2023 22:05:31 +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=O5/tgRQ5 Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-59f61a639b9so18779567b3.1 for ; Tue, 03 Oct 2023 13:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696363530; x=1696968330; 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=Hh+n8bfd+fHj2PxoCINgvh14gMdSrVtFDRZkzUjMD80=; b=O5/tgRQ5RJXOcRrhZawyVh2u4JI64lXJDVaOirCSo1XsQB0y/TNVWbIlNWkLcmBhYH IPkfQoRt3BhopAUwBh7Uw3fvP6rKOL66Y1fzXjh9v24mzHNRR6Un8QFnkaIGdClPRoOe MV7jpbS4fJUjonaZ3iHlb8PXXcdwPxKdf5yahVbEg1JLiuIXG3uEa5HGrbnXk9ZpWbIw tQ8MyCKzZvOYteizs/lQ2GYnGg3YKaQbX30Cd7Or65jxr92YBiVx5Qy/RVUN8DOa27Cl nAevOe/P8SutnCTJLEcErY1FvmmwRvoBvsRZLF/NOLs6VnpLhjZVEv9jIWX3yzGSto6t 65ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696363530; x=1696968330; 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=Hh+n8bfd+fHj2PxoCINgvh14gMdSrVtFDRZkzUjMD80=; b=UDt1QM0QhIQ4oH95zPzSuHG4vR8DFCIhzHGVCBsK3cUCXR5eW+IA27+gzZOVgV7nBg rM1LQ39jdKWG/WLZOOopnHET23aUD88TsgcnFwMm/rxXuGd6UCFWVWr3ZE9JXYv0k+3w KzSWa7JrihpGMwyEhS+Utuyy1FTuh/Tvd7wtK9STzIRBPZJGaHQnPgp0UfN+TQ6bdzkN mLlf7WBRoUePvQvp2GkBq/8puzSUO1Jg8ABFmHd0hV7MjchkLud1SEdR9EuUOarjDuiB 3BcytCR/n9MkI2BxHozkTPHNOmGgyFhYpnDrRJOubX7V6q5fdqdUtWqPe/oJTf5RqVGo Z9XQ== X-Gm-Message-State: AOJu0YwA/uQkls3RiWkCxH+KgOkJdRYkGgmSxXFxGDbUwMePcQ/qSucJ 7WZK9lQjmcxcv3Wx0fXsNRYc4Cw= X-Google-Smtp-Source: AGHT+IHTQgMe8sMfvHu6NgAk1AoxlPxP/xK+lhLViG2zt8Eyi6GlaOmftpMsUU9ommqz85SWCvaco5k= X-Received: from sdf.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5935]) (user=sdf job=sendgmr) by 2002:a81:ca4d:0:b0:59b:e81f:62ab with SMTP id y13-20020a81ca4d000000b0059be81f62abmr12027ywk.7.1696363530546; Tue, 03 Oct 2023 13:05:30 -0700 (PDT) Date: Tue, 3 Oct 2023 13:05:15 -0700 In-Reply-To: <20231003200522.1914523-1-sdf@google.com> Mime-Version: 1.0 References: <20231003200522.1914523-1-sdf@google.com> X-Mailer: git-send-email 2.42.0.582.g8ccd20d70d-goog Message-ID: <20231003200522.1914523-4-sdf@google.com> From: Stanislav Fomichev To: bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Message-ID-Hash: EGBWNUAIC43QUUW4YRU24MSGFI7AYFJV X-Message-ID-Hash: EGBWNUAIC43QUUW4YRU24MSGFI7AYFJV X-MailFrom: 3CnQcZQMKCZMF023BB381.zB9K0C-45AGFK0C-CEB61zG.A1G@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 v3 03/10] 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.582.g8ccd20d70d-goog