mlx4: only pull headers into skb head
authorEric Dumazet <edumazet@google.com>
Sat, 6 Sep 2014 01:29:45 +0000 (18:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Sep 2014 05:35:27 +0000 (22:35 -0700)
commitcfecec56ae7c7c40f23fbdac04acee027ca3bd66
treef6342031d64052601468c246f046600d1822c3fb
parent126859b992c30915aba8d6768254212010f1b43c
mlx4: only pull headers into skb head

Use the new fancy eth_get_headlen() to pull exactly the headers
into skb->head.

This speeds up GRE traffic (or more generally tunneled traffuc),
as GRO can aggregate up to 17 MSS per GRO packet instead of 8.

(Pulling too much data was forcing GRO to keep 2 frags per MSS)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c