Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp870387pxf; Thu, 11 Mar 2021 17:44:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxu5vrGZ4/sSiS1LQTbXQp24vPyP48SUbxUhC0uMPP9c71e9sHI7r0svu0sYps2bCR4Qyyv X-Received: by 2002:a17:907:77d4:: with SMTP id kz20mr5951435ejc.93.1615513492289; Thu, 11 Mar 2021 17:44:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615513492; cv=none; d=google.com; s=arc-20160816; b=HOCE0Cxgbk4FcgMdtaDMrfMU/FLUH7w6bMdbCwz8b10Wc6g4nY1CrKGEY8TGFxQzWu iGFBZypnIlNDjcmOph/+imE1moJkFVKAKTlMmg/SAW9ReAeJHbViliIiVHm4iS5GE1dV WzkXs6BWAU06XOHvJ6YzLyNrCmtW1bsxXoVyR3Yi2x5uDFtrB1uWGnpGB0dpbrowU2T7 SSp7i2g2QQegdvpJuOa4rfvaZHlZ+0LwvJ93ZRRrnGJJpYX16Fyi/AjceRXoloKPrtTl wLLLDiNW4uRleEWie2vGUdB+bJ0aLCW2HtNaK8tb0im9KJJkhoE28SVF6smBXthAl5l+ uIZg== 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=0AsiCubR9TgHaVJa226hJ0hwX79wK+mw/M6LhjQl1VM=; b=xah8jHc9L1WYJ3EC4bRpVNvj7Sr9B56nLHpnWAuVf43txEwy5MppHluClOY3XCd06j 1My0nBQmAY63TNsPIrMx2f2ktw7k2llxDSas3gRIgFZNevA5omz9o6whOndiyUria9Mw qfDM/l+y/E5MelRzPTY70QKRpJKh3ghiTL5wqJ+3FQLA0+Q4V6oHdHLBckHPdkkgxyQA 2t4Hm8sZG7pX1U1NC00BxOvN6AIrXBYsgorkrUVi44C/OcD6Q4WBHCaB1xP7eOQgeFfr fbNlm+7/IhqHvU+GaTsvRuvL3rOMUtHkGycG4m6yqArFgVoABxJmjIMvMpgkSfqa6iMO lgMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eXGQXSxV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m13si2698523edc.258.2021.03.11.17.44.29; Thu, 11 Mar 2021 17:44:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eXGQXSxV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229470AbhCLBlM (ORCPT + 99 others); Thu, 11 Mar 2021 20:41:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:44778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbhCLBkv (ORCPT ); Thu, 11 Mar 2021 20:40:51 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 00CC564F84; Fri, 12 Mar 2021 01:40:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615513251; bh=uGVTP503N6JlMDKuA96LI3I3fD8dKjw5WZ0J7DOgtv4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=eXGQXSxVMrUsk5SIGieigS+tyLp4S3BNh76QgpD1Xt1iuhGi93aC+RGxlJx2MgJbE 0ys3wuVOnWjLeShCjjnTdqGa7leyGFyF5jT8qTzAC9tzEdd6TvlUJWtbfqAM6mx6bL yD6C1AGy94nM5HJdyVaTR/v3+pt2QnBu/1TCtgmBRPGXc8PWnE2dqp3TSYSByDSljz 9esasWgwRNQ6LMjmWN/Qq8vnlzffFwZGX3CWr0YilJOdsgXscA/7LrZxcEqKHsoIpL /mMbBUkH8Tm2zzElrHIdGWk9dLBydMboTbHYtDKQx6Fg26/6n2BdUaLkMZDG6UInxu qgHa/86tQevUw== Date: Thu, 11 Mar 2021 17:40:50 -0800 From: Jakub Kicinski To: Xie He Cc: Martin Schiller , "David S. Miller" , Linux X25 , Linux Kernel Network Developers , LKML Subject: Re: [PATCH net] net: lapbether: Prevent racing when checking whether the netif is running Message-ID: <20210311174050.0386416f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20210311072311.2969-1-xie.he.0141@gmail.com> <20210311124309.5ee0ef02@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20210311145230.5f368151@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20210311161030.5ed11805@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 11 Mar 2021 16:28:47 -0800 Xie He wrote: > On Thu, Mar 11, 2021 at 4:10 PM Jakub Kicinski wrote: > > > > And the "noqueue" queue is there because it's on top of hdlc_fr.c > > somehow or some out of tree driver? Or do you install it manually? > > No, this driver is not related to "hdlc_fr.c" or any out-of-tree > driver. The default qdisc is "noqueue" for this driver because this > driver doesn't set "tx_queue_len". This means the value of > "tx_queue_len" would be 0. In this case, "alloc_netdev_mqs" will > automatically add the "IFF_NO_QUEUE" flag to the device, then > "attach_one_default_qdisc" in "net/sched/sch_generic.c" will attach > the "noqueue" qdisc for devices with the "IFF_NO_QUEUE" flag. I see.