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 2F990A2038D for ; Thu, 10 Aug 2023 20:18:02 +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=20221208 header.b=tzKTK8wu Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-583312344e7so15568977b3.1 for ; Thu, 10 Aug 2023 11:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691691481; x=1692296281; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=i5FxDrQGRNHVD4XGJGx3cDrnzdGTl5fZ/cPir9/nLmg=; b=tzKTK8wujY5vlAUhpIKqFluuqQNBtLCObAzmYy7wkvEzDXw57KtchezEgOPKoEV/QR 474nQekQzCeKq3X3foz50mRGW/7K/faaQOdUHHTHPTQuni0otK/L9Za6WB87Xu3qhRBx xRfHyUHDTmPaSBUSjcKKCEtNTvE/eMHHIwzpiGuRFLNWbIkxEDCknoAH4+haRmShe8Rp uUf6tEOppqWC2MKNT53xABNJEder676zseyISTuNR1KAxjQ8t3FPEZHFIRnN1YLlcivs p+e3K1YxuB1JHjiHfns513BNmJyaZt6WRrN6LJ6XnxDJUZh6N6tlIN2YNdu3h2l0P1WA bTAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691691481; x=1692296281; 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=i5FxDrQGRNHVD4XGJGx3cDrnzdGTl5fZ/cPir9/nLmg=; b=NpPYn3q5OsuVaR/rA7UwSJyQVlY9Pm0jl0Lbsww8ImfCiUa9AxRj5MWx9Xn8kkOK7+ 4QZ2XFh1FCyDGigmNAjHsLeJtQfjsIJAvj3iMxZN9RioZdrJPCTcd65b2KOkgWyOr0j9 Aflmh2WPLi1MLHpcJo9KD92+1pmHpOlm+6HES3LjNzC6AXAjMClF9a4ECGIix2IOoTAn hHjwtMdO3gkG2B0pYepW8bHU/zvVaBqsSZbcelZpXH2QQ0eLeiFV4+idOobWjQLeNGJt biEFlO6VdpZQqDs/0Xh4BHVdWJYWH7jtRctpEmCvGZNNk3t1WIu1exVthYC/ai7od+sD Tm5Q== X-Gm-Message-State: AOJu0YyS+isHlEL2mMKx+jwfXqKxDAH2GrUdDLay+SIQuccfTlpLsTTg nPwYHvtSI/bY801uayap0j0+HSA= X-Google-Smtp-Source: AGHT+IEdQ3gmAyi/Pl8ZKEmGkf7fUIz4KEEUpVgm7kYgDYhbgPXA/td2quoofSpHYyQ3IHicqvevuQw= X-Received: from sdf.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5935]) (user=sdf job=sendgmr) by 2002:a81:b609:0:b0:583:591d:3d6c with SMTP id u9-20020a81b609000000b00583591d3d6cmr55830ywh.0.1691691480988; Thu, 10 Aug 2023 11:18:00 -0700 (PDT) Date: Thu, 10 Aug 2023 11:17:59 -0700 In-Reply-To: <54dc8831-a001-c17d-7b7e-ab1337c7f75c@kernel.org> Mime-Version: 1.0 References: <20230809165418.2831456-1-sdf@google.com> <20230809165418.2831456-10-sdf@google.com> <54dc8831-a001-c17d-7b7e-ab1337c7f75c@kernel.org> Message-ID: From: Stanislav Fomichev To: Jesper Dangaard Brouer Content-Type: text/plain; charset="utf-8" Message-ID-Hash: E6BUDVLYLNZBEJOELPCFIANTEX26GYUH X-Message-ID-Hash: E6BUDVLYLNZBEJOELPCFIANTEX26GYUH X-MailFrom: 32CnVZAMKCa0fQSTbbTYR.PbZkQc-UVagfkQc-cebWRPg.aRg@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: bpf@vger.kernel.org, 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, 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, netdev@vger.kernel.org, xdp-hints@xdp-project.net X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] Re: [PATCH bpf-next 9/9] xsk: document XDP_TX_METADATA_LEN layout List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On 08/09, Jesper Dangaard Brouer wrote: > > On 09/08/2023 18.54, Stanislav Fomichev wrote: > > +Example > > +======= > > + > > +See ``tools/testing/selftests/bpf/xdp_hw_metadata.c`` for an example > > +program that handles TX metadata. Also see https://github.com/fomichev/xskgen > > +for a more bare-bones example. > > Will you consider maintaining this AF_XDP example here: > https://github.com/xdp-project/bpf-examples > > E..g. the kernels old samples/bpf/xdpsock program moved here: > https://github.com/xdp-project/bpf-examples/tree/master/AF_XDP-example Sure, I can put it wherever. Didn't want to put into the kernel tree.. > --Jesper > p.s. Compile fail for fomichev/xskgen on my system What is it complaining about? It's very ad-hoc, doesn't user proper libxsk and has super simple hard-coded make rules :-)