All of lore.kernel.org
 help / color / mirror / Atom feed
* [bug report] RDMA/rxe: Incorrect behavior for atomic retries
@ 2022-06-03 13:53 Bob Pearson
  0 siblings, 0 replies; only message in thread
From: Bob Pearson @ 2022-06-03 13:53 UTC (permalink / raw)
  To: Jason Gunthorpe, Zhu Yanjun, linux-rdma, Hack,
	Jenny (Ft. Collins),
	Frank Zago

Testing the current rxe driver with a patch to drop packets at random when running
the pyverbs test suite shows that the driver successfully recovers from dropped
atomic request packets but does not recover from dropped atomic ack packets.

A review of the code shows two problems. First the second argument to rxe_xmit_packet()
is the packet info struct from the request packet and not the saved response packet.
Second saving a pointer to the skb in qp->resp.resources[] will not actually work since the
skb is freed by the network stack after the NIC sends it. It would be better to save the
return value in the atomic ack header and rebuild the skb each time from this saved value.
This can be seen from the fact that the returned skb from a retry has incorrect data in it.

Bob

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-03 13:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-03 13:53 [bug report] RDMA/rxe: Incorrect behavior for atomic retries Bob Pearson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.