diff options
author | Jakub Pawlak <jakub.pawlak@intel.com> | 2016-10-25 13:12:17 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-11-15 16:16:45 -0500 |
commit | 505efe3e46d5eaab726295cd023fb86d5b789d00 (patch) | |
tree | d9fa0bec1b5c74324b3db29c0dce6d835d446755 /drivers/infiniband/hw/hfi1/chip.h | |
parent | IB/hfi1: Relocate rcvhdrcnt module parameter check. (diff) | |
download | linux-dev-505efe3e46d5eaab726295cd023fb86d5b789d00.tar.xz linux-dev-505efe3e46d5eaab726295cd023fb86d5b789d00.zip |
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>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/chip.h')
-rw-r--r-- | drivers/infiniband/hw/hfi1/chip.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hfi1/chip.h b/drivers/infiniband/hw/hfi1/chip.h index 92345259a8f4..043fd21dc5f3 100644 --- a/drivers/infiniband/hw/hfi1/chip.h +++ b/drivers/infiniband/hw/hfi1/chip.h @@ -320,6 +320,9 @@ /* DC_DC8051_CFG_MODE.GENERAL bits */ #define DISABLE_SELF_GUID_CHECK 0x2 +/* Bad L2 frame error code */ +#define BAD_L2_ERR 0x6 + /* * Eager buffer minimum and maximum sizes supported by the hardware. * All power-of-two sizes in between are supported as well. |