Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1433047rwl; Wed, 12 Apr 2023 12:47:21 -0700 (PDT) X-Google-Smtp-Source: AKy350YsFaX8GEg9gkDkzhHO7dgLo3CN9Mp/1kNzwIh4Zyl2uHVEMxnkz0a/K36Ju3oZI9xQAr2G X-Received: by 2002:a05:6a00:2d27:b0:636:e1b4:ca with SMTP id fa39-20020a056a002d2700b00636e1b400camr94013pfb.2.1681328841331; Wed, 12 Apr 2023 12:47:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681328841; cv=none; d=google.com; s=arc-20160816; b=oG0olndqJsZtT9uCkhR05qyxKSJ6Js0Mt4djGFWp0tt038qQuf/mJiEpPbe2wdgSll JGmp8vAC0MobYyp23DlatqgQLdJEEU2wvoUbJPNZOpdDamtkmv8O6f4JspowDoTxdEOm JTDBtAK3uVgNRFcLtjTF0Qyrae8xbaBgb1YNS/Ok93JFCqd3OLkspv71tgrRkqY7rkB9 s8gWmYini2nEpZ7YpZ4h/5ijIYoAqBNVKPgKQQn4lD77Fd2T38yO2idc59WdWj27L73c 5Tf4CKje/A7TZzy74KjimRisrI/otKpb1d5kDqLtak5XX+6/nKC5vUGaPB6/Y7wukypS K6KA== 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=PZyE3by71dhptILzoG2mMeMpC2Di8knMI/CBnTBAzKg=; b=EGEVR94jkKsxY5JKMdahlfDc7NKNIoqPIT17Kk65Q2fs3eZ/eRIZDQlVAoSOh8fPUE DY0XDPz6S2Mu7YjRjVnDGg3i1Fy7wD1DRQ82TqnlYO56NafRN0pfd37DmvzXllUy4aIR dfM53ZrbHH7OwuPt4HXkNhf9riGuIVMz4KuJVkJLGGW5psrfI7aUpRPpohp/sXSRRYH+ Pb1UlDi2x10+QYJkl60dYtRHUgIxnwg/HxJuvDIkGyYRgHmRyLwZhJyQ6FvMj3eAUz6M 6X19ds6gsb09ktQSxnm+EU79d2za1t5QzmYOXcDr++PNmGfg5bfW8MN0B4sBWZ9iUVYc /6mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XqMBELrp; 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 m67-20020a625846000000b0062a4f62c018si2782544pfb.10.2023.04.12.12.47.09; Wed, 12 Apr 2023 12:47:21 -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=XqMBELrp; 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 S229561AbjDLTms (ORCPT + 99 others); Wed, 12 Apr 2023 15:42:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbjDLTmr (ORCPT ); Wed, 12 Apr 2023 15:42:47 -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 02AF41FE9 for ; Wed, 12 Apr 2023 12:41:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681328518; 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=PZyE3by71dhptILzoG2mMeMpC2Di8knMI/CBnTBAzKg=; b=XqMBELrpRO+2tg6VRh3yJlKIOJPP/KVCdkIsXqbbUIzFOx+Qpje9RM0hAqgg/mY+IXtkEA hBoTgOfftSd2rWsftlpwFCeymrVcBnt2XC/ot+hUQKHo9z/b5Mf+xmi15xZLFG7FDe9FTm PRm3E0uIsHKlqXpSwZTIym4mzB3Q6sA= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-93-0ydz-NySP1CUnWG6l0BuyA-1; Wed, 12 Apr 2023 15:41:57 -0400 X-MC-Unique: 0ydz-NySP1CUnWG6l0BuyA-1 Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-50492dcef2eso1883995a12.0 for ; Wed, 12 Apr 2023 12:41:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681328516; x=1683920516; 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=PZyE3by71dhptILzoG2mMeMpC2Di8knMI/CBnTBAzKg=; b=LeTie8NJQ/63vINZMqgUNeJjmOvF0BUwHqVkJL2U93RrL9lRKQG8gXvDf3KfSe1b0r VSnfwk3fqOw4l8jSf7jO2jYzxvcqsWVlC9UdgBb19eEJfGLyuBZfm6wrqR/9W6KNCQiB QF+EzoNu9ZsvTCR8nxDsqVf1kCsyt/eGjZF46HlS0eKzUpzc1fO7h53BrD2UDRb6YPUK XnE0RawTGbwRopWIQE8DCck2/znAP4YkzWv1kVCfAp+aSPHPA8IZ1LtRIMC9v6xj30lh Mk2WhHiBqkPMbU+WnnW68LZRrPiWeA7DhACgQsDHuL0kbtjIJ5w9jeImR+iOWejqOMaJ 6OEg== X-Gm-Message-State: AAQBX9fN3JTASqKop6HEflLxxVNp6tNgJHmvGv2d/hEDB2j/SiY5ZpWy y04KIln3xUKj46yzkLOaTUAjTNv1tquk0u/P1fA8lDNyBn4srmfJ09k2vTfKrkvEcYEe/Tj/3WZ IMcvQ5/piXgd5sHqqfkFbU3ie X-Received: by 2002:a05:6402:88b:b0:504:890a:c974 with SMTP id e11-20020a056402088b00b00504890ac974mr6138370edy.39.1681328515939; Wed, 12 Apr 2023 12:41:55 -0700 (PDT) X-Received: by 2002:a05:6402:88b:b0:504:890a:c974 with SMTP id e11-20020a056402088b00b00504890ac974mr6138342edy.39.1681328515609; Wed, 12 Apr 2023 12:41:55 -0700 (PDT) Received: from [192.168.42.222] (194-45-78-10.static.kviknet.net. [194.45.78.10]) by smtp.gmail.com with ESMTPSA id o2-20020a50c282000000b004fd1ee3f723sm7128382edf.67.2023.04.12.12.41.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Apr 2023 12:41:55 -0700 (PDT) From: Jesper Dangaard Brouer X-Google-Original-From: Jesper Dangaard Brouer Message-ID: <7ab3bb4e-e0f0-c35e-9f39-99cbd5ce1ae6@redhat.com> Date: Wed, 12 Apr 2023 21:41:53 +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, bpf@vger.kernel.org, =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , 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, saeedm@nvidia.com, leon@kernel.org, linux-rdma@vger.kernel.org Subject: Re: [PATCH bpf V9 1/6] selftests/bpf: xdp_hw_metadata remove bpf_printk and add counters Content-Language: en-US To: Stanislav Fomichev References: <168132448251.317773.2526885806604122764.stgit@firesoul> <168132451707.317773.15960209122204110352.stgit@firesoul> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,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 On 12/04/2023 20.56, Stanislav Fomichev wrote: > On Wed, Apr 12, 2023 at 11:35 AM Jesper Dangaard Brouer > wrote: >> The tool xdp_hw_metadata can be used by driver developers >> implementing XDP-hints metadata kfuncs. >> >> Remove all bpf_printk calls, as the tool already transfers all the >> XDP-hints related information via metadata area to AF_XDP >> userspace process. >> >> Add counters for providing remaining information about failure and >> skipped packet events. >> >> Signed-off-by: Jesper Dangaard Brouer > Acked-by: Stanislav Fomichev > > nit: maybe those ++ should be __sync_add_and_fetch instead? Then you > should be able to drop volatile.. That is a good suggestion. I will update the patch and add your ACK. --Jesper