Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754078AbdFMXxM (ORCPT ); Tue, 13 Jun 2017 19:53:12 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:36028 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752615AbdFMXxL (ORCPT ); Tue, 13 Jun 2017 19:53:11 -0400 Date: Tue, 13 Jun 2017 16:53:03 -0700 From: Stephen Hemminger To: Salil Mehta Cc: , , , , , , , Subject: Re: [PATCH V2 net-next 1/8] net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC Message-ID: <20170613165303.7a096821@xeon-e3> In-Reply-To: <20170613231035.494020-2-salil.mehta@huawei.com> References: <20170613231035.494020-1-salil.mehta@huawei.com> <20170613231035.494020-2-salil.mehta@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 510 Lines: 15 On Wed, 14 Jun 2017 00:10:28 +0100 Salil Mehta wrote: > +static irqreturn_t hns3_irq_handle(int irq, void *dev) > +{ > + struct hns3_enet_tqp_vector *tqp_vector = dev; > + > + napi_schedule(&tqp_vector->napi); In order to do NAPI correctly, the IRQ must be disabled. If you are using MSI, then hardware will do it for you. But I don't see you ever enable MSI or MSI-x in this driver. Are you just assuming that the driver only works on one platform and that platform has PCI MSI-X?