Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp207981rwn; Wed, 7 Sep 2022 23:37:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR7FaLiF8PE7F22Ypl6FGGCA7ZEbXUMuUaMoVl4xpVLzm2nCf4a3nezh/ph5dZ/x/fSOZ6IN X-Received: by 2002:a17:902:a384:b0:173:4085:23d8 with SMTP id x4-20020a170902a38400b00173408523d8mr7517706pla.143.1662619054861; Wed, 07 Sep 2022 23:37:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662619054; cv=none; d=google.com; s=arc-20160816; b=aQ+aU5kKGy96WJ2NpSM+m9vRFz5oJLsxMtAE7q8/yh2huOPvLMRZQOxHp0rbEEVmry +LSgnM8ERYYfPcXgiEnX/89IZj/kCq8IxIgMvN9UyOA/y1XfiIUhZ0SqKyMDw0E1bR0J j1DPw4GSQH/BnkNPA+Ij9sdYdQ+SsGp9TEodadJpbLaEVpAnU+0gMP8AL5Bc4EIykJbG KTAO//4sXodRdKCZAwqKxk1Y+vz3ZSc4e/YeHugISSrlC0DF99+rJ9+1zOWZwziFFCUc TGxZQ0AbSk6+2rV57WMfbziKf91M6yK72O4si3XRPpIa2VWJMJgYPDFBqfcH7dLKgT66 iRYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature; bh=tQVYpCBZL3BsXXUIGuhHhn+GnF9rZgFIWXrgHaQZMbY=; b=PE9LFwjR58YK4mFqZgUNjfK+/9+QX6RG4RAnNblI+4OMhxqxepBhk11osV+82el15v 7hearADw0TXmWV/VOtmrrfbYVX4+nIhGAKn7tXbMk2NICBxubJeNZqegiV4MU7J9xnen 9q4p9PQHXj02TUFLxxhKhvjX36zNNL1MUESaIa5ZXczMmn/uoDWMVVSPF1pwckcUBAzH /pBOxOog7cBqQGZy9VcWCvjdZWWfmFuOGZP/QY10JbARw34cBXLYZH+TJXiKeWhLX1o2 mSTSOr1z+owqljH/Eac2Qg6R+Khev/zSEnJESbsaozno0tSc2ti6EyhkbLxqEzTrK8jR 1dyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ewJMBlVa; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a056a001a0900b0053837d7cf84si19947141pfv.254.2022.09.07.23.37.21; Wed, 07 Sep 2022 23:37:34 -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=@messagingengine.com header.s=fm2 header.b=ewJMBlVa; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230288AbiIHGYA (ORCPT + 99 others); Thu, 8 Sep 2022 02:24:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiIHGX6 (ORCPT ); Thu, 8 Sep 2022 02:23:58 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F965CCD56; Wed, 7 Sep 2022 23:23:58 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 7FCE83200708; Thu, 8 Sep 2022 02:23:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 08 Sep 2022 02:23:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1662618234; x=1662704634; bh=tQVYpCBZL3BsXXUIGuhHhn+GnF9r ZgFIWXrgHaQZMbY=; b=ewJMBlVaLQYFSExMsQK75AOZdcexluLL5bNUc2vWoTxh rgWjfNa5+R7tbzYKG2oUFXPDQVYLSkPhcgmtbm9bZ0LlzCnxI6fs/XXPGcUtNWl/ 4KTIMXd8rTSeGY1vCbJVWoANYNeO0mzG8NaHJEwfxwjwrOf9byNE+FKcOwqe4zWE +R7HRlcGpkofHCXUiaS2tQHxkOskppkTx9PZ/72AtOafBo9uIIK2OCrSsROttQZw 1oswHQSwrvz4FtXJe9S639YmGu326indkySDFvPtm+voHxpGoIOAaZ9wvPKJkAyH v/Q5OJ/5Drtxe1cBd8U6s9CU/i3iD1HD6f+n0/q5fw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedtuddgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefkugho ucfutghhihhmmhgvlhcuoehiughoshgthhesihguohhstghhrdhorhhgqeenucggtffrrg htthgvrhhnpedvudefveekheeugeeftddvveefgfduieefudeifefgleekheegleegjeej geeghfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hiughoshgthhesihguohhstghhrdhorhhg X-ME-Proxy: Feedback-ID: i494840e7:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 8 Sep 2022 02:23:53 -0400 (EDT) Date: Thu, 8 Sep 2022 09:23:48 +0300 From: Ido Schimmel To: "Zhou, Jie2X" Cc: "kuba@kernel.org" , "andrii@kernel.org" , "mykolal@fb.com" , "ast@kernel.org" , "daniel@iogearbox.net" , "martin.lau@linux.dev" , "davem@davemloft.net" , "hawk@kernel.org" , "netdev@vger.kernel.org" , "bpf@vger.kernel.org" , "linux-kselftest@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Li, Philip" , "petrm@nvidia.com" Subject: Re: test ./tools/testing/selftests/bpf/test_offload.py failed Message-ID: References: <20220907051657.55597-1-jie2x.zhou@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, Sep 08, 2022 at 03:10:51AM +0000, Zhou, Jie2X wrote: > My error is "Exception: Command failed: cat /sys/kernel/debug/netdevsim/netdevsim0//ports/0/dev/hwstats/l3/disable_ifindex" This one is solved by the netdevsim patch ([2]). > Do you get [1]error, after patch [2]? Yes. Maybe you do not see it because you have an older bpftool without "libbpf_strict" feature: $ bpftool --version bpftool v6.8.0 using libbpf v0.8 features: libbfd, libbpf_strict, skeletons > [1] > # bpftool prog load /home/idosch/code/linux/tools/testing/selftests/bpf/sample_ret0.o /sys/fs/bpf/nooffload type xdp > Error: object file doesn't contain any bpf program > Warning: bpftool is now running in libbpf strict mode and has more stringent requirements about BPF programs. > If it used to work for this object file but now doesn't, see --legacy option for more details. > > [2] > diff --git a/drivers/net/netdevsim/hwstats.c b/drivers/net/netdevsim/hwstats.c > index 605a38e16db0..0e58aa7f0374 100644 > --- a/drivers/net/netdevsim/hwstats.c > +++ b/drivers/net/netdevsim/hwstats.c > @@ -433,11 +433,11 @@ int nsim_dev_hwstats_init(struct nsim_dev *nsim_dev) > goto err_remove_hwstats_recursive; > } > > - debugfs_create_file("enable_ifindex", 0600, hwstats->l3_ddir, hwstats, > + debugfs_create_file("enable_ifindex", 0200, hwstats->l3_ddir, hwstats, > &nsim_dev_hwstats_l3_enable_fops.fops); > - debugfs_create_file("disable_ifindex", 0600, hwstats->l3_ddir, hwstats, > + debugfs_create_file("disable_ifindex", 0200, hwstats->l3_ddir, hwstats, > &nsim_dev_hwstats_l3_disable_fops.fops); > - debugfs_create_file("fail_next_enable", 0600, hwstats->l3_ddir, hwstats, > + debugfs_create_file("fail_next_enable", 0200, hwstats->l3_ddir, hwstats, > &nsim_dev_hwstats_l3_fail_fops.fops); > > INIT_DELAYED_WORK(&hwstats->traffic_dw,