diff options
author | Mark Bloch <[email protected]> | 2020-08-24 14:02:29 +0300 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2020-08-27 09:17:05 -0300 |
commit | ec78b3bd66bc9a015505df0ef0eb153d9e64b03b (patch) | |
tree | a615927882b56af4edbdc29b8f20b9f1d7ecd276 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d862060a4b43479887ae8e2c0b74a58c4e27e5f3 (diff) |
RDMA/mlx4: Read pkey table length instead of hardcoded value
If the pkey_table is not available (which is the case when RoCE is not
supported), the cited commit caused a regression where mlx4_devices
without RoCE are not created.
Fix this by returning a pkey table length of zero in procedure
eth_link_query_port() if the pkey-table length reported by the device is
zero.
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Fixes: 1901b91f9982 ("IB/core: Fix potential NULL pointer dereference in pkey cache")
Fixes: fa417f7b520e ("IB/mlx4: Add support for IBoE")
Signed-off-by: Mark Bloch <[email protected]>
Reviewed-by: Maor Gottlieb <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions