X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fvport-netdev.c;h=e45e22fbb870e87fa0d974c413515673aefaaa9f;hb=0a6f55420508c31af9fe41aafdd26ce8462cc1be;hp=d492d19b7d6497f95f804f0d7afa0c6d0034d12c;hpb=e33adfd0cea19a8a4dab5cdbe80e2fd636e48374;p=openvswitch diff --git a/datapath/vport-netdev.c b/datapath/vport-netdev.c index d492d19b..e45e22fb 100644 --- a/datapath/vport-netdev.c +++ b/datapath/vport-netdev.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Nicira Networks. + * Copyright (c) 2010, 2011 Nicira Networks. * Distributed under the terms of the GNU GPL version 2. * * Significant portions of this file may be copied from parts of the Linux @@ -21,8 +21,6 @@ #include "vport-internal_dev.h" #include "vport-netdev.h" -#include "compat.h" - /* If the native device stats aren't 64 bit use the vport stats tracking instead. */ #define USE_VPORT_STATS (sizeof(((struct net_device_stats *)0)->rx_bytes) < sizeof(u64)) @@ -288,7 +286,7 @@ struct vport *netdev_get_vport(struct net_device *dev) } const struct vport_ops netdev_vport_ops = { - .type = "netdev", + .type = ODP_VPORT_TYPE_NETDEV, .flags = (VPORT_F_REQUIRED | (USE_VPORT_STATS ? VPORT_F_GEN_STATS : 0)), .init = netdev_init,