remove restriction of name filter on RDMA NIC, except lo

fixes:https://github.com/deepseek-ai/3FS/issues/263

Signed-off-by: lizhipeng <lizhipeng@kylinos.cn>
This commit is contained in:
lizhipeng 2025-04-28 06:51:40 +00:00
parent 0033c5b0bb
commit f1945040fd

View File

@ -37,7 +37,10 @@ static bool checkNicType(std::string_view nic, Address::Type type) {
case Address::IPoIB:
return nic.starts_with("ib");
case Address::RDMA:
return nic.starts_with("en") || nic.starts_with("eth") || nic.starts_with("bond") || nic.starts_with("xgbe");
if (nic.starts_with("lo"))
return false
else
return true;
case Address::LOCAL:
return nic.starts_with("lo");
default: