]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: use alloc_frag() and build_skb()
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 31 Oct 2016 20:43:15 +0000 (20:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Nov 2016 15:04:59 +0000 (11:04 -0400)
commitacc99af5b5821f67d0ab09667d3c57ce0b2e9cff
treeddc815d22dab0d8291aa92544256a7629f98ec0d
parenta78f43daa3b4ac0ed9ffd056eb9906e72369d71f
nfp: use alloc_frag() and build_skb()

Speed up RX processing by moving to the alloc_frag()/build_skb()
paradigm.  Since we're no longer mapping the entire buffer for
DMA add helpers which take care of calculating offsets and
lengths.

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.h
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c