The efa-link-mapping dump command enables you to dump all the host NIC and switch port mapping to a file for future use.
# cd efa
# efa-link-mapping dump -F <file-name>
# sudo efa-link-mapping dump -F link.csv