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)
commita8671acca87267ad8b583b6e5cf9f6bcb09ff77a
tree842292a9a6d675fac39eb83b82779848d3df3294
parente412621394faacc24243abab84ce5b7a73407350
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