diff options
| author | Kamal Heib <[email protected]> | 2020-05-14 14:47:20 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-05-17 20:43:19 -0300 |
| commit | 23bbd5818e2b0d265aa1835e66f5055f63a8fa4c (patch) | |
| tree | 000bd68b0e23851776b4d8b41191603b72ae83cc /tools/perf/scripts/python | |
| parent | daeee976904c0b7326eb4c033df7b28d4b726177 (diff) | |
RDMA/srpt: Fix disabling device management
Avoid disabling device management for devices that don't support
Management datagrams (MADs) by checking if the "mad_agent" pointer is
initialized before calling ib_modify_port, also fix the error flow in
srpt_refresh_port() to disable device management if
ib_register_mad_agent() fail.
Fixes: 09f8a1486dca ("RDMA/srpt: Fix handling of SR-IOV and iWARP ports")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kamal Heib <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions