Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp796325rwl; Wed, 29 Mar 2023 08:34:31 -0700 (PDT) X-Google-Smtp-Source: AKy350Ywa4YV7hZqo/X6t4Ck8oTYFYSBwxsohHOitnaVWWw2YNTX5Qe06nju7qepIhSfKTtLrhHr X-Received: by 2002:a17:906:3485:b0:922:c4f8:806c with SMTP id g5-20020a170906348500b00922c4f8806cmr19262500ejb.60.1680104070796; Wed, 29 Mar 2023 08:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680104070; cv=none; d=google.com; s=arc-20160816; b=gsYz3LgY5snJUjUNeeVTQbXZFBSsMhu3dRle5UMVruKoA9ueWn5TS6VDk5ks2moWlO XPu+I8PobIM5S3ovl6zKYtxD1nyLDUgh2Csi4jyXq5Yd0Ytp6UbSa19jiJqoXdoW7UXj KT36wBW0nKBOpmW4BDa8/XfYoagbVG0tQBf9Hd6jCSGPi2+H5WGk6ZCkqfg+xAQt0Bsn OVBXbBmZZOwjcbZK9JLPxS77YN9EcQ7fc/4xVAM8UlBZFG4Rdbm1TuN8QkCutUx7Yxbi gCcBjC4fxxYfokJ84LzMnXSB0VpuO4v7iGQN2FeBlwnp+XEpEemqqMQ+aqDmegl8JR9N tthA== 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:dkim-signature; bh=SAnxWyj0HF9TEubrZktRdlGHxAtmrUsyKhC4L4EWNXM=; b=WQpyeGMyliRkZNTSwcBZwmys15hWJtgRrlj/FHNUiqklijLpW/IbPMeS7V/deww6PA wc6LS+gw0SCMS05X47nQZkWstBbzp0uk+MxrO2sDjuT4NFBIbjDAhZpJVNOB83NXbiQB 9TmlhF782YsYCpazr5Mgke9zL1Oh1oi37sdrxKCQBfo3NV1HfoNJikLZRFojq4gLv827 nqTR6MwbeNavMo1bPWV2EY58QjE5ZaR3jd94z70+Q6McDeaHGc2czIsPDyJ+eEfAnaYN x88yLP/a146CYyglMSGtXaqwISguKtLv7FTv2adaDOowSttQgEJKngwuWb5Z/WyAng7j GKJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=J99tV4Kx; 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 tj9-20020a170907c24900b00939ede2362fsi22777863ejc.113.2023.03.29.08.34.04; Wed, 29 Mar 2023 08:34:30 -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=J99tV4Kx; 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 S230382AbjC2P1Z (ORCPT + 99 others); Wed, 29 Mar 2023 11:27:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbjC2P1W (ORCPT ); Wed, 29 Mar 2023 11:27:22 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 153C8423C for ; Wed, 29 Mar 2023 08:26:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680103594; 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: in-reply-to:in-reply-to:references:references; bh=SAnxWyj0HF9TEubrZktRdlGHxAtmrUsyKhC4L4EWNXM=; b=J99tV4Kxsp5kFgfpSaz5U6W2K7BJNsnhbpL2dj3j6I0clQUHKPHhS7sX4F1GkxLb+tdohm sol4cXg/ZL+RWNMnsxBCembRne+aSUMwjisQnLsCl+2z6X7w0SzQDcvtjs21UcBXKF8eH9 66tovxXbs4phfdxENtLZms9z/yWLyBI= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-290-ZlJhrfG1NBG_MTe3VBK1hA-1; Wed, 29 Mar 2023 11:26:32 -0400 X-MC-Unique: ZlJhrfG1NBG_MTe3VBK1hA-1 Received: by mail-qv1-f70.google.com with SMTP id pe26-20020a056214495a00b005df3eac4c0bso3663561qvb.1 for ; Wed, 29 Mar 2023 08:26:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680103592; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SAnxWyj0HF9TEubrZktRdlGHxAtmrUsyKhC4L4EWNXM=; b=ND6nJtHUffOCQ+Wq2ClljmtF5ZQZ06BhXEerjDrXJH71WjqKrbDYQGkJkGaXOIFs5m 5KBzipnBGr16bNez9iWS9W14iynZDvSaInhaSDhvMNSoCf5RRrjcZDcoxQ+/bjEqcVlp 0NIMQVoodTdfhxty+dvfvPxHKW69gFmvDcSWB3vuhijr2TODqIXg5KllneLrnkO8rVJc RhJTvFfBM+ns3kwYzAshWHDddtVNbkwmpiZdoDe5nJT8EvuhQDKoIu0vz/YyoNS3XZPa E0VuGatj+BoZgbSrCGwmNI+CaPcBsgtJIVrK8Iwe17Bli4RI6wLoRpwaI01fc3hV4fie wOvw== X-Gm-Message-State: AAQBX9e+Ony28WrSfMouH77b93MEqWgvICu1+om2oqVGUnTTkwNX5f6U WPgpzX1CD2z868Uo+NK+mGti/hU9yjfkQLEOuGJYRZ0thlZOtAL5/bXo4PHM4xVoGtGuSO2THTX kPbt3bBKzgSA9Tofb/qlE0GMm X-Received: by 2002:a05:6214:f2a:b0:56f:6f5:502d with SMTP id iw10-20020a0562140f2a00b0056f06f5502dmr36639209qvb.17.1680103592524; Wed, 29 Mar 2023 08:26:32 -0700 (PDT) X-Received: by 2002:a05:6214:f2a:b0:56f:6f5:502d with SMTP id iw10-20020a0562140f2a00b0056f06f5502dmr36639169qvb.17.1680103592263; Wed, 29 Mar 2023 08:26:32 -0700 (PDT) Received: from debian (2a01cb058918ce00e2c03839ebb8a46a.ipv6.abo.wanadoo.fr. [2a01:cb05:8918:ce00:e2c0:3839:ebb8:a46a]) by smtp.gmail.com with ESMTPSA id dm40-20020a05620a1d6800b0074411b03972sm5862181qkb.51.2023.03.29.08.26.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 08:26:31 -0700 (PDT) Date: Wed, 29 Mar 2023 17:26:28 +0200 From: Guillaume Nault To: "Drewek, Wojciech" Cc: Andrea Righi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , "netdev@vger.kernel.org" , "linux-kselftest@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: selftests: net: l2tp.sh regression starting with 6.1-rc1 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Wed, Mar 29, 2023 at 02:16:37PM +0000, Drewek, Wojciech wrote: > Hi, > > Modifying UAPI was not a good idea although the patch should not break userspace (related discussion [1]). > We could revert this patch with one additional change (include l2tp.h in net/sched/cls_flower.c) but then again, > modifying UAPI. This patch was mostly cosmetic anyway. > Second option is to try to fix the automatic load. I'm not an expert but I think > MODULE_ALIAS_NET_PF_PROTO macro is somehow responsible for that. I noticed some comments saying that > "__stringify doesn't like enums" (this macro is using _stringify) and my patch defined IPPROTO_L2TP in enum. > We can just replace IPPROTO_L2TP with 115 (where this macro is used) in order to fix this. > I'm going to give it a try and will let you know. Yes, the modules aliases now have symbolic names: $ modinfo l2tp_ip l2tp_ip6 | grep alias alias: net-pf-2-proto-IPPROTO_L2TP alias: net-pf-2-proto-2-type-IPPROTO_L2TP alias: net-pf-10-proto-IPPROTO_L2TP alias: net-pf-10-proto-2-type-IPPROTO_L2TP Therefore, 'request_module("net-pf-%d-proto-%d-type-%d")' can't find them. My personal preference is for the second option: fix module loading by using plain numbers in MODULE_ALIAS_*. We can always keep the symbolic names in comments. ---- >8 ---- diff --git a/net/l2tp/l2tp_ip.c b/net/l2tp/l2tp_ip.c index 4db5a554bdbd..afe94a390ef0 100644 --- a/net/l2tp/l2tp_ip.c +++ b/net/l2tp/l2tp_ip.c @@ -680,5 +680,5 @@ MODULE_VERSION("1.0"); /* Use the value of SOCK_DGRAM (2) directory, because __stringify doesn't like * enums */ -MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, 2, IPPROTO_L2TP); -MODULE_ALIAS_NET_PF_PROTO(PF_INET, IPPROTO_L2TP); +MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, 2, 115 /* IPPROTO_L2TP */); +MODULE_ALIAS_NET_PF_PROTO(PF_INET, 115 /* IPPROTO_L2TP */); diff --git a/net/l2tp/l2tp_ip6.c b/net/l2tp/l2tp_ip6.c index 2478aa60145f..65d106b41951 100644 --- a/net/l2tp/l2tp_ip6.c +++ b/net/l2tp/l2tp_ip6.c @@ -809,5 +809,5 @@ MODULE_VERSION("1.0"); /* Use the value of SOCK_DGRAM (2) directory, because __stringify doesn't like * enums */ -MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET6, 2, IPPROTO_L2TP); -MODULE_ALIAS_NET_PF_PROTO(PF_INET6, IPPROTO_L2TP); +MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET6, 2, 115 /* IPPROTO_L2TP */); +MODULE_ALIAS_NET_PF_PROTO(PF_INET6, 115 /* IPPROTO_L2TP */);