Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2567973rwl; Sat, 1 Apr 2023 10:00:50 -0700 (PDT) X-Google-Smtp-Source: AKy350bSOpoMxCJe8J8WzOzdljdL4pTIEuaJP6FYbReRy2DUZi6Hu0vaxVWDRasVL2IJXk87bZy7 X-Received: by 2002:a17:903:32cd:b0:1a2:9ce6:648b with SMTP id i13-20020a17090332cd00b001a29ce6648bmr9298833plr.12.1680368450605; Sat, 01 Apr 2023 10:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680368450; cv=none; d=google.com; s=arc-20160816; b=FyucbweI9WUhmWKN73NeqHmswd2vbAoLOFextg9JGymXEvB1f4wUjnnYSi6EurIK8h RUpMIqGPknBeRu+zIRufbnEdBd87zQYpwkufX4LWcfQpigxg1/AO9gPLqFXBlRXoF+js 67b+ToyyoHheb6R5KEJBj53fsB5e4+R10Yd1pwPua/YiJcJTWI9YYn92fSKEYBlBDhNM S/uDwKG64vj9yDuNPruVbn2vclQ4uGka24iUd25ov2scOgmwdmlLxpVHeMgpw6KqPDIs MYLpqwUIlky2ZwtVwduSmWteYYfNLraCT+AiK4F80opkSdgmQFj1jShZP3/k3hH/yhOy J7eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :to:content-language:subject:cc:user-agent:mime-version:date :message-id:from:dkim-signature; bh=LBpaj6qPaiWPsqZ1uUbFmrrkbOrpiff0SRgLWvVlle4=; b=lVC6gMTJAlWQJewKUvMeS7GpxihgPIrPVxX5/Yr9nBZ+Jq+H2XzlbVjkWl4KR2Ir1J M44YwYu8LGEE6OTWyPiZQVFvy0iCrPWLP+YMneiHvA2mZ9bicCxcuALwrseXT1Chbn+7 tNLBu4AI2LYp/yTAqZ6fBykMxWAxvFxmg9OAiL3/6nOSkzyZ8wciPCNqvEya8czbr/IA XGPfg4UJSu0Hr2yamAnpKpt7bb5iiaPZZDbEmKTx9FO0kk6BTpweDYG6UhRmFOgwPYDa cpQnxFnBVeOetA67GQW9z0q7p2OYsgfhwhLnbuaO4QQ7TTTkX1Lk/Nhi22M7no3XQyCY RzIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cjVNKent; 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 w22-20020a17090a8a1600b002199a16366csi4579623pjn.173.2023.04.01.10.00.34; Sat, 01 Apr 2023 10:00:50 -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=cjVNKent; 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 S229915AbjDAQsB (ORCPT + 99 others); Sat, 1 Apr 2023 12:48:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229867AbjDAQr7 (ORCPT ); Sat, 1 Apr 2023 12:47:59 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70ACCB769 for ; Sat, 1 Apr 2023 09:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680367632; 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: in-reply-to:in-reply-to:references:references; bh=LBpaj6qPaiWPsqZ1uUbFmrrkbOrpiff0SRgLWvVlle4=; b=cjVNKentMqpysrTQKPjt/qNX2JtF2w9kMPAdhc4tlXnx+jDcBlxAzevVPulUuz/JMmLMWv WeN12HzEMz1PzTxsWMz3/XNGaY8L3Xy6YX/9T6f27rTD+RdC3XPWxN2Gtqfq4ZaX60pCGw eyc8NH/jmlrWYY0DQd68NfSKlp4lkIM= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-567-pf_z_LIuPuOVvOZmNhcYKQ-1; Sat, 01 Apr 2023 12:47:10 -0400 X-MC-Unique: pf_z_LIuPuOVvOZmNhcYKQ-1 Received: by mail-lf1-f69.google.com with SMTP id d23-20020a193857000000b004e9d2af9e57so9978171lfj.23 for ; Sat, 01 Apr 2023 09:47:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680367629; h=content-transfer-encoding:in-reply-to:references:to :content-language:subject:cc:user-agent:mime-version:date:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LBpaj6qPaiWPsqZ1uUbFmrrkbOrpiff0SRgLWvVlle4=; b=bxYLG3gvv6fRPHx43DBfWW62HedzkYCIPvl7H2mNPTeHzxsltG6vo6vyLCZy4tQyGe UiVJ6LaEo+G1AnvMpKy++gp8EG1C57RnWveax0gNx34ZPdU6uAn+CcmJGBW5xp6uJoJv N94Nalnc4PDdqPLmy5Mgs749j0gD8mBFg2pu2HzI3n0/ebUczjx5hXU53VpPUM3lZUFH rBW+FWpc5IVyZfLomDQ9QpQZItO5sSEPNTX3aFMhIyrrBWUX9ghswUzlwUV+cJ/y8EKc ib1Ty3+UOpfdAlgxffGl8FmTHLDQmWR1BE7F8IL+EDC4rTmPbFI1fiWIHQm4yYbKzqJv pdFQ== X-Gm-Message-State: AAQBX9fD1Tb4B74/1O0ugETllYGp+JFnvtpRhD07PGIADKllHfObGryB NyI6WoZcVQnWOz5bl2BzQ+Fu+8lcYdSbHaix0jVnRhV5QHyY4Bo+lTuZUaRgsxegDk6bhK+e1o1 fD6Z/33zU64HNLvZzpAszNlCZ X-Received: by 2002:a2e:6e03:0:b0:299:aa20:22a0 with SMTP id j3-20020a2e6e03000000b00299aa2022a0mr9388777ljc.53.1680367629398; Sat, 01 Apr 2023 09:47:09 -0700 (PDT) X-Received: by 2002:a2e:6e03:0:b0:299:aa20:22a0 with SMTP id j3-20020a2e6e03000000b00299aa2022a0mr9388764ljc.53.1680367629089; Sat, 01 Apr 2023 09:47:09 -0700 (PDT) Received: from [192.168.42.100] (83-90-141-187-cable.dk.customer.tdc.net. [83.90.141.187]) by smtp.gmail.com with ESMTPSA id y17-20020a2eb011000000b002a5f554d263sm887063ljk.46.2023.04.01.09.47.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 01 Apr 2023 09:47:08 -0700 (PDT) From: Jesper Dangaard Brouer X-Google-Original-From: Jesper Dangaard Brouer Message-ID: Date: Sat, 1 Apr 2023 18:47:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Cc: brouer@redhat.com, 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 Subject: Re: [PATCH bpf V5 0/5] XDP-hints: API change for RX-hash kfunc bpf_xdp_metadata_rx_hash Content-Language: en-US To: bpf@vger.kernel.org, Stanislav Fomichev , =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= References: <168028882260.4030852.1100965689789226162.stgit@firesoul> In-Reply-To: <168028882260.4030852.1100965689789226162.stgit@firesoul> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 Why have this patchset[1] been marked "Changes Requested" ? Notice: The BPF test_progs are failing on "xdp_do_redirect", but that is not related to this patchset as it already happens on a clean bpf-tree. [1] https://patchwork.kernel.org/project/netdevbpf/list/?series=735957&state=%2A On 31/03/2023 20.54, 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. > > --- > V5: > - Fixes for checkpatch.pl > - Change function signature for all xmo_rx_hash calls in patch1 > > 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 | 10 ++- > include/linux/mlx5/device.h | 14 ++++- > include/linux/netdevice.h | 3 +- > include/net/xdp.h | 47 ++++++++++++++ > 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, 180 insertions(+), 24 deletions(-) > > -- >