Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp924615rwl; Wed, 29 Mar 2023 10:07:53 -0700 (PDT) X-Google-Smtp-Source: AKy350a3gt11WgaUqlii24+FUYw09LNp4VeEqxBU45raqa+eoBJOYqg43mhCGgzGbqoL0t/IUXH6 X-Received: by 2002:a05:6402:459:b0:4f9:deb4:b97f with SMTP id p25-20020a056402045900b004f9deb4b97fmr21532296edw.13.1680109672722; Wed, 29 Mar 2023 10:07:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680109672; cv=none; d=google.com; s=arc-20160816; b=pdiqN8YMAj42tb3/tmcBVkHQoFgSNL7ducVGb9rDZjKU3+w4gPFpK+02B8sXS7pwJa WxupEKJNRKvaxkf4tBe4DQ4ssITnC5+BVcNnsHz19pmpg9aXuE8B8DJGR41NIWmV/QB6 KNQoFFRhPcZDtJzWtI8BM/8Mo9/wBE5wAOp8oZD8+CW9lYdECvgaERN/KK4BT5k1oeyq vIUJaSlSopjN7/wvUeTrAaLHjYs6F9/2IKWf/GyV2J9QAYtOUUfirN3cnQCjSxKX4ppb LQSOsoKAkcqzL3Il1aPy2r/7MdISJeS+QV58WrwDoxGmNQEsXBXsJsWxvs61nSGWiVH1 P4Qg== 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=muo9JB5IQhuOp3WxvPbO5lqz9UUu3QBSHBndFfIKJqM=; b=Ae/SaXgO4r8rVuxym+hi46nDIfgUt9phZtFL+m/eaqWoRefBIxjwX9kK0LcGsPP6Tp 2MX7D5K8tRC/GU/qNq4y3TsfLhJV5Gh5tfJSmrFnmGzEONsSY+oWtGwm1FH+r6mxVpmi aKIm9qnWThVhUIsK0rp6euejMJXVl6XlXpIlXQPv4gQaWeHai0Ic54D5s7ekln5GJVlO c+ObHqRpBJm7Jj3Ql2CVPDcVB985mjAEYiHMe2NItbwG94085ugmud2aWd3NLhbvK68e hQl2Fl1IIElaZhSpPmGW2/R6d3d1RSzIpD8GW9eJkRN7ABiInzlEZsM8OoqtbOm+jXuz POpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N8jxHOoa; 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 v6-20020aa7d9c6000000b005021d19dcdesi13331272eds.171.2023.03.29.10.07.28; Wed, 29 Mar 2023 10:07:52 -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=N8jxHOoa; 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 S230374AbjC2QxT (ORCPT + 99 others); Wed, 29 Mar 2023 12:53:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230411AbjC2QxQ (ORCPT ); Wed, 29 Mar 2023 12:53:16 -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 8CECC658F for ; Wed, 29 Mar 2023 09:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680108746; 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=muo9JB5IQhuOp3WxvPbO5lqz9UUu3QBSHBndFfIKJqM=; b=N8jxHOoaSgo/KYQyd1Sdkp/jeSmdRup4wZRuRYnW8/DjLFmgnpGF06bE7L1ObM9z4Zr2YI HERzPK65kF9RLsBEVINQAT2snAeZfyGFG+wWKSFCd1PcWzNhNSii4Qru2egpCToqFtoOtd vYX5mardwmYuClGnYnH6ryYQgCYKs6E= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-288-to8qIw5XNLC4wXtQi1t2Vg-1; Wed, 29 Mar 2023 12:52:25 -0400 X-MC-Unique: to8qIw5XNLC4wXtQi1t2Vg-1 Received: by mail-qt1-f199.google.com with SMTP id n10-20020a05622a11ca00b003e4e30c6c98so7895942qtk.19 for ; Wed, 29 Mar 2023 09:52:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680108745; 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=muo9JB5IQhuOp3WxvPbO5lqz9UUu3QBSHBndFfIKJqM=; b=xpNOtkgkywp/RQKPaSlQCTBWouvmzzixt2vgJ+ZI90jq334RXY44XjskhYBZR2LN1W Pe62YOdKXgIPB5aQrM2B22mh2s9KIuyz9lplzCJtVD8ILvdCuSapVXzYuizXinKhEgre ydRYpV/ahH4RFvsT2A0hcwaJ1+ZqqfuE0huoNAqEv4DLM9NPJqivwu6Cczkj6svEBhH0 xULkw2K0w0SELPq0tFIObKQ8j67t65I8ndrRyikkJjU8nlD9Z9EPLEY4WjzaUJaz2j1h /cELaHde3Zr6r4/qV8iqr2grzME5To35LWdwlaDMeL4D/KHscLiv14I7Da59zdo7Cf8T /YuA== X-Gm-Message-State: AAQBX9ehBHspjTxbAnfM/O0PgmT2neYS7CuW0ayTLLIUh56xM5eReIHp r99gH3yOMKXGylKIfQqCl98WBc7h+RePXJ2bwtJ5KfuwPc8Yex8dmPTE3r3CUbE2WfYlRtHGlEM zBrVgtHysYWqztO7xfS8e/bSc X-Received: by 2002:a05:6214:e66:b0:583:8e58:6c0f with SMTP id jz6-20020a0562140e6600b005838e586c0fmr29147469qvb.40.1680108744894; Wed, 29 Mar 2023 09:52:24 -0700 (PDT) X-Received: by 2002:a05:6214:e66:b0:583:8e58:6c0f with SMTP id jz6-20020a0562140e6600b005838e586c0fmr29147450qvb.40.1680108744648; Wed, 29 Mar 2023 09:52:24 -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 r199-20020a37a8d0000000b007467b55e6e3sm14799362qke.89.2023.03.29.09.52.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 09:52:24 -0700 (PDT) Date: Wed, 29 Mar 2023 18:52:20 +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 03:39:13PM +0000, Drewek, Wojciech wrote: > > > > -----Original Message----- > > -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 */); > > Btw, am I blind or the alias with type was wrong the whole time? > pf goes first, then proto and type at the end according to the definition of MODULE_ALIAS_NET_PF_PROTO_TYPE > and here type (2) is 2nd and proto (115) is 3rd You're not blind :). The MODULE_ALIAS_NET_PF_PROTO_TYPE(...) is indeed wrong. Auto-loading the l2tp_ip and l2tp_ip6 modules only worked because of the extra MODULE_ALIAS_NET_PF_PROTO() declaration (as inet_create() and inet6_create() fallback to "net-pf-%d-proto-%d" if "net-pf-%d-proto-%d-type-%d" fails).