mlx4: TCP/UDP packets have L4 hash
authorEric Dumazet <edumazet@google.com>
Thu, 2 Jul 2015 11:24:44 +0000 (13:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2015 20:45:22 +0000 (13:45 -0700)
commit0a6d4245691173eb953c440b8c6fc0b1688e6b25
tree0699f74137034752e3c43041a406c1a31b0a9d89
parent71c3353775677bee531bc9435f8f7481a4d6790e
mlx4: TCP/UDP packets have L4 hash

Mellanox driver has the knowledge if rxhash is a L4 hash,
if it receives a non fragmented TCP or UDP frame and
NETIF_F_RXCSUM is enabled on netdev.

ip_summed value is CHECKSUM_UNNECESSARY in this case.

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