aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/i40iw/i40iw_d.h
diff options
context:
space:
mode:
authorMustafa Ismail <mustafa.ismail@intel.com>2017-10-16 15:45:55 -0500
committerDoug Ledford <dledford@redhat.com>2017-10-18 13:28:46 -0400
commit4236f4b99ee0dcefea909ab2a179dc6a0abcb8d6 (patch)
tree6127ac21e4d3db357a55c7566613b7c34588da71 /drivers/infiniband/hw/i40iw/i40iw_d.h
parenti40iw: Cleanup AE processing (diff)
downloadlinux-dev-4236f4b99ee0dcefea909ab2a179dc6a0abcb8d6.tar.xz
linux-dev-4236f4b99ee0dcefea909ab2a179dc6a0abcb8d6.zip
i40iw: Ignore AE source field in AEQE for some AEs
The AE source field in Asynchronous Event Queue Entry (AEQE) is not set by the hardware for some AEs, but the code assumes it does. This results in incorrect processing of some AEs. Fix this by setting ae_src to I40IW_AE_SOURCE_RSVD for those AEs. Fixes: 86dbcd0f12e9 ("i40iw: add file to handle cqp calls") Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com> Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/i40iw/i40iw_d.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_d.h b/drivers/infiniband/hw/i40iw/i40iw_d.h
index dc319e987cde..60c785a68b5e 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_d.h
+++ b/drivers/infiniband/hw/i40iw/i40iw_d.h
@@ -128,6 +128,7 @@
&_ceq->ceqe_base[I40IW_RING_GETCURRENT_TAIL(_ceq->ceq_ring)] \
)
+#define I40IW_AE_SOURCE_RSVD 0x0
#define I40IW_AE_SOURCE_RQ 0x1
#define I40IW_AE_SOURCE_RQ_0011 0x3