From 34aa69cd46645bfabfc60357aa9d76a1144ac82f Mon Sep 17 00:00:00 2001 From: linshier Date: Mon, 17 Mar 2025 15:58:29 +0800 Subject: [PATCH] support listening on xgbe (#185) --- src/common/net/Listener.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/net/Listener.cc b/src/common/net/Listener.cc index 726831d..34aab70 100644 --- a/src/common/net/Listener.cc +++ b/src/common/net/Listener.cc @@ -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: