fm10k: Do not assume budget will never be 0 for NAPI
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Fri, 1 May 2015 17:34:38 +0000 (10:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2015 04:06:55 +0000 (00:06 -0400)
commit59486329b46f31532ab032014fbaae72e9f190c3
treebc80091cb635563920b38e95698977263eb90b3a
parent4212b5433187d01b5ae83664b06e990a9116250f
fm10k: Do not assume budget will never be 0 for NAPI

The netpoll path will call napi->poll with a budget of 0 in order to clean
the Tx rings only.  This change updates the fm10k driver so that it will
correctly support that instead of cleaning 1 Rx frame if a budget of 0 is
received.

Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/fm10k/fm10k_main.c