You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
issue: 4082058 Fixing return from rx_wait_helper without data
In case poll_and_process_element_rx polled packets without draining the CQ but m_n_rx_pkt_ready_list_count==0,
meaning no data bytes were received, we need to return positive return code, to make the caller call us again.
Returning EAGAIN without draining the CQ will make the caller return EGAIAN as well, and so up to the application,
although packets are still available in the CQ.
This can happen, for example, if the polling received only ACK packets. Returning EAGAIN in this case is incorrect.
Callers may decide falsly to go to sleep.
Signed-off-by: Alexander Grissik <[email protected]>
0 commit comments