summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorNoa Osherovich <noaos@mellanox.com>2018-02-25 14:39:51 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-02-28 22:10:32 +0300
commite7b169f34403becd3c9fd3b6e46614ab788f2187 (patch)
tree09109754cba1a79920cf746d0a6571e8db89a47f /tools/perf/scripts/python/export-to-postgresql.py
parentda343b6d90e11132f1e917d865d88ee35d6e6d00 (diff)
downloadlinux-e7b169f34403becd3c9fd3b6e46614ab788f2187.tar.xz
IB/mlx5: Avoid passing an invalid QP type to firmware
During QP creation, the mlx5 driver translates the QP type to an internal value which is passed on to FW. There was no check to make sure that the translated value is valid, and -EINVAL was coerced into the mailbox command. Current firmware refuses this as an invalid QP type, but future/past firmware may do something else. Fixes: 09a7d9eca1a6c ('{net,IB}/mlx5: QP/XRCD commands via mlx5 ifc') Reviewed-by: Ilya Lesokhin <ilyal@mellanox.com> Signed-off-by: Noa Osherovich <noaos@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions