From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E8F75636 for ; Tue, 30 May 2023 01:03:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFD7EC433EF; Tue, 30 May 2023 01:03:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685408626; bh=kAT5fvEFUD94iWwrqKTiRXR3bJ3UKRVwgwbttql1BuQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bx/Sn96Wn3n2+UjI2VfjVC79eHJ1XKlvr9VEFhenhhxtrY4GoSLjLmD20QVrwI1vp QyjAqHD4U8W+yIrP/5XJvYtKXqmvqWYlApZbdHUqv6jJnOujAK7Qcd3GOtmB7qhkib ufGXB+BB0tdaE2AAg0ieGKc12fyy1SiXXwo0Cp9sQpuyhxSyvBL4ofnFus7hphHEDc 8R5x+Dct4eX2uCctzIE6NmwW7LnjSqKjJ+htK8HtiThbYuXIAMOB2Ly+OiZyHzue8P mWjwSO5HJOoZ3+RONj+AoLEycyzcPw0Ga7PdAW+Ke5ZTgKgdbpuF1aP63hHC+dcsw7 wrcGCNGDLHYqA== Date: Mon, 29 May 2023 18:03:44 -0700 From: Jakub Kicinski To: Vlad Buslov Cc: Peilin Ye , Jamal Hadi Salim , Pedro Tammela , "David S. Miller" , Eric Dumazet , Paolo Abeni , Cong Wang , Jiri Pirko , Peilin Ye , Daniel Borkmann , "John Fastabend" , Hillf Danton , , Cong Wang Subject: Re: [PATCH v5 net 6/6] net/sched: qdisc_destroy() old ingress and clsact Qdiscs before grafting Message-ID: <20230529180344.3a9c2f35@kernel.org> In-Reply-To: <87fs7fxov6.fsf@nvidia.com> References: <429357af094297abbc45f47b8e606f11206df049.1684887977.git.peilin.ye@bytedance.com> <7879f218-c712-e9cc-57ba-665990f5f4c9@mojatatu.com> <20230526193324.41dfafc8@kernel.org> <87jzwrxrz8.fsf@nvidia.com> <87fs7fxov6.fsf@nvidia.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 29 May 2023 15:58:50 +0300 Vlad Buslov wrote: > If livelock with concurrent filters insertion is an issue, then it can > be remedied by setting a new Qdisc->flags bit > "DELETED-REJECT-NEW-FILTERS" and checking for it together with > QDISC_CLASS_OPS_DOIT_UNLOCKED in order to force any concurrent filter > insertion coming after the flag is set to synchronize on rtnl lock. Sounds very nice, yes.