Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1887475rwl; Thu, 30 Mar 2023 02:59:59 -0700 (PDT) X-Google-Smtp-Source: AK7set/rd4DhFTQVrbPnHQe58WhQnTKeX7OPy6cqEmhZm5fOoXlG0h5C07LdfTEM2HcGIOjp3/aT X-Received: by 2002:a05:6a20:5499:b0:db:7789:237e with SMTP id i25-20020a056a20549900b000db7789237emr26291707pzk.4.1680170399118; Thu, 30 Mar 2023 02:59:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680170399; cv=none; d=google.com; s=arc-20160816; b=ATryyhQkYzkXl67hJpNNSQw0abxcWVfV3eNATxml1VzELMQCr581I5tqrFc2TKdtT1 V/oCaKgR3qR9ZjwU8ATfS2CQDqQLr5fXbcLC76BPLmWQoexfzPxNBypVHeHpAfuud6X3 2axFV0bytSPGwMRquqMm4asxoYVfo69EBHWGVJyqt7W/o3eCaSqWso4aZeyoWXDzj8YB lYMf1SuUwH0EeUUFI8gOq5mx92QS3lDlAQt4EtOp91fyjy0h8keiw7UF06EaiE8IWsdB uZ/BsrlseD70F1SsgRlg46wyqRd3y4KQEybtTd7IDC4kAGTvFXiyhVmSkE6Ivvxv66Zm XJHg== 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=AZI/9tbSPLmQm8ZhqrIexR+U4JXRSltU4xypQpnDQwc=; b=BXG4pORJG4plqnZUI2VG4A+EPDf7aZS/XIF2ssEMIWi2HtrQdAAoZyJwT+IINEBMPT 6oVPf63kAdSVva27uz+zRuYYjqD0avd1Jj+uXN2RYDxMQImc1On57LvNBtyfH7e1rYpF VgOpFg4YqDinNLHcaTwV5SLgVogBWw//FCTq43RJ/RVNji5bl+UvAlP7wxFLO9hZ02sv 8skslQ0JOGEvIEFDTYS6XIhoBxIrkW9+DRe4rttWAug0T9LDTciM2rQL/nWNYSyPwY99 RnnfBRB4RGhiE+rY6osVgGEVNDOVpkpMrjLKEWsyLurY6w94ElfhTXCIZLxXMEWuftb9 Wb9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=ISAetmco; 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=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a65480b000000b00508bff55298si33714883pgs.583.2023.03.30.02.59.47; Thu, 30 Mar 2023 02:59:59 -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=@canonical.com header.s=20210705 header.b=ISAetmco; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229839AbjC3J42 (ORCPT + 99 others); Thu, 30 Mar 2023 05:56:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjC3J40 (ORCPT ); Thu, 30 Mar 2023 05:56:26 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AC42AB for ; Thu, 30 Mar 2023 02:56:25 -0700 (PDT) Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 0F4483F22F for ; Thu, 30 Mar 2023 09:56:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1680170184; bh=AZI/9tbSPLmQm8ZhqrIexR+U4JXRSltU4xypQpnDQwc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=ISAetmcoP7cVoAFnKZQiW/LrPZ++Og9fxnfGmTwDJYn2LwrMEx/13+6ReHmNnsvh6 NpzcIRh4AVPm35yB273KfHzhdKljS5VdTt+u1HzM7QXl1R68EbI1lNsloPA2u5iuQS 3XIJrNpSuVzifcEgKp/HPoSo52qTlnAaNmnJ3QcKj6Oayc9dWW9NITCDHeCDbPg959 evktrStJphqeuIuk1cWZIgpLpd+RylxNA1TrxX7rRx4/rskzPYAR+pA+CTtVEZKVrD VLeUKPHPFRQzk+ilq3mqVjUurti6dVXL6Atzxx+Gkz2ha3bXn06L8baTm8s19fitV9 DXi37KbRc/QuA== Received: by mail-ed1-f72.google.com with SMTP id es16-20020a056402381000b004fa3e04c882so26361243edb.10 for ; Thu, 30 Mar 2023 02:56:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680170183; x=1682762183; 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=AZI/9tbSPLmQm8ZhqrIexR+U4JXRSltU4xypQpnDQwc=; b=UwHgl/fULsH4TSPqIgnQe/iA8hyL8k2gshy3FJZbjQ00nbT8qODSVRGFJ7XVX/RZLu nUSx1JCmzVMlXmthn4EUB8G/R6a0DMzsVFhO1AiU8mUfRGaWa8mHZGacGXrTpMOjIVVZ uaiuEUf4FqEjnzis0xblszo6qIUMzpaHRJQyX0vasI5hW9EgJxfX/I3WBeM78cFLZk3t QKhqGFa41uzk/67GkQJYLtCbnkZFg3PR5lhrlewL1cjuz3eSp/EcIclVX4Uo/jwo0f6w 1lT47MD4Rzfr1aZkQqsJoEo/SIAt9/9Q28QcZWcAcZoYcjIP/JUkYyrrGfxkfDMPzbHd sFuQ== X-Gm-Message-State: AAQBX9dldqlhTJxx0aq1FeHOYDIsaLNOTw9KV5SJDwfhHrGFvEMIBz06 khy9sJEZrSYmG2wakas30GwIEgGnI/iW5BdK7/26DRIwf5TRd0il/wABnkVtOSesG6NyDWEzbPn 7FmsUvBTwtFe3NYp56rwyKDDSHPhL1pas2q3XvDOyLQ== X-Received: by 2002:a05:6402:1145:b0:4fb:9b54:ccbf with SMTP id g5-20020a056402114500b004fb9b54ccbfmr22011726edw.22.1680170183757; Thu, 30 Mar 2023 02:56:23 -0700 (PDT) X-Received: by 2002:a05:6402:1145:b0:4fb:9b54:ccbf with SMTP id g5-20020a056402114500b004fb9b54ccbfmr22011708edw.22.1680170183514; Thu, 30 Mar 2023 02:56:23 -0700 (PDT) Received: from localhost (host-79-33-132-140.retail.telecomitalia.it. [79.33.132.140]) by smtp.gmail.com with ESMTPSA id q30-20020a50aa9e000000b004fadc041e13sm18010598edc.42.2023.03.30.02.56.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 02:56:23 -0700 (PDT) Date: Thu, 30 Mar 2023 11:56:22 +0200 From: Andrea Righi To: "Drewek, Wojciech" Cc: Guillaume Nault , "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=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 Thu, Mar 30, 2023 at 09:26:06AM +0000, Drewek, Wojciech wrote: > > > > -----Original Message----- > > From: Andrea Righi > > Sent: czwartek, 30 marca 2023 08:45 > > To: Guillaume Nault > > Cc: Drewek, Wojciech ; 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 > > > > On Wed, Mar 29, 2023 at 06:52:20PM +0200, Guillaume Nault wrote: > > > 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). > > > > At this point I think using 115 directly is probably the best solution, > > that is also what we do already with SOCK_DGRAM, but I would just update > > the comment up above, instead of adding the inline comments. > > Agree, > > I verified the fix on my machine, > Do you want me to send the patch or you'll just send below one? Sent already. :) -Andrea