summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/driver.h
diff options
context:
space:
mode:
authorMaor Gottlieb2017-01-18 13:10:33 +0100
committerDoug Ledford2017-02-14 16:14:25 +0100
commitc43f1112c068f3b4b20a0a9d461c341d9caeb376 (patch)
treec3c1ed21f547741e05fd3034613d42027f73a46c /include/linux/mlx5/driver.h
parentIB/mlx5: Verify that Q counters are supported (diff)
downloadkernel-qcow2-linux-c43f1112c068f3b4b20a0a9d461c341d9caeb376.tar.gz
kernel-qcow2-linux-c43f1112c068f3b4b20a0a9d461c341d9caeb376.tar.xz
kernel-qcow2-linux-c43f1112c068f3b4b20a0a9d461c341d9caeb376.zip
IB/mlx5: Add additional checks before processing MADs
Check the has_smi bit in vport context and class version of MADs before allowing MADs processing to take place. MAD_IFC SMI commands can be executed only if smi bit is set. Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters') Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Parvi Kaustubhi <parvik@mellanox.com> Reviewed-by: Eli Cohen <eli@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/linux/mlx5/driver.h')
-rw-r--r--include/linux/mlx5/driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 3a309f6a4a15..b8d69aeb1784 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -289,6 +289,7 @@ struct mlx5_port_caps {
int gid_table_len;
int pkey_table_len;
u8 ext_port_cap;
+ bool has_smi;
};
struct mlx5_cmd_mailbox {