Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2604480rwd; Wed, 17 May 2023 11:51:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ71S/cCyWSm/v2ghF14AmwRfs0UggOqn+poicpL7JyWrenA7iLXBwJvOd4tcS60qQgAAWTS X-Received: by 2002:a05:6a00:2da6:b0:64a:a1ba:510e with SMTP id fb38-20020a056a002da600b0064aa1ba510emr822096pfb.27.1684349485561; Wed, 17 May 2023 11:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684349485; cv=none; d=google.com; s=arc-20160816; b=g6yZuC7OL7+VrqMQQ/RnLZllu+Atd3yX6Ti+M+xM0Dp91TAUab709LJMVws9coNAgG kHEuO1/I7F6vXqUK9ZJWTUo2bOuf31WQa1Lox6/EzdFkFiimK2hKg+fdw7QxaZa6sIv4 s3QRup7eqA8y3WBh4YId4WEmajscbtaWJwa9N/CB1w7S07IDo9NSL0te6YEquoR9bNUK 0ZsRaGbWn6jv8y6WAR4YDapbBDjaBDFVcv7sLlg5Gwfq2amh4PuILNXgoYr84KkzFcG3 +p6sYQl6xVrlA2LDNlzPXTr5myZaAakytA1agoI+JJjI3A6jAQmpyRJVDxONKaRnRmcC wmdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=e9ZyFR5Om6fvITOXmRGvkFurh+RZsVmhIukxDMZo6ac=; b=pruwMjMH9BKd41RKuhcvnHP3IE7hkSGJhiJjBD097y2US0H19xjui5ojfGHTTMx0QL PXEGDvlUlziQChsGSORT8PphKoy3n4Xuqemerza4ru95wdOm3oCCcf4hD6LMoIr1jvFd f+KkNk+1v8DwjCyjTLyyLeAOmvlRI87Y9RjO7e/6wDB+DTdq20LSRUbbdlZ/DHyCv1cO vr6jC6CMG/XYSr2pcMOqP7kQaR3fG6TC+Hpb7cAh/k68HaeCm68M3BbrSIjtimGx/G6s GDD3Mmimz6P9AewxpsKLwLTk7YGZyQRu8xXC/0Lzoqk82e0bCloRRdMAeQ+qUDfU7XJw FVlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GPJu0owj; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f17-20020aa79d91000000b006246677ca3dsi22798574pfq.287.2023.05.17.11.51.10; Wed, 17 May 2023 11:51:25 -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=@kernel.org header.s=k20201202 header.b=GPJu0owj; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229680AbjEQSsJ (ORCPT + 99 others); Wed, 17 May 2023 14:48:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbjEQSsJ (ORCPT ); Wed, 17 May 2023 14:48:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39AB3FE for ; Wed, 17 May 2023 11:48:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C1FFF648BA for ; Wed, 17 May 2023 18:48:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C447C433EF; Wed, 17 May 2023 18:48:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684349287; bh=AmPDufIVjIb0VxPo/YFNGszWHrR8ib13WMhB1Zb+HWk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GPJu0owjDbbuXoUWW/tJE2qTjljII0Jbu7BtcAVBMkZhSDqh7YqWMgB+AyDLiiseY N60k8eWZ8VpClfVmUL4s8WhO5mpn8Qghe1Yfg0I2uvmAOl56v6tKSe1OVT9Mu9K4e+ 5QINQ723OY82vPmDHkGZPthk2o6+i5MT3Xb1oCtB5TvoEPjAytSXm4Icov3JliheyY /s58PLEcgzucjFbWRWzO/5d26G344J316XUnQehVc69BkpeoyVwxeLwInKIk/4OtfJ WLTu4YXCE4DgYPUFNxXNaP/RwTvwea7PA/rXSrHYG6Yaf10Q55TH74Rjw7X6BbPfIS PG5zD3BNASwoQ== Date: Wed, 17 May 2023 11:48:05 -0700 From: Jakub Kicinski To: Vlad Buslov Cc: Peilin Ye , Jiri Pirko , "Daniel Borkmann" , "David S. Miller" , Eric Dumazet , Paolo Abeni , "Jamal Hadi Salim" , Cong Wang , "Peilin Ye" , John Fastabend , Pedro Tammela , Hillf Danton , , , Cong Wang Subject: Re: [PATCH net 6/6] net/sched: qdisc_destroy() old ingress and clsact Qdiscs before grafting Message-ID: <20230517114805.29e9bdca@kernel.org> In-Reply-To: <87ttwbjq6y.fsf@nvidia.com> References: <20230510161559.2767b27a@kernel.org> <20230511162023.3651970b@kernel.org> <20230516122205.6f198c3e@kernel.org> <87y1lojbus.fsf@nvidia.com> <20230516145010.67a7fa67@kernel.org> <20230516173902.17745bd2@kernel.org> <87ttwbjq6y.fsf@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Wed, 17 May 2023 11:49:10 +0300 Vlad Buslov wrote: > On Tue 16 May 2023 at 17:39, Jakub Kicinski wrote: > > On Tue, 16 May 2023 15:58:46 -0700 Peilin Ye wrote: > >> > >> Seems like trying to delete an "in-use" cls_u32 filter returns -EBUSY > > > > I meant -EBUSY due to a race (another operation being in flight). > > I think that's different. > > I wonder if somehow leveraging existing tc_modify_qdisc() 'replay' > functionality instead of returning error to the user would be a better > approach? Currently the function is replayed when qdisc_create() returns > EAGAIN. It should be trivial to do the same for qdisc_graft() result. Sounds better than returning -EBUSY to the user and expecting them to retry, yes.