]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Use skb_add_rx_frag() for split buffer Rx pkts
authorSunil Goutham <sgoutham@cavium.com>
Fri, 12 Aug 2016 11:21:37 +0000 (16:51 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Aug 2016 18:59:32 +0000 (11:59 -0700)
commit83116324cadac8c4f9cc46b300f0d41b69d37f5f
tree842292a9a6d675fac39eb83b82779848d3df3294
parentf521fe36e7500baa25f680195a620aea32f1a3c2
net: thunderx: Use skb_add_rx_frag() for split buffer Rx pkts

Instead of a round about way of converting buffers to SKBs and
combining them into a frag list, use standard skb_add_rx_frag()
API to merge page fragments. This code is useful when incoming
packets are of size more than RCV_FRAG_LEN which is currently
set to 2048bytes.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_queues.c