]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mlx4: remove duplicate code in mlx4_en_process_rx_cq()
authorEric Dumazet <edumazet@google.com>
Wed, 8 Mar 2017 16:17:18 +0000 (08:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Mar 2017 17:54:46 +0000 (09:54 -0800)
commit68b8df464406e39925a54955294d5994df46bcf4
tree85fddbaa488ecfc07e254c103b6a28db8dd78351
parent6969cf0fdbe9e67ed14cdf7ec95977abcf4a14af
mlx4: remove duplicate code in mlx4_en_process_rx_cq()

We should keep one way to build skbs, regardless of GRO being on or off.

Note that I made sure to defer as much as possible the point we need to
pull data from the frame, so that future prefetch() we might add
are more effective.

These skb attributes derive from the CQE or ring :
 ip_summed, csum
 hash
 vlan offload
 hwtstamps
 queue_mapping

As a bonus, this patch removes mlx4 dependency on eth_get_headlen()
which is very often broken enough to give us headaches.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c