This commit is contained in:
qiuxinyidian 2025-06-17 14:18:48 -07:00 committed by GitHub
commit 5d8ff9e8cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,11 +33,11 @@ namespace hf3fs::net {
static bool checkNicType(std::string_view nic, Address::Type type) {
switch (type) {
case Address::TCP:
return nic.starts_with("en") || nic.starts_with("eth") || nic.starts_with("bond") || nic.starts_with("xgbe");
return nic.starts_with("en") || nic.starts_with("eth") || nic.starts_with("bond") || nic.starts_with("xgbe") || nic.starts_with("p1");
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");
return nic.starts_with("en") || nic.starts_with("eth") || nic.starts_with("bond") || nic.starts_with("xgbe") || nic.starts_with("p1");
case Address::LOCAL:
return nic.starts_with("lo");
default: