net/mlx4_en: Don't attempt to TX offload the outer UDP checksum for VXLAN
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 30 Oct 2014 13:59:27 +0000 (15:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Oct 2014 23:48:58 +0000 (19:48 -0400)
commita4f2dacbf2a5045e34b98a35d9a3857800f25a7b
tree9b9d12f9909fe1b67a785e34943f97d3f482ae16
parent9cc233fb0f94b79d07cf141a625e237769d267a1
net/mlx4_en: Don't attempt to TX offload the outer UDP checksum for VXLAN

For VXLAN/NVGRE encapsulation, the current HW doesn't support offloading
both the outer UDP TX checksum and the inner TCP/UDP TX checksum.

The driver doesn't advertize SKB_GSO_UDP_TUNNEL_CSUM, however we are wrongly
telling the HW to offload the outer UDP checksum for encapsulated packets,
fix that.

Fixes: 837052d0ccc5 ('net/mlx4_en: Add netdev support for TCP/IP
     offloads of vxlan tunneling')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_tx.c