Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9548012rwr; Thu, 11 May 2023 17:14:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ523IjIOt9nFN6ipa+CwP3JqVCTBKmCCNQ4ggp51KVd5OSh8IOsLS6QL4K04OFL8bsM0EfU X-Received: by 2002:a17:902:e5cf:b0:1ad:e3a8:3bf with SMTP id u15-20020a170902e5cf00b001ade3a803bfmr274205plf.21.1683850482692; Thu, 11 May 2023 17:14:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683850482; cv=none; d=google.com; s=arc-20160816; b=uebq7M/76PmRvjnENhcwWrJJMKuYsgk14REQs/h5jW37OUu0tBfN63srteFwQvsICv 4qUwALBQ9CkewSJn1Usz/jqQoFAJME8OvlZ8RSeQQoVOmoxH3KmCpRFBQz9q3/L8oFXR v8SuQWi3JENXOvl9UCrV/fgIxha2KcVof6eF4bmGTjFjPuFeImbzzhVvc8mtobNH1A8T uDyMpvUDRLXzJ1uG54S8X+d6ZOWv27CJUbzoTH7skgqaPTRAeVJpC+Va2JxG9z+uy1KE Rc7RALaGZKfe3C+l0B6++lBIdMFEuPsU1njnMZBR9LAYgb3m4d6OaEQt2zBU9WUiK2Vk Z3wQ== 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=WAhrsdsfHuWNLZ+EDCW5kgxhkxTw8oftjQzitGQyt1o=; b=sY3/bpTLZaqIJc6ld1ccW56VyV4LrGEeTdEZYQT1cZgIFcGQ+k4aCW4T2u/an+opvu onfakYSvJeTVaWlVRifOqgp81L4yxP46RMYNa5OgtjnyypemvDL1KCavQ4JCA/N2Ddyi z1mNPTKSpPKIP4vRvgC60hrqD5Y73+EfD4G1XDyVQaLgjw6VoByCSsE69b/VAEt7ZmW5 xACs3QAh33begZBOujVGwRiJaLd5w9alDezO8TeVvucxRLl0hddg/EvM4K0QA8aB0KNk /OELnorVMKC2hHW45/XzeEMR25qjUzwi2hXpX6ARC+uOicMZzZr47zBKKntoRF3mvi1C 2kZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=KQX4+5F1; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a18-20020a170902ecd200b001aadba392b7si5893091plh.517.2023.05.11.17.14.28; Thu, 11 May 2023 17:14:42 -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=@gmail.com header.s=20221208 header.b=KQX4+5F1; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239026AbjELALb (ORCPT + 99 others); Thu, 11 May 2023 20:11:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbjELALa (ORCPT ); Thu, 11 May 2023 20:11:30 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7063F1FEB; Thu, 11 May 2023 17:11:29 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-3f4de077aaaso22506721cf.1; Thu, 11 May 2023 17:11:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683850288; x=1686442288; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=WAhrsdsfHuWNLZ+EDCW5kgxhkxTw8oftjQzitGQyt1o=; b=KQX4+5F16DPv+Xwar3ioHwB7+1rHKkv1+Ld3hHyLG8nmJjBStqzheDZQfV5bb/DdNo RDEA4KpEvrpCfAlvLS1stjVEmnjkeYLADIuh4MPMgSULVFXu39CwL+EbSJCd+oMAtcum KfW96M9ik14xxIY+pMy+CAFF2hZH3IZahl3qZyTzlSg8Nnd8NKOexfZu4ITw2XvIp9Y2 GPgL5A9XPOywxpJkoyzMeQ8V1orpiDmVslSB61JASslZSdKX22Kxc3juOy4FbJvWDQRL Je0vlHHGdVwJKAyFT/sfWsIoqXn6kb4h3pIFl2yvm+9v4YxZchCdXpTFR8qcFfsmY7n7 iKjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683850288; x=1686442288; 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=WAhrsdsfHuWNLZ+EDCW5kgxhkxTw8oftjQzitGQyt1o=; b=TcuwxMrcwX7DvR0LA0NBbhy3nvbTT89gjwWxdGBcZ47Xoayb3/Ir/4GAdJ31Ak22N3 b4RA9XcXZMPqEDXlGP1uGKQAeV3lsQH06gBGpdBjeRnsm+Mn3CoBiBX5gVr65DztfCJZ sV+ECNCY4CTzl2T6LUqO4py1k61arpu2gdaLVssh9qAjNMYPfNGcoUkYGZSYEjbZfaQj N0mi//D7Wd2FQFZEcQmJeQz3nzDXoq53MTlAA2bV5mpeWtotdc3FVNabGt/hoc7Cab4D F2KAUYc5e+HAVZMHUab+aEtgaFSfgZoVnYsjKlbaKKxlo9SjZ0CAkJaJydLtZZKYjua/ 8m3A== X-Gm-Message-State: AC+VfDxca41IxdEJ9+4Ls6AJtlwI2vyShAR1pu34D42kSXQaNpFqkZhb Kuh8BudZ4CnYV4cbTk72Gg== X-Received: by 2002:ac8:7d42:0:b0:3f3:8819:67ec with SMTP id h2-20020ac87d42000000b003f3881967ecmr30535137qtb.15.1683850288526; Thu, 11 May 2023 17:11:28 -0700 (PDT) Received: from C02FL77VMD6R.googleapis.com ([2600:1700:d860:12b0:8d4a:f604:7849:d619]) by smtp.gmail.com with ESMTPSA id x14-20020a05620a14ae00b007591cc41ed6sm152731qkj.25.2023.05.11.17.11.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 17:11:28 -0700 (PDT) Date: Thu, 11 May 2023 17:11:23 -0700 From: Peilin Ye To: Jakub Kicinski Cc: Jiri Pirko , Daniel Borkmann , "David S. Miller" , Eric Dumazet , Paolo Abeni , Jamal Hadi Salim , Cong Wang , Peilin Ye , John Fastabend , Vlad Buslov , Pedro Tammela , Hillf Danton , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Cong Wang Subject: Re: [PATCH net 6/6] net/sched: qdisc_destroy() old ingress and clsact Qdiscs before grafting Message-ID: References: <20230508183324.020f3ec7@kernel.org> <20230510161559.2767b27a@kernel.org> <20230511162023.3651970b@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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, May 11, 2023 at 04:46:33PM -0700, Peilin Ye wrote: > On Thu, May 11, 2023 at 04:20:23PM -0700, Jakub Kicinski wrote: > > > But I see your point, thanks for the suggestion! I'll try ->init() and > > > create v2. > > > > ->init() may be too early, aren't there any error points which could > > prevent the Qdisc from binding after ->init() was called? > > You're right, it's in qdisc_create(), argh... ->destroy() is called for all error points between ->init() and dev_graft_qdisc(). I'll try handling it in ->destroy(). Thanks, Peilin Ye