Skip to content

Commit

Permalink
prov/efa: Do not post internal rx pkts unless we have >=8 pkts to post
Browse files Browse the repository at this point in the history
Signed-off-by: Shi Jin <[email protected]>
  • Loading branch information
shijin-aws committed Nov 26, 2024
1 parent c74eac2 commit 40cced0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prov/efa/src/rdm/efa_rdm_ep_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 40cced0

Please sign in to comment.