-
Notifications
You must be signed in to change notification settings - Fork 3
fix: issue #148 #164
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
base: main
Are you sure you want to change the base?
fix: issue #148 #164
Conversation
| #[cfg_attr(feature = "serde", serde(default))] | ||
| pub left_external_veth: bool, | ||
|
|
||
| #[cfg_attr(feature = "serde", serde(default))] | ||
| pub right_external_veth: bool, | ||
|
|
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 would rather it be an enum so that we can extend to more options besides veth. Default to optional. Rename to left_external and right_external. Currently, we can have veth only as an option.
| pub left_pairs: BTreeMap<usize, Arc<VethPair>>, | ||
| pub right_pairs: BTreeMap<usize, Arc<VethPair>>, |
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 understand why this change is necessary
| use rattan_core::metal::io::af_xdp::XDPDriver as RattanPacketDriver; | ||
| use rattan_core::metal::io::af_xdp::XDPPacket as RattanPacket; |
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.
They should still be in one line
| Duration::try_from(span) | ||
| } | ||
|
|
||
| fn add_env(handle: &mut Command, ip_list: Vec<(usize, IpAddr)>) { |
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 env is conflicted with Env conceptually, so we should rename this method, e.g., add_ip_addr_env_var or something else.
| Duration::try_from(span) | ||
| } | ||
|
|
||
| fn add_env(handle: &mut Command, ip_list: Vec<(usize, IpAddr)>) { |
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.
Let's make it a common function that can be used both by main and main-xdp. Remeber to define it at rattan crate not rattan-core crate
Make external veth pair optional