nfp: add buffer drop/recycle helper for RX
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 31 Oct 2016 20:43:14 +0000 (20:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Nov 2016 15:04:59 +0000 (11:04 -0400)
commite9949aebe04a1d917a15f4dc71e77deaefe9de94
tree1a6a1a141d06e52e0d4f08b345f0925068f3b28a
parentbf187ea01b07739167420088adb385f9385a7c7f
nfp: add buffer drop/recycle helper for RX

nfp_net_rx() is quite long already and about to get longer.
Move buffer drop/recycle to a helper.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c