]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Don't configure the HW vxlan parser when vxlan offloading isn't set
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 2 Jul 2014 14:36:23 +0000 (17:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jul 2014 04:39:18 +0000 (21:39 -0700)
commitdd15961e57d0db6c1bfa5669f450c30cad5f481e
tree4771000f39beaa38c937e9dd23485eaa5ff7a8ae
parent04ee4bc280cfa53c251ceb67bcbc471d701b6050
net/mlx4_en: Don't configure the HW vxlan parser when vxlan offloading isn't set

The add_vxlan_port ndo driver code was wrongly testing whether HW vxlan offloads
are supported by the device instead of checking if they are currently enabled.

This causes the driver to configure the HW parser to conduct matching for vxlan
packets but since no steering rules were set, vxlan packets are dropped on RX.

Fix that by doing the right test, as done in the del_vxlan_port ndo handler.

Fixes: bb6db4d ('net/mlx4: Implement vxlan ndo calls')
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