IB/hfi1: Fix status error code for unsupported packets
authorJakub Pawlak <jakub.pawlak@intel.com>
Tue, 25 Oct 2016 20:12:17 +0000 (13:12 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 15 Nov 2016 21:16:45 +0000 (16:16 -0500)
commit505efe3e46d5eaab726295cd023fb86d5b789d00
treed9fa0bec1b5c74324b3db29c0dce6d835d446755
parent11501ab9df687c6f0852719a5165e16cd3eb3c10
IB/hfi1: Fix status error code for unsupported packets

Set the status code BAD_L2 when unsupported type of packet
is received and dropped.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jakub Pawlak <jakub.pawlak@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.h
drivers/infiniband/hw/hfi1/driver.c