-
Notifications
You must be signed in to change notification settings - Fork 92
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
Link XDP again in deamon, in order to fix Kmesh has restarted but old XDP program remain linked #679
Conversation
7e97917
to
702c498
Compare
The following code can compare if XDP program has any difference with the previous one, but if we always use the previous XDP program, duplicate maps do exist. So for now, always update XDP programs linked at pod's NIC driver.
For example, map id
|
Where do we create the duplicate maps again? |
Other eBPF programs that have reference to same maps, e.g. |
f2b9ab8
to
75277fa
Compare
I am not sure i understand what you mean. Do you mean sockops refer a bpf_log_level map, but xdp refer another? How could that happen if we detach and unlink the old xdp prog correctly |
You should respect the |
lgtm otherwise |
Codecov ReportAttention: Patch coverage is
Continue to review full report in Codecov by Sentry.
|
@YaoZengzeng TestRemoveAddNsOrServiceWaypoint failed |
The PR I merged in yesterday also failed, but rerunning the job passed it. |
I'll take a closer look |
It seems like that the Kmesh daemon crashed during the test, casuing the newly deployed waypoint fail to take effect. |
Ut coverage does not satisfy the checker |
… XDP program remain linked Signed-off-by: talon <tianmuyang@huawei.com>
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.
/lgtm
[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 |
In response to a cherrypick label: #679 failed to apply on top of branch "release-0.4":
|
In response to a cherrypick label: new issue created for failed cherrypick: #716 |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Link XDP again in deamon, in order to fix Kmesh has restarted but old XDP program remain linked
Which issue(s) this PR fixes:
Fixes #591 #665
Special notes for your reviewer:
Does this PR introduce a user-facing change?: