Skip to content

Commit

Permalink
bump opte
Browse files Browse the repository at this point in the history
  • Loading branch information
rcgoodfellow committed Aug 9, 2023
1 parent 3d22577 commit 2684168
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions ddm/src/sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ pub fn add_tunnel_routes(
routes: &HashSet<TunnelRoute>,
) -> Result<(), opte_ioctl::Error> {
use oxide_vpc::api::{
IpCidr, Ipv4Cidr, Ipv4PrefixLen, Ipv6Cidr, Ipv6PrefixLen, PhysNet,
SetVirt2BoundaryReq, Vni,
IpCidr, Ipv4Cidr, Ipv4PrefixLen, Ipv6Cidr, Ipv6PrefixLen,
SetVirt2BoundaryReq, TunnelEndpoint, Vni,
};
let hdl = OpteHdl::open(OpteHdl::XDE_CTL)?;
for r in routes {
Expand All @@ -256,12 +256,11 @@ pub fn add_tunnel_routes(
Ipv6PrefixLen::new(p.len).unwrap(),
)),
};
let phys = PhysNet {
ether: [0, 0, 0, 0, 0, 0].into(), //XXX should not need
let tep = TunnelEndpoint {
ip: r.boundary_addr.into(),
vni: Vni::new(r.vni).unwrap(),
};
let req = SetVirt2BoundaryReq { vip, phys };
let req = SetVirt2BoundaryReq { vip, tep };
hdl.set_v2b(&req)?;
}

Expand Down

0 comments on commit 2684168

Please sign in to comment.