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)?

 Jiri
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to