Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp894593rwl; Wed, 29 Mar 2023 09:45:33 -0700 (PDT) X-Google-Smtp-Source: AKy350aztM43SnQSK94HSETpmqE9d1gjNXOxNlaFXVZfA3YxaobE2TXIf22SHQOADv+lazt8CSQI X-Received: by 2002:aa7:9af6:0:b0:623:c117:f20e with SMTP id y22-20020aa79af6000000b00623c117f20emr17846505pfp.19.1680108333175; Wed, 29 Mar 2023 09:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680108333; cv=none; d=google.com; s=arc-20160816; b=N5ExUcgEt7yoJkEESy6BxBWYVRFKz/ZEF89SWYpvKo5RStXDZhavG/Isv3wsNk14/V pNMu5v2ltk/iSPPQ30vIrgx4eQYrtLarjC/SrOtTv0T3F6HkI4+NbQHu6OH8BukQPNls lHcY4D3yBdL/OqVaP5r0rtp+TozegqEa0nbucx38iP/jwxbmPUKcY9+NGqBZzuobm4Nb 4E7PjvoiRUms+WVwld0SFg2Eae9oUJnCZDb/wbAEIi/6Z943MtA7KsZkrRmKwXeCplrN dW2FW4aqHm0c9v4NYVticE9p4JiHdND0Cw3EXo1uXbOgDbiukrAXvqN+kirX9O4AeEPO znGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject:dkim-signature; bh=LRGCUeVsUs6xmha+0hhW8PleaE0DpIvvn/LbxoOLCm4=; b=VZXuPRV9EQk4xVMQFwhaNp3HGYlLDwXr8ZMGwIO/uJPcHrBiXeyJXAxzGQIsIXnLGh ZMzGmUh2CYTKchHk2QwhhK/HtH47pAmdfWWI9h4I1qVmK+j5/ZoPipY7UqtlhIHvQihi zKER4pNWetsnuyzjU6X9rHHpk/DmJLoHHqDfONxW0yesC7nC5VIjjD1oavETylHT/x/V Ad0xRsZdI3+3r7nG5LVMWLE+oHjGvXdQDxM1ixkKAdpLHiWO8DoT9DuQDhrHN2peMYVQ y1GnQlAmHPtpQ0Sitjo1VgjtpmUBVFlhcDJZINC97p4elaSjK2oM3X508lvKAm2+rrai ErKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="C/DJfQhP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m24-20020a63ed58000000b004fb850691adsi31483919pgk.718.2023.03.29.09.45.20; Wed, 29 Mar 2023 09:45:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="C/DJfQhP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229960AbjC2Q37 (ORCPT + 99 others); Wed, 29 Mar 2023 12:29:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbjC2Q36 (ORCPT ); Wed, 29 Mar 2023 12:29:58 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C10765BD for ; Wed, 29 Mar 2023 09:29:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680107346; 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=LRGCUeVsUs6xmha+0hhW8PleaE0DpIvvn/LbxoOLCm4=; b=C/DJfQhP2XLiWg8JSd6io6PzWVsXhoUvys2a2vU4l/NEl2NUOwLql52/P0SoGn3ojLX2dL B060HS3kErfb9zGgvQ34Am123FW6gY7l909MCHVTPC6e6ljurK3trinpYJ1JD6E5epgfpl GnPIeXxD62QvI+e3qLwSzWztlr1vkDg= 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-142-SNscpT1SPMeRb3UWBuCMQw-1; Wed, 29 Mar 2023 12:29:01 -0400 X-MC-Unique: SNscpT1SPMeRb3UWBuCMQw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B9C3F2806046; Wed, 29 Mar 2023 16:28:59 +0000 (UTC) Received: from firesoul.localdomain (unknown [10.45.242.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5FD59492B00; Wed, 29 Mar 2023 16:28:59 +0000 (UTC) Received: from [10.1.1.1] (localhost [IPv6:::1]) by firesoul.localdomain (Postfix) with ESMTP id 368D430736C72; Wed, 29 Mar 2023 18:28:58 +0200 (CEST) Subject: [PATCH bpf RFC-V2 0/5] XDP-hints: API change for RX-hash kfunc bpf_xdp_metadata_rx_hash From: Jesper Dangaard Brouer To: bpf@vger.kernel.org, Stanislav Fomichev Cc: Jesper Dangaard Brouer , netdev@vger.kernel.org, linux-kernel@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, 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 Date: Wed, 29 Mar 2023 18:28:58 +0200 Message-ID: <168010726310.3039990.2753040700813178259.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.9 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Alternatively we disable bpf_xdp_metadata_rx_hash() in 6.3-rc, and have more time to nitpick the RSS hash-type bits. --- Jesper Dangaard Brouer (5): 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 mlx4: bpf_xdp_metadata_rx_hash return xdp rss hash type drivers/net/ethernet/intel/igc/igc_main.c | 22 +++++- drivers/net/ethernet/mellanox/mlx4/en_rx.c | 20 ++++- .../net/ethernet/mellanox/mlx5/core/en/xdp.c | 61 +++++++++++++- drivers/net/veth.c | 7 +- include/linux/mlx5/device.h | 14 +++- include/net/xdp.h | 79 +++++++++++++++++++ net/core/xdp.c | 4 +- 7 files changed, 196 insertions(+), 11 deletions(-) -- Best regards, Jesper Dangaard Brouer MSc.CS, Sr. Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer