]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Allow MgmtAllowed on B2B setups
authorJan Sokolowski <jan.sokolowski@intel.com>
Mon, 6 Nov 2017 14:38:16 +0000 (06:38 -0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 13 Nov 2017 20:53:56 +0000 (15:53 -0500)
commit9abd737a5b41cc327ab6c7182609c54571f29f87
tree9851402aa6907339a7f6bcff1ff567a77d09e044
parentf8a538b9c750ccd5fa39f34421a996aad90c71b5
IB/hfi1: Allow MgmtAllowed on B2B setups

HFI's are hard-wired to send Device Info frames with
MgmtAllowed bit set to 0. This means in B2B setups,
MgmtAllowed would never be allowed, which prevents
remote opa management tools from working properly.

Assume MgmtAllowed if a neighbor is also an HFI.

Fixes: 9b7789fe344d ("IB/hfi1: Cache neighbor secure data after link up")
Reviewed-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.c
drivers/infiniband/hw/hfi1/hfi.h
drivers/infiniband/hw/hfi1/intr.c