On Tue, 10 Jan 2017 10:49:15 -0500, Eric Garver wrote:
> With Pravin's last feedback I think we can do the lwt probe on init as
> well.
Yes, we can.
> == 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
> }
Although this would need to be a bit more complex, as the lwt probe
needs to be done on tunnel without the ovs_ prefix, i.e.:
create an ovs_geneve interface using rtnetlink
if successful {
delete the created interface
set out_of_tree flag
} else {
create a geneve interface using rtnetlink
check parameters of the created interface
if it is lwtunnel {
set lwt flag
}
delete the created interface
}
And note that we'd still have to read back parameters of the created
interface on each interface creation even with the lwt flag set (as the
kernel may not support VXLAN-GPE, for example). I'm not sure we save
much by doing the lwt check on startup. But it can be done.
Jiri
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev