Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

qiuxinyidian
Copy link

…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
Author

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

@qiuxinyidian
Copy link
Author

some like p1*

@@ -65,7 +59,7 @@ Result<Void> Listener::setup() {

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
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
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
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
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?

@@ -30,18 +30,12 @@

namespace hf3fs::net {

static bool checkNicType(std::string_view nic, Address::Type type) {
Copy link
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

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