RDMA/rxe: Make rxe_loopback match rxe_send behavior
authorBob Pearson <rpearsonhpe@gmail.com>
Fri, 29 Mar 2024 14:55:13 +0000 (09:55 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 22 Apr 2024 19:54:33 +0000 (16:54 -0300)
commit55bec1c440e6852e907c47cd33fbbf63fcc5f1ba
tree9b554bc2e38230071c05f92584a186855c1a861f
parent8776618dbbd1b6f210b31509507e1aad461d6435
RDMA/rxe: Make rxe_loopback match rxe_send behavior

The rxe send path currently counts the number of skbs outstanding between
the rxe driver and the ethernet driver to prevent too many packets to
accumulate waiting to send. This patch makes the local loopback path
behave the same way. The loopback path forwards the packets to the receive
path which will eventually call kfree_skb on all packets and drop the qp
references. This makes the loopback path more useful for software testing.

Link: https://lore.kernel.org/r/20240329145513.35381-13-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_net.c