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.