]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2014 23:57:18 +0000 (15:57 -0800)
commitb051cd5f406e8f76854018b28448baef20da701e
tree7e30bfc116557475438a5ed621ddc299893027a5
parent5f2ac092bb0c831e00fc51c7dd25dc23e15c37c5
net/mlx4_en: Advertize encapsulation offloads features only when VXLAN tunnel is set

[ Upstream commit f4a1edd56120249198073aa4a373b77e3700ac8f ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c