ucx
ucx copied to clipboard
TOOLS/PERF: Simplify Socket RTE initialization
What
Simplify Socket RTE initialization.
Why ?
The code becomes clearer and it helps remove one goto label and reduce some code duplication.
How ?
- Set
sockfdfrom valueconnfdin case of server in loop over all IP interfaces insetup_sock_rte_p2pafter listeningsockfdwas clsoed. - Print
accepterror througherr_stras it is done for other operations.