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

optimize: fix bpf ins over 100w #1059

Merged
merged 2 commits into from
Nov 20, 2024
Merged

optimize: fix bpf ins over 100w #1059

merged 2 commits into from
Nov 20, 2024

Conversation

nlgwcy
Copy link
Contributor

@nlgwcy nlgwcy commented Nov 19, 2024

What type of PR is this?

/kind bug
What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@kmesh-bot kmesh-bot added the kind/bug Something isn't working label Nov 19, 2024
@nlgwcy nlgwcy force-pushed the bugfix branch 2 times, most recently from ef93463 to 2d01da6 Compare November 19, 2024 13:43
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.91%. Comparing base (8d8f208) to head (dcacbd9).
Report is 4 commits behind head on main.

see 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5324929...dcacbd9. Read the comment docs.


🚨 Try these New Features:

@nlgwcy
Copy link
Contributor Author

nlgwcy commented Nov 19, 2024

/retest

1 similar comment
@nlgwcy
Copy link
Contributor Author

nlgwcy commented Nov 20, 2024

/retest

Signed-off-by: wuchangye <wuchangye@huawei.com>
return -ENOENT;

if (ret)
BPF_LOG(ERR, SERVICE, "lb_locality_failover_hdl [%u %u %u]\n", service_id, i, endpoint_k.backend_index);
Copy link
Member

Choose a reason for hiding this comment

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

lb_locality_failover_hdl typo

Signed-off-by: wuchangye <wuchangye@huawei.com>
@kmesh-bot kmesh-bot added size/L and removed size/M labels Nov 20, 2024
@hzxuzhonghu
Copy link
Member

cool.

/lgtm

bpf_memcpy(kmesh_ctx->dnat_ip.ip6, backend_v->addr.ip6, IPV6_ADDR_LEN);

kmesh_ctx->dnat_port = service_v->target_port[i];
kmesh_ctx->via_waypoint = false;
Copy link
Member

Choose a reason for hiding this comment

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

nit: should we always set false before entering the loop

static inline int
backend_manager(struct kmesh_context *kmesh_ctx, backend_value *backend_v, __u32 service_id, service_value *service_v)
{
int ret;
int ret = -ENOENT;
Copy link
Member

Choose a reason for hiding this comment

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

nit: set error in the error branch

@kmesh-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kmesh-bot kmesh-bot merged commit 81239fa into kmesh-net:main Nov 20, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants