From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mail.toke.dk (Postfix) with ESMTPS id DC20C9FEADA for ; Mon, 17 Apr 2023 16:57:11 +0200 (CEST) Authentication-Results: mail.toke.dk; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=KT0m4HzC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681743430; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=h3iGQcB3e7F3+oGwghn9gsZP1jI84iVAMvZuMJ+erzM=; b=KT0m4HzCzWtsrORUTzcSKcNGEq2m7gAFsuMHYCx5t2oXj48uzuQqRJJQO25/lXOkpPpJij 2wHDyfr7439xSwaa4693LHT+1F/EH9WnT6clJda4rFHDWpH2pdo6GKZraqrf96aUQX+QPf LJhS4k1EU+q03RFEkrh4ujPKvNYLfRA= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-532-M2QY-31ONNC_ldxX-K4nqA-1; Mon, 17 Apr 2023 10:57:05 -0400 X-MC-Unique: M2QY-31ONNC_ldxX-K4nqA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 458671C0907B; Mon, 17 Apr 2023 14:57:04 +0000 (UTC) Received: from firesoul.localdomain (unknown [10.45.242.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id C20DB7D283; Mon, 17 Apr 2023 14:57:03 +0000 (UTC) Received: from [10.1.1.1] (localhost [IPv6:::1]) by firesoul.localdomain (Postfix) with ESMTP id CCAAE307372E8; Mon, 17 Apr 2023 16:57:02 +0200 (CEST) From: Jesper Dangaard Brouer To: bpf@vger.kernel.org, Stanislav Fomichev , =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= Date: Mon, 17 Apr 2023 16:57:02 +0200 Message-ID: <168174338054.593471.8312147519616671551.stgit@firesoul> User-Agent: StGit/1.4 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 Message-ID-Hash: CYBT5HAKM2FPQXZLI4EMW5SMEBQT3JZI X-Message-ID-Hash: CYBT5HAKM2FPQXZLI4EMW5SMEBQT3JZI X-MailFrom: brouer@redhat.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: Jesper Dangaard Brouer , netdev@vger.kernel.org, martin.lau@kernel.org, ast@kernel.org, daniel@iogearbox.net, alexandr.lobakin@intel.com, larysa.zaremba@intel.com, xdp-hints@xdp-project.net, yoong.siang.song@intel.com, intel-wired-lan@lists.osuosl.org, pabeni@redhat.com, jesse.brandeburg@intel.com, kuba@kernel.org, edumazet@google.com, john.fastabend@gmail.com, hawk@kernel.org, davem@davemloft.net X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] [PATCH bpf-next V1 0/5] XDP-hints: XDP kfunc metadata for driver igc List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Implement both RX hash and RX timestamp XDP hints kfunc metadata for driver igc. First patch fix RX hashing for igc in general. Last patch change test program xdp_hw_metadata to track more timestamps, which helps us correlate the hardware RX timestamp with something. --- To maintainers: I'm uncertain which git tree this should be sent against. This is primary NIC driver code (net-next), but it's BPF/XDP related (bpf-next) via xdp_metadata_ops. Jesper Dangaard Brouer (5): igc: enable and fix RX hash usage by netstack igc: add igc_xdp_buff wrapper for xdp_buff in driver igc: add XDP hints kfuncs for RX timestamp igc: add XDP hints kfuncs for RX hash selftests/bpf: xdp_hw_metadata track more timestamps drivers/net/ethernet/intel/igc/igc.h | 35 ++++++ drivers/net/ethernet/intel/igc/igc_main.c | 116 ++++++++++++++++-- .../selftests/bpf/progs/xdp_hw_metadata.c | 4 +- tools/testing/selftests/bpf/xdp_hw_metadata.c | 47 ++++++- tools/testing/selftests/bpf/xdp_metadata.h | 1 + 5 files changed, 186 insertions(+), 17 deletions(-) --