summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
diff options
context:
space:
mode:
authorNogah Frankel <nogahf@mellanox.com>2016-07-21 12:03:09 +0200
committerDavid S. Miller <davem@davemloft.net>2016-07-24 23:11:58 -0700
commit57d316ba2017d824ed0fd95fc98b020c834023a1 (patch)
tree2256a8bd7035cec8669b15694235c023cf99df76 /drivers/net/ethernet/mellanox/mlxsw/spectrum.c
parentbfe9b9d2df669a57a95d641ed46eb018e204c6ce (diff)
downloadlinux-57d316ba2017d824ed0fd95fc98b020c834023a1.tar.gz
linux-57d316ba2017d824ed0fd95fc98b020c834023a1.tar.bz2
linux-57d316ba2017d824ed0fd95fc98b020c834023a1.zip
mlxsw: pci: Add resources query implementation.
Add resources query implementation. If exists, query the HW for its builtin resources instead of having them as consts in the code. Signed-off-by: Nogah Frankel <nogahf@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
index 2ba8cc404cb1..80172fc8bdd5 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
@@ -2488,6 +2488,7 @@ static struct mlxsw_config_profile mlxsw_sp_config_profile = {
.type = MLXSW_PORT_SWID_TYPE_ETH,
}
},
+ .resource_query_enable = 1,
};
static struct mlxsw_driver mlxsw_sp_driver = {