From cb9d0ff84e3aeffd25a166684ee650f2ae80de6e Mon Sep 17 00:00:00 2001 From: Eldad Zinger Date: Thu, 8 Jul 2010 16:37:24 +0300 Subject: [PATCH] sdp: When purging tx_ring, rdma_inflight accountings should be disregarded, so the number of skbs to free is just (posted=head-tail). Signed-off-by: Eldad Zinger --- drivers/infiniband/ulp/sdp/sdp_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/sdp/sdp_tx.c b/drivers/infiniband/ulp/sdp/sdp_tx.c index 5c6207bf95e0..b08d1bd9ea23 100644 --- a/drivers/infiniband/ulp/sdp/sdp_tx.c +++ b/drivers/infiniband/ulp/sdp/sdp_tx.c @@ -431,7 +431,7 @@ static void sdp_tx_irq(struct ib_cq *cq, void *cq_context) static void sdp_tx_ring_purge(struct sdp_sock *ssk) { - while (tx_ring_posted(ssk)) { + while (ring_posted(ssk->tx_ring)) { struct sk_buff *skb; skb = sdp_send_completion(ssk, ring_tail(ssk->tx_ring)); if (!skb) -- 2.50.1