diff options
author | Bob Pearson <rpearsonhpe@gmail.com> | 2024-03-29 15:55:15 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2024-04-22 21:55:57 +0200 |
commit | 1a633bdc8fd9e9e4a9f9a668ae122edfc5aacc86 (patch) | |
tree | d8c23ad0a3a97af05524f269ada670ecdfa0c4f8 /arch/x86/lib | |
parent | RDMA/rxe: Get rid of pkt resend on err (diff) | |
download | linux-1a633bdc8fd9e9e4a9f9a668ae122edfc5aacc86.tar.xz linux-1a633bdc8fd9e9e4a9f9a668ae122edfc5aacc86.zip |
RDMA/rxe: Let destroy qp succeed with stuck packet
In some situations a sent packet may get queued in the NIC longer than
than timeout of a ULP. Currently if this happens the ULP may try to reset
the link by destroying the qp and setting up an alternate connection but
will fail because the rxe driver is waiting for the packet to finish
getting sent and be returned to the skb destructor function where the qp
reference holding things up will be dropped. This patch modifies the way
that the qp is passed to the destructor to pass the qp index and not a qp
pointer. Then the destructor will attempt to lookup the qp from its index
and if it fails exit early. This requires taking a reference on the struct
sock rather than the qp allowing the qp to be destroyed while the sk is
still around waiting for the packet to finish.
Link: https://lore.kernel.org/r/20240329145513.35381-15-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'arch/x86/lib')
0 files changed, 0 insertions, 0 deletions