Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp555662pxf; Wed, 7 Apr 2021 06:20:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziIoB/SC0oPWVCZRvZRrpqdYRrJ0EQpQvzG9sZr2IyFCJ9BH+G9ZpDyyRwBoVG+0c5GnfZ X-Received: by 2002:a05:6402:14cc:: with SMTP id f12mr4551223edx.19.1617801653086; Wed, 07 Apr 2021 06:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617801653; cv=none; d=google.com; s=arc-20160816; b=pb9q5y1xlJ4ZBhr0QrOdPe//9iyjPYtOARMQGJcWg5PDMTrLFGpWb62LZd83lJMqnR aDIz8Xsybr/emwSUe8CPIInUqjAsbmsAziHmYx9ZysX0rmYtTuzCV+5zICgFXq5ZrVRZ SFGyY8KmGdFUi+hBlpDClXLH5QzrYU0D+s+ZCwyI7Jp2mGUfXGz0qVp1Jy3f8I+oep7C K+/fLJrMqmm3Id6M9ufH0lb003xOEXon/YskKeaxtRVIzgUWMQ0ubsdRdSRUYqOBSOAp OTQIp2pGR8wFIzLauXiPjK8XHy5Z5HuE/2nWPeK8lc2qrgphLSIlVHZuG1lsRytcLDah rpDg== 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:from:subject:cc:to:message-id:date; bh=w8B+OKNJC5IfTIiiVKMa+GoOnlcHEH7w0uYIms7vzA0=; b=ZRnGk6w02SLD7+llh3Kvnn7ZYS72W1lbakvCVQgWwbQ7KXfMEzQ3YrjSE9+K0QgsG2 UgzCICGT99UiB7K83qFtLyyeBq2ymkzA4FXbwaAVfmrar5DwaWz/hu0GiqIDdbngNiy6 snBXXgvHL18JlTtF/SSZfBN+ve0IUGOhNugJB9TatpmPSwj0P1Vw3EWeYci302TU9AZG eTR9vabxN2aqJv+73ix5XhAJg5BJpabROKX2uoqDK6wL34GBSwYqtcb9OzBB6/pB6hZV +rw7chl9ZAeDu6RsfIxNaAk9RMdQ9xrJHcXCyTi+xtiheSA88H133YxPQGpaS/s//hJl yuSA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qc19si7908045ejb.220.2021.04.07.06.20.27; Wed, 07 Apr 2021 06:20:53 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235977AbhDFXOp (ORCPT + 99 others); Tue, 6 Apr 2021 19:14:45 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:34270 "EHLO mail.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232039AbhDFXOp (ORCPT ); Tue, 6 Apr 2021 19:14:45 -0400 Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) by mail.monkeyblade.net (Postfix) with ESMTPSA id 92E8E4D2493A4; Tue, 6 Apr 2021 16:14:35 -0700 (PDT) Date: Tue, 06 Apr 2021 16:14:31 -0700 (PDT) Message-Id: <20210406.161431.1568805748449868568.davem@davemloft.net> To: xie.he.0141@gmail.com Cc: ms@dev.tdt.de, kuba@kernel.org, corbet@lwn.net, khc@pm.waw.pl, linux-x25@vger.kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v5] net: x25: Queue received packets in the drivers instead of per-CPU queues From: David Miller In-Reply-To: <20210402093000.72965-1-xie.he.0141@gmail.com> References: <20210402093000.72965-1-xie.he.0141@gmail.com> X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail.monkeyblade.net [0.0.0.0]); Tue, 06 Apr 2021 16:14:35 -0700 (PDT) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xie He Date: Fri, 2 Apr 2021 02:30:00 -0700 > X.25 Layer 3 (the Packet Layer) expects layer 2 to provide a reliable > datalink service such that no packets are reordered or dropped. And > X.25 Layer 2 (the LAPB layer) is indeed designed to provide such service. > > However, this reliability is not preserved when a driver calls "netif_rx" > to deliver the received packets to layer 3, because "netif_rx" will put > the packets into per-CPU queues before they are delivered to layer 3. > If there are multiple CPUs, the order of the packets may not be preserved. > The per-CPU queues may also drop packets if there are too many. > > Therefore, we should not call "netif_rx" to let it queue the packets. > Instead, we should use our own queue that won't reorder or drop packets. > > This patch changes all X.25 drivers to use their own queues instead of > calling "netif_rx". The patch also documents this requirement in the > "x25-iface" documentation. > > Cc: Martin Schiller > Signed-off-by: Xie He This no longe applies to net-next, please respin. Thank you.