net/mlx5: zero out UDP checksum in encapsulation
authorEli Britstein <elibr@mellanox.com>
Thu, 4 Jul 2019 11:16:28 +0000 (11:16 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 8 Jul 2019 19:26:52 +0000 (21:26 +0200)
commitbf1d7d9a033aa2aa71457625ebb8b3fbdc93289d
tree6a0dbcea545c61552d89af06ed3b9adc69f6e8ec
parent3dee3f1b52127fac8943cbcb08e11328ef666046
net/mlx5: zero out UDP checksum in encapsulation

Mellanox NICs do not support UDP checksum hardware tx offload over IPv6.
This limitation becomes critical for UDP based tunnels like VXLAN.
Beside the UDP checksum validity is required by IPv6 there is an option
in Linux to allow accepting UDP zero sum (see udp6zerocsumrx in iproute2
package).

This patch zeroes out the UDP checksum field for encapsulation headers
in raw encap action.

Signed-off-by: Eli Britstein <elibr@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c