]> 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)
commit510efd3be3297a1bad13ba3b774b0695580d0ce4
treef8928981e1473346588d3624e0f1b787705f1a85
parent22c08d5ec87ab22fb4e67a82b10b417f94dfe52b
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