be2net: dont pull too much data in skb linear part
authorEric Dumazet <edumazet@google.com>
Fri, 13 Jul 2012 03:19:41 +0000 (03:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 06:02:36 +0000 (23:02 -0700)
commitac1ae5f33fd225f46da0072e2091962410a0431b
tree32fac87b2a1167346138797cb40a9a9cccbe7e26
parentd2ee62e9b587b303e2ac430cfa7711be4da698f7
be2net: dont pull too much data in skb linear part

skb_fill_rx_data() pulls 64 byte of data in skb->data

Its too much for TCP (with no options) on IPv4, as total size of headers
is 14 + 40 = 54

This means tcp stack and splice() are suboptimal, since tcp payload
is in part in tcp->data, and in part in skb frag.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c