]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb39e7b70272c25d7789f3cad8a5959f78977cd8b
treef6342031d64052601468c246f046600d1822c3fb
parentb7179fce266906b8639226e92a742743d9a37665
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