]> 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)
commit4e71cd3aaaeca7bdbf78e2a75a7fa97f8dfe8e9c
treef8a3debb40cb61f720526ebe595959f86d28bdcf
parent6b62144156d3153c3606481d4c4a73a455afb58d
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: 7c70b5933b35 ('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