]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit876d634d19e41603aab91455f2c52a78a28372d5
treef8a3debb40cb61f720526ebe595959f86d28bdcf
parent2fee37a47cebc26d58eec5dafc8ba787a6ee5350
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: 2530236303d9 ('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