[ovs-dev] [RFC PATCH v4 4/6] dpif-netlink: add VXLAN creation support

Eric Garver e at erig.me
Fri Feb 3 20:58:57 UTC 2017


On Thu, Feb 02, 2017 at 02:59:42PM -0800, Joe Stringer wrote:
> On 18 January 2017 at 11:45, Eric Garver <e at erig.me> wrote:
> > Creates VXLAN devices using rtnetlink and tunnel metadata.
> >
> > Co-Authored-by: Thadeu Lima de Souza Cascardo <cascardo at redhat.com>
> > Co-Authored-by: Eric Garver <e at erig.me>
> > Signed-off-by: Eric Garver <e at erig.me>
> > ---
> >  lib/dpif-netlink.c | 194 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
> >  1 file changed, 193 insertions(+), 1 deletion(-)
> 
> I think that the vast majority of this code is linux-specific and
> should not exist in dpif-netlink.c.
> 
> Perhaps we should add a new lib/netdev-lwt.[ch], where the .h file has
> the #ifdef __linux__ logic to either declare or define the functions,
> then lib/netdev-lwt.c has the implementations of these functions.  The
> .h would always be added to the build in lib/automake.mk and the .c
> file would only be added in the #if LINUX section.

That's a nice cleanup. Thanks for the suggestion.

> One might even argue that it'd be tidier if the
> dpif_netlink_port_{create,destroy} functions were moved here (and
> renamed to something more apt).

I'll look into this as well.


More information about the dev mailing list