Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1338746rwl; Fri, 31 Mar 2023 09:42:19 -0700 (PDT) X-Google-Smtp-Source: AKy350bp4IiaipfY6U9InJG7vIG9sQmu0tPXu7txhz86HhfiKKxFT6Pgnd2p/otFSfLy+zQxNjHA X-Received: by 2002:a17:906:297:b0:93e:22e6:e7d3 with SMTP id 23-20020a170906029700b0093e22e6e7d3mr5074574ejf.0.1680280939390; Fri, 31 Mar 2023 09:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680280939; cv=none; d=google.com; s=arc-20160816; b=uGf7FfUIU2jfNddsEkhQYCDQb44z16JGfBXywBmLXtRIdOJuG4Rp0hy6BCnlEThixv HEUwtGLbBeiDo56edeP6kxAKGiSjsp9ghH5nRU61zlMYQ4NsXRR5JzoYWMQHOnklrhhM I73Uv6Q+CpRJeoc8CoVk7bSdUSztbdU7ksuQZ2uU7eTnZplorr7NY8KDbzGkW8/v0Tyq MNF/ZlKPBjt+q94wXmBZMvCL4hHT5/QtCVXRqcfdd378LKVYAmuRpHd5d0X8XQu5OwHv G/i5A26csklhsr6YJ6FqeI4x8BjuU5qN9DQzmWTVJvZ4e7GDJGoaCpQPfNCFMVniiDS6 0NLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=FuU0X18NA2vfKqA+27nNi+qvFb7A+8NhIy9/ITvEFps=; b=G8xW0IDOrzxjdd9AE/Oh2nD0CFhPgc/H+xT5F+3igGOR55hDvfwB0amUyxA5+MVbOT rQ8wCddE5phoWccBrWwNQxydYBUkfrIOWNfkYR4gl5QjgUBrxIKsoc5uXoIfKTHkTUlt FrMxnc3/Cg1E4IU4q5owzWNFHFis2yR2KeSiNJULchI1g+9TJRxzrE0Yir/OvdC9YOfr ZeiTrTl/A+5yXtV1mzew6x5LHxjHG1LK5PsP1E/2ND/LioyX2G45P20N8QmiGgsE11pU BL9AKxfI2W+Vd7QUAAq5P79w3K/6BPl83X+KLz5KszbZjgkiHvKE3eiKgKbRCeOFyKbY 286w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=eikErdC7; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rs23-20020a170907037700b009473bbe627esi2138573ejb.414.2023.03.31.09.41.54; Fri, 31 Mar 2023 09:42:19 -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=@google.com header.s=20210112 header.b=eikErdC7; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232733AbjCaQeb (ORCPT + 99 others); Fri, 31 Mar 2023 12:34:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230495AbjCaQdt (ORCPT ); Fri, 31 Mar 2023 12:33:49 -0400 Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB02D23B6C for ; Fri, 31 Mar 2023 09:30:41 -0700 (PDT) Received: by mail-pg1-x54a.google.com with SMTP id h8-20020a654688000000b0050fa9ced8e3so6900735pgr.18 for ; Fri, 31 Mar 2023 09:30:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680280241; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=FuU0X18NA2vfKqA+27nNi+qvFb7A+8NhIy9/ITvEFps=; b=eikErdC7IICJhhwmuS6mSRXF9PSaDCK6Hb502DIcMwEihqM3SSqInbY02vh2KRmxbw L1DPPI2JRFX2033gNwvIYJ6+uFY3/kUAG/pKGK9m4P76ZcYNz+LIbNzzjOi8Pft+M6eR ikfClExVxzr+Za2HW407xqBShUtz/gdVuzG9jQFeQPXIvrWVct4wiqYT8P8aiCMK8QyO v2+f5fwWFSlrbUe6TH2pN/7jDwaJR8vXFTuO/GGq+56r43sdlHzugjX3lXX7nH07I4Hm 1nJq2+JVACzeE4/YfsjdKpyoPGU0YN/jMfdiXAs1vPLTsAWfTLTbZKHoNIbXKI7UuMLB VhHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680280241; 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=FuU0X18NA2vfKqA+27nNi+qvFb7A+8NhIy9/ITvEFps=; b=iZzUYAeP7Ncso3R1TBnSR0vNFnWq8EbuBxn+pUeK8d4JycpHcT3wLo/7rVVW8c/cq+ 6LUPEOyQtA11Jvq72pi/2pfs+iEhpLDcjDcem04fGkUf8xWcuYeWPUKzwC/Pj00/RvnL EnncSG69DDUq3YuIZnu0fEUlv/yYcDXo2D/NvZ/waNWezQoYUDwjJ66YD2rbxEG5balA qaT6QxWhWqDv1dYkXvGOI5oaQwsWEasnO+dT337yfHaM36oXqJ/mOPbSkmrVCHsbCnDW kKkZ72k0HCCWQudsGvL97NlsiLOR0fWqBrc2Kycnn3m/QJiS/NrNOS8lsduRl9Rgddgr yDPQ== X-Gm-Message-State: AAQBX9c1yzOCbzALabj7d7DDkguy2p2CWPuYHL4iQOnAgQzjoG1BUYtv Wc1yJZb0893qQKWHKlWWHUPI3Ww= X-Received: from sdf.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5935]) (user=sdf job=sendgmr) by 2002:a17:90b:d85:b0:240:d8d8:12c4 with SMTP id bg5-20020a17090b0d8500b00240d8d812c4mr1364835pjb.3.1680280241163; Fri, 31 Mar 2023 09:30:41 -0700 (PDT) Date: Fri, 31 Mar 2023 09:30:39 -0700 In-Reply-To: <168027495947.3941176.6690238098903275241.stgit@firesoul> Mime-Version: 1.0 References: <168027495947.3941176.6690238098903275241.stgit@firesoul> Message-ID: Subject: Re: [PATCH bpf V4 0/5] XDP-hints: API change for RX-hash kfunc bpf_xdp_metadata_rx_hash From: Stanislav Fomichev To: Jesper Dangaard Brouer Cc: bpf@vger.kernel.org, "Toke =?iso-8859-1?Q?H=F8iland-J=F8rgensen?=" , 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, tariqt@nvidia.com Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-7.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL 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 On 03/31, Jesper Dangaard Brouer wrote: > 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 change the function call signature via adding > a pointer value argument for providing the RSS hash type. Acked-by: Stanislav Fomichev > --- > > Jesper Dangaard Brouer (5): > xdp: rss hash types representation > mlx5: bpf_xdp_metadata_rx_hash add xdp rss hash type > veth: bpf_xdp_metadata_rx_hash add xdp rss hash type > mlx4: bpf_xdp_metadata_rx_hash add xdp rss hash type > selftests/bpf: Adjust bpf_xdp_metadata_rx_hash for new arg > > > drivers/net/ethernet/mellanox/mlx4/en_rx.c | 22 ++++++- > drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 3 +- > .../net/ethernet/mellanox/mlx5/core/en/xdp.c | 63 ++++++++++++++++++- > drivers/net/veth.c | 11 +++- > include/linux/mlx5/device.h | 14 ++++- > include/linux/netdevice.h | 3 +- > include/net/xdp.h | 48 ++++++++++++++ > net/core/xdp.c | 10 ++- > .../selftests/bpf/prog_tests/xdp_metadata.c | 2 + > .../selftests/bpf/progs/xdp_hw_metadata.c | 14 +++-- > .../selftests/bpf/progs/xdp_metadata.c | 6 +- > .../selftests/bpf/progs/xdp_metadata2.c | 7 ++- > tools/testing/selftests/bpf/xdp_hw_metadata.c | 2 +- > tools/testing/selftests/bpf/xdp_metadata.h | 1 + > 14 files changed, 182 insertions(+), 24 deletions(-) > > -- >