]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Advertize encapsulation offloads features only when VXLAN tunnel is set
authorOr Gerlitz <ogerlitz@mellanox.com>
Sun, 9 Nov 2014 12:25:39 +0000 (14:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Nov 2014 18:24:45 +0000 (13:24 -0500)
commit1c8c116406bf136956636940078c025edc502077
treef8928981e1473346588d3624e0f1b787705f1a85
parent670770c66b2e4580782a2d4e6744ce6d7f022b27
net/mlx4_en: Advertize encapsulation offloads features only when VXLAN tunnel is set

Currenly we only support Large-Send and TX checksum offloads for
encapsulated traffic of type VXLAN. We must make sure to advertize
these offloads up to the stack only when VXLAN tunnel is set.

Failing to do so, would mislead the the networking stack to assume
that the driver can offload the internal TX checksum for GRE packets
and other buggy schemes.

Reported-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c