-
Notifications
You must be signed in to change notification settings - Fork 797
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
Reset the route flag before moving the rule #472
Conversation
c9cdb32
to
2b11447
Compare
Sometimes when the plugin is chained with other plugins e.g. sriov, the existing dynamically created routing rule will have the flags field set and that will cause the route replace to fail. Resetting the flag should sort out the mysterious "invalid argument" error reported from the kernel. |
Paging @plwhite, the author of this plugin. Does this change make sense to you? |
Can I just check I understand @ahenan ? Suppose you have two devices, A and B, and you are going to move B's routes to the new table. All the routes in table B that have been dynamically changed have to be moved to the new table, but have to lose their dynamic flag and become static because as a user you cannot add dynamic routes. Presumably they can still be overridden by further dynamic changes. Is that right? And does that specifically happen with SR-IOV devices? I'm comfortable with the change, but I think this is subtle enough that a short comment above the change saying why it is necessary would make it clearer for future users. |
@plwhite I think we are on the same page, so you are right. I cannot really say it happens only with sriov but since that is the case, I guess we may see it with some other configurations/setups. |
77f5ac6
to
7762809
Compare
Signed-off-by: ahenan <ahenan00@gmail.com>
Thanks - I am comfortable with that change. It seems completely safe, and I agree is necessary in at least some cases. |
I don't have permission to merge, so will wait for a maintainer to step in. |
No worries, thanks. |
@squeed any plans to close this PR? |
lgtm |
1 similar comment
lgtm |
No description provided.