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

lkl: add LKL_HIJACK_NET_QDISC to configure qdisc policy #315

Merged
merged 1 commit into from
Feb 9, 2017

Conversation

thehajime
Copy link
Member

@thehajime thehajime commented Feb 9, 2017

Also enable SCH_FQ to be able to use it.

Signed-off-by: Hajime Tazaki [email protected]


This change is Reviewable

Copy link
Member

@tavip tavip left a 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.

Copy link
Member

@liuyuan10 liuyuan10 left a 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?

@@ -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;...".
Copy link
Member

Choose a reason for hiding this comment

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

ip|mac?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, will fix this.

* @entries - strings of qdisc configurations in the form of
* "root|type;root|type;..."
*/
void lkl_qdisc_parse_add(int ifindex, char* entries);
Copy link
Member

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.

Copy link
Member Author

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.

@thehajime
Copy link
Member Author

There is a small coding style issue, but the code looks good.

Ah thanks, I found those issues. will fix them.

I was wondering why circleci didn't report those though..

@thehajime
Copy link
Member Author

Can it be added to test?

good catch - I will add a test.

@thehajime thehajime force-pushed the feature-qdisc branch 4 times, most recently from ed5837f to 024dc9d Compare February 9, 2017 08:18
Also enable SCH_FQ to be able to use it.

Signed-off-by: Hajime Tazaki <[email protected]>
@liuyuan10 liuyuan10 merged commit e7b3474 into lkl:master Feb 9, 2017
@thehajime thehajime deleted the feature-qdisc branch February 9, 2017 21:39
@thehajime
Copy link
Member Author

I was wondering why circleci didn't report those though..

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.

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