]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Send a pkey change event on driver pkey update
authorSebastian Sanchez <sebastian.sanchez@intel.com>
Thu, 9 Jun 2016 14:52:03 +0000 (07:52 -0700)
committerDoug Ledford <dledford@redhat.com>
Sat, 18 Jun 2016 00:11:27 +0000 (20:11 -0400)
commit4be9d80b24fa8db66d03de4590c339b2eb6e9872
tree015ccc0cc4c2a1e3063d440915d5523d0b514646
parent4f217bd4b369d14a1d5b5c9e2da63251abeaf23c
IB/hfi1: Send a pkey change event on driver pkey update

Swapping a cable from a "Mgmt Allowed=No" switch port to a
"Mgmt Allowed=Yes" switch port doesn't send a pkey change
notification. Therefore, the link doesn't become active as
the oib_utils layer uses an old pkey table cache.

Fix by ensuring the pkey change notification is sent when
the table is changed both explicitly by the FM and implicitly
by the driver via a cable swap.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.c
drivers/infiniband/hw/hfi1/mad.c
drivers/infiniband/hw/hfi1/mad.h