diff options
author | Yonatan Cohen <yonatanc@mellanox.com> | 2016-09-07 11:04:05 (GMT) |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-09-16 18:14:08 (GMT) |
commit | 908948877bbbb240f67d7eb27d3a392beb394a07 (patch) | |
tree | 0c02e80de95207f0659bdfe57cc526e0a1cd3dea /lib/btree.c | |
parent | dfdd6158ca2c8838313470c5ab79243d04da70b2 (diff) | |
download | linux-908948877bbbb240f67d7eb27d3a392beb394a07.tar.xz |
IB/rxe: Fix duplicate atomic request handling
When handling ack for atomic opcodes like "fetch&add"
or "cmp&swp", the method send_atomic_ack() saves the ack
before sending it, in case it gets lost and never reach the
requester. In which case the method duplicate_request()
will need to find it using the duplicated request.psn.
But send_atomic_ack() used a wrong psn value and thus
the above ack was never found.
This fix uses the ack.psn to locate the ack in case
its needed.
This fix also copies the ack packet to the skb's control buffer
since duplicate_request() will need it when calling rxe_xmit_packet()
Fixes: 8700e3e7c485 ("Soft RoCE driver")
Signed-off-by: Yonatan Cohen <yonatanc@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'lib/btree.c')
0 files changed, 0 insertions, 0 deletions