summaryrefslogtreecommitdiff
path: root/include/linux/mlx4/cmd.h
diff options
context:
space:
mode:
authorEugenia Emantayev <eugenia@mellanox.com>2013-07-25 20:21:23 +0400
committerDavid S. Miller <davem@davemloft.net>2013-07-29 11:54:51 +0400
commit2d4b646613d6b12175b017aca18113945af1faf3 (patch)
tree0833822282841dcc7b2ec5f030e5089ca0ac22de /include/linux/mlx4/cmd.h
parent73d94e9481a20817abe2f1b41ee441bb4f6461f7 (diff)
downloadlinux-2d4b646613d6b12175b017aca18113945af1faf3.tar.xz
net/mlx4_en: Fix BlueFlame race
Fix a race between BlueFlame flow and stamping in post send flow. Example: SW: Build WQE 0 on the TX buffer, except the ownership bit SW: Set ownership for WQE 0 on the TX buffer SW: Ring doorbell for WQE 0 SW: Build WQE 1 on the TX buffer, except the ownership bit SW: Set ownership for WQE 1 on the TX buffer HW: Read WQE 0 and then WQE 1, before doorbell was rung/BF was done for WQE 1 HW: Produce CQEs for WQE 0 and WQE 1 SW: Process the CQEs, and stamp WQE 0 and WQE 1 accordingly (on the TX buffer) SW: Copy WQE 1 from the TX buffer to the BF register - ALREADY STAMPED! HW: CQE error with index 0xFFFF - the BF WQE's control segment is STAMPED, so the BF index is 0xFFFF. Error: Invalid Opcode. As a result QP enters the error state and no traffic can be sent. Solution: When stamping - do not stamp last completed wqe. Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com> Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4/cmd.h')
0 files changed, 0 insertions, 0 deletions