[GH-ISSUE #156] 请问不支持Mellanox Infiniband卡IB模式吗? #93

Closed
opened 2026-10-26 09:44:57 +00:00 by bsakaguchi · 2 comments
Owner

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

IB网卡名以ib开头时无法被识别,请问需要转换成Ethernet模式(名字以ens开头)才能被识别吗?请问为何这样设计?谢谢

src\common\net\Listener.cc
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::IPoIB:
      return nic.starts_with("ib");
    case Address::RDMA:
      return nic.starts_with("en") || nic.starts_with("eth") || nic.starts_with("bond");
    case Address::LOCAL:
      return nic.starts_with("lo");
    default:
      return false;
  }
}

Originally created by @MingWangSong on GitHub (Mar 12, 2025). Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/156 IB网卡名以ib开头时无法被识别,请问需要转换成Ethernet模式(名字以ens开头)才能被识别吗?请问为何这样设计?谢谢 ```c++ src\common\net\Listener.cc 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::IPoIB: return nic.starts_with("ib"); case Address::RDMA: return nic.starts_with("en") || nic.starts_with("eth") || nic.starts_with("bond"); case Address::LOCAL: return nic.starts_with("lo"); default: return false; } } ```
Author
Owner

@SF-Zhou commented on GitHub (Mar 13, 2025):

The service that establishes an RDMA connection uses TCP, so at least one TCP NIC is required. The IB NIC does not necessarily have to operate in Ethernet mode.

<!-- gh-comment-id:2719471141 --> @SF-Zhou commented on GitHub (Mar 13, 2025): The service that establishes an RDMA connection uses TCP, so at least one TCP NIC is required. The IB NIC does not necessarily have to operate in Ethernet mode.
Author
Owner

@MingWangSong commented on GitHub (Mar 26, 2025):

请问当type为RDMA类型时,IB网卡名以ib开头时无法被识别,然后,改成IPoIB类型读写后通信有问题。请问如何解决?谢谢!

<!-- gh-comment-id:2753178707 --> @MingWangSong commented on GitHub (Mar 26, 2025): 请问当type为RDMA类型时,IB网卡名以ib开头时无法被识别,然后,改成IPoIB类型读写后通信有问题。请问如何解决?谢谢!
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#93
No description provided.