Article View: linux.kernel.netdev
Article #4109Re: [PATCH net v2 3/3] selftests: net: exercise dev-bound cls_bpf on shared blocks
From: Simon Horman
Date: Fri, 16 Oct 2026 18:23
Date: Fri, 16 Oct 2026 18:23
27 lines
6693 bytes
6693 bytes
On Sat, Oct 10, 2026 at 05:02:50PM -0400, Jamal Hadi Salim wrote: > The issue: > bpf_offload.py only exercises per-device ingress qdiscs today, so neither > the shared-block accept path nor the late-join replay is tested. > > The Fix: > Add a test for a device-bound SCHED_CLS program attached through a shared > block. It loads a dev-bound SCHED_CLS program for a netdevsim device and > checks: > - the program attaches to a shared block owned by its device, and the > filter teardown leaves the device unloaded; > - a block that also holds an independently backed device rejects the > attach, because the offload path broadcasts the program to all > members; > - an independently backed device that joins a populated block is not > loaded by the bind/replay path, and the driver's extack is asserted; > - a second port of the same netdevsim device (same offload device) is > accepted together with the bound port. > > The program is loaded from the existing sample_ret0.bpf.o with an explicit > `type classifier` override, so no new sample object is needed. > > Reviewed-by: Victor Nogueira <victor@mojatatu.com> > Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com> Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID:
<20261016182325.GM363352@horms.kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347491-linux-kernel-netdev=dewy.ruReferences:
<QDISC-PYC7.v2.20261010165947@mojatatu.com> <QDISC-PYC7.v2.20261010165947-4@mojatatu.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347491-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2 3/3] selftests: net: exercise dev-bound cls_bpf on shared blocks Date: Fri, 16 Oct 2026 19:23:25 +0100 Organization: Usenet Network Message-ID: <20261016182325.GM363352@horms.kernel.org> References: <QDISC-PYC7.v2.20261010165947@mojatatu.com> <QDISC-PYC7.v2.20261010165947-4@mojatatu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2845757"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ZQxhi67MYlqo9snPVIJUA1PPKtE= sha256:MQh/oQ+vUQgWJhtF9YdthmqR6DGQVX+ZBce3QkaSdGw= sha1:6nFLYwveH90hjoto03N8ohwLi6c= sha256:3Ii7a1jRIpIAQ12YNfGD0Cr0VenpQoK9hm5Chrp0Po0= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 577A81105C3; Fri, 16 Oct 2026 21:42:57 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.64 X-Spam-Status: No, score=-3.64 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id thVYZg37bK6B; Fri, 16 Oct 2026 21:42:54 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-347491-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 55DD81105C1; Fri, 16 Oct 2026 21:42:45 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 18EC882167; Fri, 16 Oct 2026 18:23:31 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7BAC153A8A5; Fri, 16 Oct 2026 18:23:30 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bM/dxiqB" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74B2B48DB46; Fri, 16 Oct 2026 18:23:29 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792175010; cv=none; b=IaMDbl8ybZHi3Lq6CK5iL1BGSNqSFgwyLqUS46fcqQmeDSiN9PkD67FGw8FZcrIcZ0lmTLC8ckaHEBhAIKHG5uA7thcpy+rNq0N4CvgIyWl5hhB8m3tI92VkiL24H7dOAiiYOKuQ6aLb6pWt4sp3ysPVDBFAlnQPkbUlZai+7wE= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792175010; c=relaxed/simple; bh=cpADTyUxjfLwYZlDGpGUclPXOv2vNyaG5z0/hVoEv7I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=REPSZuLalT9Fxk3D9UIXAeUOgBvjAwmgaNdqejVbtRrp5gHEbebwnV8sh7FggNoHe4k24yBaF1HbGoyZmC5mllwHLP0sBN4Ds1JxEEAaTDxZicnOFa1fX4wn0uyfhU280GRYs0SpHr9eovffcvk6Xwj/L3pRJNaD7tKEQetIQus= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bM/dxiqB; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DDC51F000C4; Fri, 16 Oct 2026 18:23:26 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792175009; bh=Z5Fk0ND+iz/SVsU0Ty+69NRmLr4whiLdG71zFqf42dQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=bM/dxiqBbdNMm1c0E+zRdEk0mgsLF3KUlqziY5MXDNBbfsgAzoXOPFy4Nh20GDnaR FWU8fjoGK33bVP3E+FmPYg+kd/U0d6CRltG/6Rz0UWc7MpfJEb0o1RFqY5ao2CyQr7 GCQ0gIZ9Y+DHbQbTlXZASi+txRcFrJFZRWxcquvAmLnlaPKVbt0VJY3Nzp/htyY4ht Eq/u87ni7/YIIWeda7+pCzsbpJ7yoemWkQZElCqp7aSdfW2KdU6hafR7eiknhMBv/b fMXTBuHUsoJhQDKzsFAWzOK2g13KrpTETQFPJHcSt9Ves9GxTYjvoxAlruP3k5BOtE Shz19RXBSIuXQ== X-Cc: netdev@vger.kernel.org, shuah@kernel.org, linux-kselftest@vger.kernel.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, jiri@resnulli.us, bpf@vger.kernel.org, victor@mojatatu.com X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <QDISC-PYC7.v2.20261010165947-4@mojatatu.com>