[GH-ISSUE #181] Monitor service checkNicType() #111

Open
opened 2026-10-26 09:45:18 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @pwxwmm on GitHub (Mar 15, 2025).
Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/181

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


Originally created by @pwxwmm on GitHub (Mar 15, 2025). Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/181 ```c++ 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"); case Address::RDMA: return nic.starts_with("ib") || nic.starts_with("bond"); case Address::LOCAL: return nic.starts_with("lo"); default: return false; } } ```
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/3FS#111
No description provided.