From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: netif_receive_skb is taking long time Date: Thu, 25 Oct 2018 10:08:23 -0700 Message-ID: <5d039fa2-95fc-dbdf-4ab0-d5cccebe8bcc@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Keyur Amrutbhai Patel , "netdev@vger.kernel.org" Return-path: Received: from mail-pl1-f193.google.com ([209.85.214.193]:46114 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727505AbeJZBmE (ORCPT ); Thu, 25 Oct 2018 21:42:04 -0400 Received: by mail-pl1-f193.google.com with SMTP id bb7-v6so4135781plb.13 for ; Thu, 25 Oct 2018 10:08:25 -0700 (PDT) In-Reply-To: Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 10/25/2018 08:39 AM, Keyur Amrutbhai Patel wrote: > Hi, > > In my NIC driver "netif_receive_skb" is taking too long time. Almost 3375 neno seconds. Which is more than whole packet processing from interrupt. > > Could anyone please help me to understand what could be the reason behind this? How to solve it to take minimum time? > > Is there any standard calls which we need to follow in order to get faster performance? > First step would be to read Documentation/networking/scaling.txt and see if anything there helps. Have you tried to profile the kernel and see if some contention or hot function appears ? Maybe use a faster cpu, or remove not needed features like too heavy netfilter rules. We can not really answer your question, you do not provide enough information.