IB/hfi1: Permanently enable P_Key checking in HFI
authorNeel Desai <neel.desai@intel.com>
Sun, 9 Apr 2017 17:16:59 +0000 (10:16 -0700)
committerDoug Ledford <dledford@redhat.com>
Fri, 28 Apr 2017 17:56:21 +0000 (13:56 -0400)
commit53526500f301bfc2cde0cd6cf734ebce5020d6b7
tree6b3931887fe425b2ef80f97c7742c90baa9bb5ea
parent98b9ee2002a836acacd34df8df92184b83049df3
IB/hfi1: Permanently enable P_Key checking in HFI

Ingress and egress port P_Key checking should always be performed for
HFIs. This patch will enable ingress and egress P_Key checking when
the port is initialized and will ignore the P_Key information sent by
the FM in the port info structure which is meant to be used only by the
switch.

Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Neel Desai <neel.desai@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/init.c
drivers/infiniband/hw/hfi1/mad.c