-
Notifications
You must be signed in to change notification settings - Fork 136
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
lkl: add LKL_HIJACK_NET_QDISC to configure qdisc policy #315
Conversation
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.
There is a small coding style issue, but the code looks good.
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.
Can it be added to test?
Documentation/lkl.txt
Outdated
@@ -202,6 +202,12 @@ are the list of those variable for your environment. | |||
$ LKL_HIJACK_NET_NEIGHBOR="192.168.13.100|12:34:56:78:9a:bc;2001:db8:0:f101::3|12:34:56:78:9a:be" | |||
lkl-hijack.sh ip neighbor show | |||
``` | |||
* LKL_HIJACK_NET_QDISC | |||
|
|||
Add a qdisc entry in the form of "ip|mac;ip|mac;...". |
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.
ip|mac?
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.
Thanks, will fix this.
tools/lkl/include/lkl.h
Outdated
* @entries - strings of qdisc configurations in the form of | ||
* "root|type;root|type;..." | ||
*/ | ||
void lkl_qdisc_parse_add(int ifindex, char* entries); |
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.
I don't think this should be part of lkl.h.
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.
the same reason as #319 (comment)
I believe those are useful for others.
maybe other LKL_HIJACK_xxx configs (arp, nd, etc) can be moved in this sense.
Ah thanks, I found those issues. will fix them. I was wondering why circleci didn't report those though.. |
good catch - I will add a test. |
ed5837f
to
024dc9d
Compare
Also enable SCH_FQ to be able to use it. Signed-off-by: Hajime Tazaki <[email protected]>
024dc9d
to
b376786
Compare
Off topic: I found I configured SKIP_CHECKPATCH in my circleci instance and this prevents me to check the style in advance. So everything is fine. |
Also enable SCH_FQ to be able to use it.
Signed-off-by: Hajime Tazaki [email protected]
This change is