IB/hfi1: Permanently enable P_Key checking in HFI
authorNeel Desai <[email protected]>
Sun, 9 Apr 2017 17:16:59 +0000 (10:16 -0700)
committerDoug Ledford <[email protected]>
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 <[email protected]>
Reviewed-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Neel Desai <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/hw/hfi1/init.c
drivers/infiniband/hw/hfi1/mad.c