]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
net/mlx5: Fix query E-Switch capabilities
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 10 Dec 2015 15:12:37 +0000 (17:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Dec 2015 05:15:23 +0000 (00:15 -0500)
commit9bd0a185c2c48226a50e6e5b639edaa9e8ab6c51
treee80e25690edc6d1a2678ece96c8a9432a9e5b4f6
parentf5f9649780c9429a4fc83b25090ddc877c6a5199
net/mlx5: Fix query E-Switch capabilities

E-Switch capabilities should be queried only if E-Switch flow table
is supported and not only when vport group manager.

Fixes: d6666753c6e8 ("net/mlx5: E-Switch, Introduce HCA cap and E-Switch vport context")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/fw.c