-
Notifications
You must be signed in to change notification settings - Fork 868
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
change listening to all ip address type for some NIC name not start w… #261
Conversation
…ith en eth,bond, except for the Unix type fixes:deepseek-ai#234 Signed-off-by: lizhipeng <lizhipeng@kylinos.cn>
some RDMA NIC name not start with en bond , no rules ,so mabybe needs to remove the rule . |
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_)) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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
…ith en eth,bond, except for the Unix type
fixes:#234