Received: by 2002:ac8:156:0:b0:3e0:cd10:60c8 with SMTP id f22csp1267133qtg; Thu, 30 Mar 2023 11:40:30 -0700 (PDT) X-Google-Smtp-Source: AKy350akKPDUaacdfZyWKBWVFqXUPxYa4adnVpQ/nEwr+/it01tc+43h5UIHBQyQv/d5fxRMHq8v X-Received: by 2002:a17:906:dd:b0:8b1:2614:dea6 with SMTP id 29-20020a17090600dd00b008b12614dea6mr3129127eji.1.1680201630263; Thu, 30 Mar 2023 11:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680201630; cv=none; d=google.com; s=arc-20160816; b=tWqSh68Lz6P5cdFpInqYTcWfHQuKXPYTEeXIKYINrtC63Ij9kJ4z6rdqTNN2aBp22n mcOz8Iw2wMvz+zsNgSSDAh+ui/mSI0jB9yVWpT+H+YYYk3FBV15JdczjVSBWimALry05 JVoeEKgxFyJxEI2CyuoA8BIKGgYU6diUscllMbfm7e2c7xTjOvMwxXuSDRn+rXY5PnYA OR59ncTdiFZp9uQJDM+kGCZTR/hlOwvHe6hqF57QoW5XkbauVuw3B4M/AL6PpnNvAMAq bnp4mm8eZSZ369bXv0JBYqXYHgZFCcJj1RXwntF0Rl+g19hFFYXwdrmaeNq99Wn7xGIz vmLg== 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=5GkwAWkFeGOoqs9hRwF96vtUzcfuETanmtHhAqfhjYY=; b=00Onp5g8mvUoL4N61YNHMoUkJUBsgoMHx+7Rz8m1C4loBU8rqzuWaI6RPu69SKBDcM DP8FOPDelykZmuGX98L33vTLvdvjVFiKGht6v/6hG2kyg5FzaecmJ1VSOHG5qErS3BJ1 QQnQ82JYUMjBZl5mk8/V9N1oKE6maCc3U2nx2++K9mNmfb9VINtzSoizd66XpMkjvALc 3vLvnefdxLVUc0HYJSM/WarIFgZ4clQHzJxnWBtkx4TIbzIcYC7vlT5OCgC7Z2OGOsws 8iX7+GqCRvoRBqGoMcLXJbPgzE/a1rKTQW5aqx0kprrLjufPhTgygl5+DYZuZXupP/Qr It7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=tFwe1yaH; 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 lc18-20020a170906f91200b009328d67f308si240909ejb.503.2023.03.30.11.40.01; Thu, 30 Mar 2023 11:40:30 -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=tFwe1yaH; 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 S231376AbjC3Sib (ORCPT + 99 others); Thu, 30 Mar 2023 14:38:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbjC3Si3 (ORCPT ); Thu, 30 Mar 2023 14:38:29 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98267BDF1 for ; Thu, 30 Mar 2023 11:38:28 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-54196bfcd5fso193558517b3.4 for ; Thu, 30 Mar 2023 11:38:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680201508; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=5GkwAWkFeGOoqs9hRwF96vtUzcfuETanmtHhAqfhjYY=; b=tFwe1yaHBDRUAQZeC2CyOVnO1GFnmf/+FwndqdvRzobvAL2/m1XwhS37YkNmRK/CiF XEk2LQpML633tC9qr9hkLZBnDe4W6Az0r772FRUXkiH+OapgCsWD2snqlNOarsBKRyU3 ffpS0HAH7nEKpXNj1iv4jhCC2LJIioUmj2yna7Ji4tIFmj96gHEvCoOD5ASvdUS8eQ5U KuRCtF1dbEivxLJUOL+oEKkez5lEVQUTe72P5Xx3SBPwYGj21AffgYXkMZQDGtAb7vLF wcM3oUgMiWZhsuLsEVyLEH2QiRLm8cO3RTSfqkcKI9gg9e1+6Q+BN0vAcJTIu1xT7akZ Vn3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680201508; 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=5GkwAWkFeGOoqs9hRwF96vtUzcfuETanmtHhAqfhjYY=; b=sCo08UoyGwm7WT1QhhNovQIpc5fZ7HshIq6bJFnzOwWYpIwNIYE7eG0dKV9iYZDAw0 CkROgG0o8Rp1jntQZfEyODVeS4Pnvwly3LeVqIvJKfPcrYJF52RcXaGG4xdpr1ju+2gZ KPGUM1SK8u7OJ/3FsLl5EO8o9e6sHzDTDz0RMqt6ThbfE6B63iPfkex6LFPUf+4uAy9H vLJR/TZA3pUhaxd7U8eA90p/YuzmB7llf/J9YUUaFCMZZewRSr1+/Ox1E0n/OhhsEBaL GO2MAnpIHd7KRAyRDnnJ7nIHaHQOQIvM0MCIF6rIKJKIkeMV3ZnCvpSoiKc0l/0sG6zd 0GJw== X-Gm-Message-State: AAQBX9c5aGMNeTfvXfveahdTjfWdvo/YH08w6L7pKKUUFAUCXYRk2Dfe +W6u2juSmGKY9LD9Pix5mpzAyBk= X-Received: from sdf.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5935]) (user=sdf job=sendgmr) by 2002:a05:6902:1586:b0:b76:ae61:b68c with SMTP id k6-20020a056902158600b00b76ae61b68cmr12753744ybu.10.1680201507899; Thu, 30 Mar 2023 11:38:27 -0700 (PDT) Date: Thu, 30 Mar 2023 11:38:26 -0700 In-Reply-To: <168019602958.3557870.9960387532660882277.stgit@firesoul> Mime-Version: 1.0 References: <168019602958.3557870.9960387532660882277.stgit@firesoul> Message-ID: Subject: Re: [PATCH bpf RFC-V3 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, 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 Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes 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/30, Jesper Dangaard Brouer wrote: > 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 change the function call signature via adding > a pointer value argument for 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. LGTM with one nit about EMIT_BTF. > --- > 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 | 49 +++++++++++++++ > 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, 183 insertions(+), 24 deletions(-) > --