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 4C0BB9F988D for ; Tue, 28 Mar 2023 22:16:01 +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=cpY9K7Go DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680034560; 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=YigewdPBeYqOsJxoAFsWFxZgQfPRMsLTddttN90KAIE=; b=cpY9K7GoL9ctDNa/Q+O1NqSyNNNwq39QA4kDJDo+rtTiaBYkHvZsTk8j9qNuh0FathTJw2 NNNayRNKLsg9GQ5yHBLEIdQhZZXz3ZFScTwBzQB5yDNfFheeZPzsaJHF8x3n+EV3dhn8eO Vc5oNZIsut6irFMbwpE/d0a6ZSz0YdQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-592-OoImuCilPmWJnwZP-4tI8Q-1; Tue, 28 Mar 2023 16:15:55 -0400 X-MC-Unique: OoImuCilPmWJnwZP-4tI8Q-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 858DB101A553; Tue, 28 Mar 2023 20:15:54 +0000 (UTC) Received: from firesoul.localdomain (unknown [10.45.242.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1E8DD440D6; Tue, 28 Mar 2023 20:15:54 +0000 (UTC) Received: from [10.1.1.1] (localhost [IPv6:::1]) by firesoul.localdomain (Postfix) with ESMTP id 21EE330736C72; Tue, 28 Mar 2023 22:15:53 +0200 (CEST) From: Jesper Dangaard Brouer To: bpf@vger.kernel.org Date: Tue, 28 Mar 2023 22:15:53 +0200 Message-ID: <168003451121.3027256.13000250073816770554.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: R4Q7UJ3E24A6RYBVZXM7BR4SXV4DRHBW X-Message-ID-Hash: R4Q7UJ3E24A6RYBVZXM7BR4SXV4DRHBW 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, Stanislav Fomichev , martin.lau@kernel.org, ast@kernel.org, daniel@iogearbox.net, alexandr.lobakin@intel.com, larysa.zaremba@intel.com, xdp-hints@xdp-project.net, anthony.l.nguyen@intel.com, yoong.siang.song@intel.com, boon.leong.ong@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 RFC 0/4] XDP-hints: API change for RX-hash kfunc bpf_xdp_metadata_rx_hash List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Notice targeted 6.3-rc kernel via bpf git tree. Current API for bpf_xdp_metadata_rx_hash() returns the raw RSS hash value, but doesn't provide information on the RSS hash type (part of 6.3-rc). This patchset proposal is to use the return value from bpf_xdp_metadata_rx_hash() to provide the RSS hash type. --- Jesper Dangaard Brouer (4): xdp: rss hash types representation igc: bpf_xdp_metadata_rx_hash return xdp rss hash type veth: bpf_xdp_metadata_rx_hash return xdp rss hash type mlx5: bpf_xdp_metadata_rx_hash return xdp rss hash type drivers/net/ethernet/intel/igc/igc_main.c | 22 ++++++- .../net/ethernet/mellanox/mlx5/core/en/xdp.c | 61 ++++++++++++++++++- drivers/net/veth.c | 2 +- include/linux/mlx5/device.h | 14 ++++- include/net/xdp.h | 54 ++++++++++++++++ net/core/xdp.c | 4 +- 6 files changed, 150 insertions(+), 7 deletions(-) --