support listening on xgbe

This commit is contained in:
linshier 2025-03-17 15:30:16 +08:00
parent 3c100b90ce
commit 1ec5027751

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");
return nic.starts_with("en") || nic.starts_with("eth") || nic.starts_with("bond") || nic.starts_with("xgbe");
case Address::IPoIB:
return nic.starts_with("ib");
case Address::RDMA:
return nic.starts_with("en") || nic.starts_with("eth") || nic.starts_with("bond");
return nic.starts_with("en") || nic.starts_with("eth") || nic.starts_with("bond") || nic.starts_with("xgbe");
case Address::LOCAL:
return nic.starts_with("lo");
default: