net/mlx5_core: Initialize namespaces only when supported by device
authorMaor Gottlieb <maorg@mellanox.com>
Mon, 11 Jan 2016 08:26:03 +0000 (10:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jan 2016 22:48:53 +0000 (17:48 -0500)
commit8d40d162c014dc3be316c5950b382d608aa2c8de
tree6639b6b1b42995999ec5a0b833ef2e0c92881b3f
parent655227edae4ca42e702db3b7ca490d098090e8fb
net/mlx5_core: Initialize namespaces only when supported by device

Before we create the sub tree of a steering namespaces(kernel, bypass,
leftovers) we check that the device has the required capabilities
in order to create this subtree.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c