mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
support listening on xgbe (#185)
This commit is contained in:
parent
3c100b90ce
commit
34aa69cd46
@ -33,11 +33,11 @@ namespace hf3fs::net {
|
|||||||
static bool checkNicType(std::string_view nic, Address::Type type) {
|
static bool checkNicType(std::string_view nic, Address::Type type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case Address::TCP:
|
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:
|
case Address::IPoIB:
|
||||||
return nic.starts_with("ib");
|
return nic.starts_with("ib");
|
||||||
case Address::RDMA:
|
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:
|
case Address::LOCAL:
|
||||||
return nic.starts_with("lo");
|
return nic.starts_with("lo");
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user