Skip to content

change listening to all ip address type for some NIC name not start w…#261

Closed
qiuxinyidian wants to merge 1 commit intodeepseek-ai:mainfrom
qiuxinyidian:fix-not-listen-to-rdma-address
Closed

change listening to all ip address type for some NIC name not start w…#261
qiuxinyidian wants to merge 1 commit intodeepseek-ai:mainfrom
qiuxinyidian:fix-not-listen-to-rdma-address

Conversation

@qiuxinyidian
Copy link
Copy Markdown

…ith en eth,bond, except for the Unix type

fixes:#234

…ith en eth,bond, except for the Unix type

fixes:deepseek-ai#234

Signed-off-by: lizhipeng <lizhipeng@kylinos.cn>
@qiuxinyidian
Copy link
Copy Markdown
Author

some RDMA NIC name not start with en bond , no rules ,so mabybe needs to remove the rule .

@qiuxinyidian
Copy link
Copy Markdown
Author

some like p1*

auto &filters = config_.filter_list();
for (auto [name, addr] : nics.value()) {
if (addr.up && (filters.empty() || filters.count(name) != 0) && checkNicType(name, networkType_)) {
if (addr.up && (filters.empty() || filters.count(name) != 0) && checkNicType(networkType_)) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider deleting the checkNicType function and replacing checkNicType(networkType_) with networkType_ != Address::UNIX

Copy link
Copy Markdown
Author

@qiuxinyidian qiuxinyidian Apr 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

networkType_ is not get from IfAddrs::load(), funny

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this case ,this fun post "RDMA" to networkType_, NIC only filter by name

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SF-Zhou any suggestion?


namespace hf3fs::net {

static bool checkNicType(std::string_view nic, Address::Type type) {
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inetworkType_ is not get from load (), this fun post "RDMA" to networkType_, this case , NIC only filter by name

@qiuxinyidian
Copy link
Copy Markdown
Author

@SF-Zhou those day too busy , should we modify like #283 this ,or #264,?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants