Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1171922imu; Tue, 20 Nov 2018 12:56:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/VPs9tuGV5iaOd5iIaI5NWgKb87amSszW1ihTntp8MMYrJ7qTTu5EkFWisFOMsJk3BsCLAd X-Received: by 2002:a63:1560:: with SMTP id 32mr3250736pgv.383.1542747398038; Tue, 20 Nov 2018 12:56:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542747398; cv=none; d=google.com; s=arc-20160816; b=CoynG/96Tgb1z8HCJQIJCg341ZLrC2Ic7ZR3ZQHXKgg1nY4a1HeCzaDXJGpxzX4jeO MwTPOtkSmaNhGARFQjwtpCnOXMQuWiqAfm/1H9SO2mnmhy2oaps9fZ7e10ebKZEzM1ZL nauDYUdxaxuddLZHRXZRK2O5XaKyklKZkaUkXbi/Jf+rIvlAaQqIb1RP9bkvIu6eFie5 Dt7wlQ7viNN4NcNGDURagkh4MH1i2i+QKBDoC0bMNYNE7oF7fqb0/9SgL7BtBQN+2ced b7EY7GUOtrgSUp+rA3eM7yWaCdBGKy/MBi5eHr9LvSYyR9PFEOJ+XSmyg+aHAh5mqRrX 11rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=TPdEYp96PZojXS4EhmiI4wel9oocYgTBFUNHyD/VJHc=; b=nWOOO3ITri5vnm1rMdXO6R2Y4Dhn9wCrZbh8lHriXsXVGAoSmwKgyskf+6t8rbO2h0 AN5HwwtxAfUkhhNViCQsdW5uIGGXMmPE2BhLC9D4a4VuIvGmY+rZmLc+dTF4Vd3srhYU vjTxFlJ/85ajEOfzkzNF3pZQZJJ91y/1nnqJ5Teka1Rf4q7eC232vVGsg0PTdGRN1UgR 1q+1pBBbIp7Cn0qCiXjrSLN2MvRRd6fTUWtOPS1AiLInEp29kdYQQ+6xBpurSj9WU13/ N114RS3eErnsRr/ooLDaxhw4Wqgk6OxIs2sQrtZ+AaTgfnVdN1Uma+G9Dt99cwnJk0rP GjZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si16077537pfo.240.2018.11.20.12.56.23; Tue, 20 Nov 2018 12:56:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726347AbeKUFJK (ORCPT + 99 others); Wed, 21 Nov 2018 00:09:10 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:45008 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726158AbeKUFJJ (ORCPT ); Wed, 21 Nov 2018 00:09:09 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 44F66148BD7FD; Tue, 20 Nov 2018 10:38:36 -0800 (PST) Date: Tue, 20 Nov 2018 10:38:35 -0800 (PST) Message-Id: <20181120.103835.989941320692216239.davem@davemloft.net> To: xuechaojing@huawei.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, wulike1@huawei.com, chiqijun@huawei.com, fy.wang@huawei.com, tony.qu@huawei.com, luoshaokai@huawei.com Subject: Re: [PATCH 4/4] net-next/hinic: fix a bug in rx data flow From: David Miller In-Reply-To: <20181120054734.17360-4-xuechaojing@huawei.com> References: <20181120054734.17360-1-xuechaojing@huawei.com> <20181120054734.17360-4-xuechaojing@huawei.com> X-Mailer: Mew version 6.8 on Emacs 26.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.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 20 Nov 2018 10:38:36 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xue Chaojing Date: Tue, 20 Nov 2018 05:47:34 +0000 > In rx_alloc_pkts(), there is a loop call of tasklet, which causes > 100% cpu utilization, even no packets are being received. This patch > fixes this bug. > > Signed-off-by: Xue Chaojing Applied.