From 40cced01026cd157fd126e2ed29242ea87714d48 Mon Sep 17 00:00:00 2001 From: Shi Jin Date: Tue, 26 Nov 2024 06:49:49 +0000 Subject: [PATCH] prov/efa: Do not post internal rx pkts unless we have >=8 pkts to post Signed-off-by: Shi Jin --- prov/efa/src/rdm/efa_rdm_ep_utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prov/efa/src/rdm/efa_rdm_ep_utils.c b/prov/efa/src/rdm/efa_rdm_ep_utils.c index 83d66a23991..39a34b2b581 100644 --- a/prov/efa/src/rdm/efa_rdm_ep_utils.c +++ b/prov/efa/src/rdm/efa_rdm_ep_utils.c @@ -911,6 +911,9 @@ void efa_rdm_ep_post_internal_rx_pkts(struct efa_rdm_ep *ep) assert(ep->efa_rx_pkts_to_post + ep->efa_rx_pkts_posted + ep->efa_rx_pkts_held == efa_rdm_ep_get_rx_pool_size(ep)); + if (ep->efa_rx_pkts_to_post < 8) + return; + err = efa_rdm_ep_bulk_post_internal_rx_pkts(ep); if (err) goto err_exit;