]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite54b3e2c8c492618c8e75104e11dc3f8acf32dfe
tree6b3931887fe425b2ef80f97c7742c90baa9bb5ea
parentc975ea96da88d2bb170e28c7d212efb1a062a146
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