]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2net: dont pull too much data in skb linear part
authorEric Dumazet <edumazet@google.com>
Fri, 24 Aug 2012 14:56:22 +0000 (20:26 +0530)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 27 Aug 2012 14:06:31 +0000 (07:06 -0700)
commit981ecdd7c220a6d50f86f6c01101fb11ca2944c2
treed55bcb496d76cdca4a25e35d7c01c36612ade76c
parentb13c4c6feee36a16c9e4ebf6400384b3d26207fd
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/benet/be_main.c