-
Notifications
You must be signed in to change notification settings - Fork 374
Conversation
Needs to be merged after the PR for tc-filter. |
Is this related to #827? It would help if you could add a full PR reference if that's the case to make it easier to track what is going on :) |
cc @mcastelino |
virtcontainers/ipvlan_endpoint.go
Outdated
"github.com/containernetworking/plugins/pkg/ns" | ||
) | ||
|
||
// IPVlanEndpoint represents a macvlan endpoint that is bridged to the VM |
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.
@amshinde copy paste error here
IPVlanEndpoint represents a macvlan endpoint
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.
Fixed.
return &IPVlanEndpoint{}, fmt.Errorf("invalid network endpoint index: %d", idx) | ||
} | ||
|
||
// Use tc filtering for ipvlan, since the other inter networking models will |
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.
@amshinde are there any other cases you know of where macvlan or bridge does not work. Ideally you need to have a check that sees if the current interworkingModel works for this type of interface. This function can return what interworkingModel will support it, if the user selected one does not. This will make the code generic.
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.
@mcastelino Yes, I need to handle this for macvlan as well. I agree this code needs to be generic.
I think it will make sense to have an interface for each endpoint that advertises the internetworking models it supports. I will add that for every endpoint so that we can make a decision to fallback to a model that works for an endpoint.
I'll do this in a separate PR.
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.
Some minor feedback. But looks good overall.
ffbb5ef
to
2dad048
Compare
@jodh-intel I shall add a reference going forward :) |
/retest |
Support ipvlan interfaces by setting up tc redirect rules. Fixes kata-containers#591 Signed-off-by: Archana Shinde <[email protected]>
/retest |
Codecov Report
@@ Coverage Diff @@
## master #852 +/- ##
=========================================
Coverage ? 66.87%
=========================================
Files ? 87
Lines ? 11766
Branches ? 0
=========================================
Hits ? 7868
Misses ? 3082
Partials ? 816 |
Now that kata-containers/runtime#852 has been merged, we need to test docker integration tests with ipvlan driver with l2 and l3 mode. Fixes kata-containers#861 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that kata-containers/runtime#852 has been merged, we need to test docker integration tests with ipvlan driver with l2 and l3 mode. Fixes kata-containers#861 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that kata-containers/runtime#852 has been merged, we need to test docker integration tests with ipvlan driver with l2 and l3 mode. Fixes kata-containers#861 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that kata-containers/runtime#852 has been merged, we need to test docker integration tests with ipvlan driver with l2 and l3 mode. Fixes kata-containers#861 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that macvlan and ipvlan has been merged kata-containers/runtime#852 and kata-containers/runtime#506, we can enable the test to run in our CI. Fixes kata-containers#899 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that macvlan and ipvlan has been merged kata-containers/runtime#852 and kata-containers/runtime#506, we can enable the test to run in our CI. Fixes kata-containers#899 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that macvlan and ipvlan has been merged kata-containers/runtime#852 and kata-containers/runtime#506, we can enable the test to run in our CI. Fixes kata-containers#899 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that macvlan and ipvlan has been merged kata-containers/runtime#852 and kata-containers/runtime#506, we can enable the test to run in our CI. Fixes kata-containers#899 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that macvlan and ipvlan has been merged kata-containers/runtime#852 and kata-containers/runtime#506, we can enable the test to run in our CI. Fixes kata-containers#899 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that macvlan and ipvlan has been merged kata-containers/runtime#852 and kata-containers/runtime#506, we can enable the test to run in our CI. Fixes kata-containers#899 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that macvlan and ipvlan has been merged kata-containers/runtime#852 and kata-containers/runtime#506, we can enable the test to run in our CI. Fixes kata-containers#899 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that macvlan and ipvlan has been merged kata-containers/runtime#852 and kata-containers/runtime#506, we can enable the test to run in our CI. Fixes kata-containers#899 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that macvlan and ipvlan has been merged kata-containers/runtime#852 and kata-containers/runtime#506, we can enable the test to run in our CI. Fixes kata-containers#899 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that macvlan and ipvlan has been merged kata-containers/runtime#852 and kata-containers/runtime#506, we can enable the test to run in our CI. Fixes kata-containers#899 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that macvlan and ipvlan has been merged kata-containers/runtime#852 and kata-containers/runtime#506, we can enable the test to run in our CI. Fixes kata-containers#899 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that macvlan and ipvlan has been merged kata-containers/runtime#852 and kata-containers/runtime#506, we can enable the test to run in our CI. Fixes kata-containers#899 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that macvlan and ipvlan has been merged kata-containers/runtime#852 and kata-containers/runtime#506, we can enable the test to run in our CI. Fixes kata-containers#899 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that macvlan and ipvlan has been merged kata-containers/runtime#852 and kata-containers/runtime#506, we can enable the test to run in our CI. Fixes kata-containers#899 Signed-off-by: Gabriela Cervantes <[email protected]>
Now that macvlan and ipvlan has been merged kata-containers/runtime#852 and kata-containers/runtime#506, we can enable the test to run in our CI. Fixes kata-containers#899 Signed-off-by: Gabriela Cervantes <[email protected]>
Ipvlan is supported using tc filtering rules to redirect traffic between the ipvlan interface and tap interface.