-
Notifications
You must be signed in to change notification settings - Fork 94
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
Use go-tc instead of shell #219
Use go-tc instead of shell #219
Conversation
kebe7jun
commented
Sep 23, 2022
•
edited
edited
Welcome to the Merbridge OpenSource Community!👏 We're delighted to have you onboard 💘 |
88b1b7f
to
2342da9
Compare
92dc954
to
a0fe81a
Compare
Codecov Report
@@ Coverage Diff @@
## main #219 +/- ##
=======================================
Coverage 40.33% 40.33%
=======================================
Files 7 7
Lines 419 419
=======================================
Hits 169 169
Misses 236 236
Partials 14 14
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@dddddai PTAL. |
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.
Nice!
Egress *ebpf.Program `ebpf:"mb_tc_egress"` | ||
} | ||
ps := progs{} | ||
err = coll.LoadAndAssign(&ps, &ebpf.CollectionOptions{ |
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.
One question: how can we tell which section to load?
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.
This does not use sec
to distinguish, it uses function names as separate procedures, see the description. mb_tc_ingress
or mb_tc_egress
.
internal/cni-server/cni-plugin.go
Outdated
} | ||
egress := ebpfs.GetTCEgressProg() | ||
if ing == nil { | ||
return fmt.Errorf("can not get ingress prog") |
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.
ingress -> egress