On Tue, Jan 10, 2017 at 04:26:10PM +0100, Jiri Benc wrote:
> On Tue, 10 Jan 2017 15:44:07 +0100, Jiri Benc wrote:
> > create an ovs_geneve interface using rtnetlink
>
> This can be done just once. The pseudocode at startup thus would be:
>
> create an ovs_geneve interface using rtnetlink
> if successful {
> delete the created interface
> set out_of_tree flag
> }
>
> And interface creation:
>
> if not out_of_tree {
> create lwtunnel geneve interface using rtnetlink
> check parameters of the created interface
> if it is lwtunnel {
> done, exit
> } else {
> delete the created interface
> }
> }
> create geneve interface using genetlink
> if successful {
> done
> } else {
> fail
> }
>
> Is that what you want? If so, should the out_of_tree flag be queried
> and set per tunnel type, or just based globally on ovs_geneve (or a
> different kind)?
>
With Pravin's last feedback I think we can do the lwt probe on init as
well.
== On startup/init ==
create an ovs_geneve interface using rtnetlink
if successful {
check parameters of the created interface
if it is lwtunnel {
set lwt flag
}
delete the created interface
set out_of_tree flag
}
== On interface creation ==
if not out-of-tree and is lwt {
create lwtunnel geneve interface using rtnetlink
if successful {
done, exit
}
}
create geneve interface using genetlink
if successful {
done
} else {
fail
}
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev