]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix flow steering NIC capabilities check
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 9 Jun 2016 21:07:32 +0000 (00:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Jun 2016 05:06:25 +0000 (22:06 -0700)
commit6d6223868dcff6d6b43e2a54b3aa1d6e19a04475
treef8a3debb40cb61f720526ebe595959f86d28bdcf
parentb32db444d8e31ebad6b202be956acb3a8ee21323
net/mlx5: Fix flow steering NIC capabilities check

Flow steering infrastructure is currently used only on link layer
ethernet, therefore the driver should initialize the flow steering
when the device link layer is ethernet.

In addition, add missing capability check before initializing the
namespace of NIC RX flow tables.

Fixes: 9432234b7016 ('net/mlx5_core: Flow steering tree initialization')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
include/linux/mlx5/device.h