Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp13882rdd; Wed, 22 Nov 2023 08:13:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEXCxa5PV7FAG2dh6WcVfwUPIqYxHtrldSUyrH1KrwQU45EGQYtSYylhSQ6U5+3ZyETUjGV X-Received: by 2002:a92:cd47:0:b0:35a:fbe8:ab03 with SMTP id v7-20020a92cd47000000b0035afbe8ab03mr2588852ilq.19.1700669588915; Wed, 22 Nov 2023 08:13:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700669588; cv=none; d=google.com; s=arc-20160816; b=AX1M3wkqsRQA63QjH/VoF3jNWwB8/LEqzigB+qOmfUYbGnBR22YTGCMLUqZNJaU1A4 9dgv/CGwbOLeROpNcsDf/D2Ch2iLD146A6c3USfdxN3wh4EEAsfZU8isqDfRAr3/DqKy 65FSRF5XdkkgtdUbv3LwdkYQNeaPxJDZJM2UpK3HnPDOze0jnNyS47pn/5dFqgtUhNUA Nt52FnhljRevnB8BJny8+04ZMem2zcCtMtlmeTHxWuYrBqPQ+6Q1L0vdNNBDhcmK1ofM 4pzZ6O1qwm89FsXXsFTRX8P3kkg9Qfb7/M33mOEObM2UielcSZDHSASVJyM/sP8QFKzC 62hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HArRuhEJbPWUB0W1o682njJUc9wD7yRdaDevvOmIv4A=; fh=v6ryHXi7Ud42BuU8uY8K8GLJJlx+87/uQB+BN/cYG0A=; b=XaGKRbGbd02lr5/mdPI49kybE4PaT1+3VwWvxMm6k5EJ1KhB6gtYluE4+ADgYc1GfW YK+vuQl7YBmMGR0QMmOkEQpiBZJWyjKKk/VnKsBq2VVOndCIF6a7x0xw2HywtnC1FOPP ciAChKxjUjyZCKN+bkR1FlezYUIVnKDb1Kx6vWEKpMU++WdCmrFf+UQ2xoXpCyaTuUXE JNc2UNNctqzHpIqJ7KN0vbd7pQTfeOLGY7xjIiaubpEQdtXL0dJvyYF7ifIRVZo7FZWa adl/OxTDTiZHFBSO1e7dvlVgOWclCR18tPO1xKTcY0LP0cgB8ejGvH5uGkOvzHP0A+jw GHoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mojatatu-com.20230601.gappssmtp.com header.s=20230601 header.b=iQd77CTu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id e20-20020a63f554000000b005c1cd1e03d9si12656655pgk.112.2023.11.22.08.13.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 08:13:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@mojatatu-com.20230601.gappssmtp.com header.s=20230601 header.b=iQd77CTu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 209B38116E76; Wed, 22 Nov 2023 08:13:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231354AbjKVQMm (ORCPT + 99 others); Wed, 22 Nov 2023 11:12:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232653AbjKVPzp (ORCPT ); Wed, 22 Nov 2023 10:55:45 -0500 Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E9E318E for ; Wed, 22 Nov 2023 07:55:41 -0800 (PST) Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-5caf387f2aaso31154747b3.3 for ; Wed, 22 Nov 2023 07:55:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20230601.gappssmtp.com; s=20230601; t=1700668541; x=1701273341; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HArRuhEJbPWUB0W1o682njJUc9wD7yRdaDevvOmIv4A=; b=iQd77CTuYh9bDrTj04rT1kZKWpdPENP2kLzACJ6e9YAvQ5lJxOsIwWebscrCkoEVJm QQbfSDZdCQ3UDxhVzPT15ULy552ms8Ert26n76q06rtTi10yyrq4gTSaOtNpS/H8i5pA cvH8Q3oQGW+E2CtaBJtmXmlx/y5n1kSR+RJTLKU7zsRwULjVhk1c05xDbNnREAGlv2gt CZeS0EcG9muwjUTE4Ty+mNKib8GFpbO1+lM3+0y4QJCkDZj2QMvkJwzw585gIWtag1A0 7vmKE1jQMbwlodIp7iqL5J8lFz73r8q/Jskq9Pyuh7zoeGHpOVPhU4LX6xjpokAiPFF3 RFgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700668541; x=1701273341; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HArRuhEJbPWUB0W1o682njJUc9wD7yRdaDevvOmIv4A=; b=jfj5voT/PscaLr4YhuZ/q6q2ZaLSXN/jcIOeQUfxcTd/1tjLRnkgvWZWuh0NctVz+G Bzb7bfLYZVDBxIc6TSq23BPuoB2zfpfGPut3CeShlYcJ+ndkQSQlSfByjCGx6HrnT+EM BhdLo/ll3D/qxonQN+ayq1df9ug36IbiEMIU2PzKJ3j2K7mQXnJo9c0gmwWwvnDcv1QY M/ZydXVWeUK8hNAmBIV7Ey+d9/76/MhA/68FwfxlzSRNz8HKk1g6A4eiwWg5OX8gdgyD TuipYJIOebmx5pZFHxHug4reLKS6TpWoLY4jl7sTIk3nUcmGRGAVg6UtlSkxCvkMAhEi NjGA== X-Gm-Message-State: AOJu0YwpXgsf/fuJB/MdyBOukW093tLLCmPMAadbEdewN0tBA+W2wfho 1dNvt173hzrURZsxOlzeoHegl+O6otGHPhkShPEB+KJ5OxEu9oeG X-Received: by 2002:a81:658a:0:b0:5a7:aece:7e59 with SMTP id z132-20020a81658a000000b005a7aece7e59mr2546769ywb.50.1700668540835; Wed, 22 Nov 2023 07:55:40 -0800 (PST) MIME-Version: 1.0 References: <20231121175640.9981-1-mkoutny@suse.com> In-Reply-To: From: Jamal Hadi Salim Date: Wed, 22 Nov 2023 10:55:29 -0500 Message-ID: Subject: Re: [PATCH] net/sched: cls: Load net classifier modules via alias To: =?UTF-8?Q?Michal_Koutn=C3=BD?= Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Cong Wang , Jiri Pirko , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Petr Pavlu , Michal Kubecek , Martin Wilck Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 22 Nov 2023 08:13:06 -0800 (PST) On Wed, Nov 22, 2023 at 10:33=E2=80=AFAM Jamal Hadi Salim wrote: > > On Wed, Nov 22, 2023 at 5:41=E2=80=AFAM Michal Koutn=C3=BD wrote: > > > > On Tue, Nov 21, 2023 at 05:37:37PM -0500, Jamal Hadi Salim wrote: > > > What's speacial about the "tcf- '' that makes it work > > > better for filtering than existing "cls_" prefix? > > > > tcf-foo is an alias. > > cls_foo is the canonical name of the kernel module. > > > > request_module() + blacklist (as described in modprobe.d(5)) works only > > when calling with the alias. The actual string is not important, being > > an alias is the crux. > > > > Thanks for the explanation. > Out of curiosity - how did you end up looking at this? Was there someone who complained or is it just standard procedure to add aliases to all modules and it was on a todo list somewhere? cheers, jamal > > > What about actions (prefix "act_") etc? > > > > I focused only on "cls_" for the first iteration. Do you want me to loo= k > > at other analogous loads? > > Yes, look at act_ and sch_ > > cheers, > jamal > > Thanks, > > Michal