diff options
author | 2017-11-21 16:18:30 -0600 | |
---|---|---|
committer | 2017-12-01 12:21:24 -0700 | |
commit | 100d6de2ced538c539d923dc14a1b5cbae234503 (patch) | |
tree | d4bd92a192f7bdae986da2a066ddab3d2260b091 /lib/fault-inject.c | |
parent | IB: INFINIBAND should depend on HAS_DMA (diff) | |
download | linux-100d6de2ced538c539d923dc14a1b5cbae234503.tar.gz linux-100d6de2ced538c539d923dc14a1b5cbae234503.tar.bz2 linux-100d6de2ced538c539d923dc14a1b5cbae234503.zip |
i40iw: Allocate a sdbuf per CQP WQE
Currently there is only one sdbuf per Control QP (CQP) for
programming Segment Descriptor (SD). If multiple SD work
requests are posted simultaneously, the sdbuf is reused
by all WQEs and new WQEs can corrupt previous WQEs sdbuf
leading to incorrect SD programming.
Fix this by allocating one sdbuf per CQP SQ WQE. When an
SD command is posted, it will use the corresponding sdbuf
for the WQE.
Fixes: 86dbcd0f12e9 ("i40iw: add file to handle cqp calls")
Signed-off-by: Chien Tin Tung <chien.tin.tung@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions