Skip to content
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

RDMA bind local address #127

Merged
merged 4 commits into from
Oct 30, 2024
Merged

RDMA bind local address #127

merged 4 commits into from
Oct 30, 2024

Conversation

pizhenwei
Copy link
Contributor

Hi @michael-grunder @bjosv

Each patch has independent functionality, also been tested by CI and local commands, so request no-squash merge for this PR.

Copy link
Collaborator

@bjosv bjosv left a comment

Choose a reason for hiding this comment

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

Just some nits

src/rdma.c Show resolved Hide resolved
src/rdma.c Outdated Show resolved Hide resolved
Copy link
Collaborator

@michael-grunder michael-grunder left a comment

Choose a reason for hiding this comment

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

The lines like

snprintf(_port, 6, "%d", port);

Could be

snprintf(_port, sizeof(_port), "%d", port);

But I don't think it matters as sizeof("65536") isn't changing any time soon 😄

Use RDMA style function instead of inet style for getting address.
Also simplify error handling.

Signed-off-by: zhenwei pi <[email protected]>
Like TCP, it's possible to bind a specific address for client side.
Currently, RDMA binding local address is supported by test program
manually.

Signed-off-by: zhenwei pi <[email protected]>
"Resource temporarily unavailable" is required by client_test program,
use the same log meesage for RDMA.

Signed-off-by: zhenwei pi <[email protected]>
Since a7cbca40661("RDMA: Support .is_local method (#1089)"), valkey
starts to support local connection. Valkey server and client run on a
single server, protected mode is not required.

Signed-off-by: zhenwei pi <[email protected]>
@pizhenwei
Copy link
Contributor Author

Hi @michael-grunder
Push a new version as you suggested, thanks!

@bjosv bjosv merged commit 9d51a4b into valkey-io:main Oct 30, 2024
43 checks passed
@bjosv
Copy link
Collaborator

bjosv commented Oct 30, 2024

Looks good, thanks!

@pizhenwei pizhenwei deleted the rdma-bind-addr branch October 30, 2024 08:33
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.

3 participants