X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fnetdev-patch.c;h=7e8b1990e3ca66cf4281a6f251341e67de60dbb5;hb=0cc96e48ab2fc573c3b7b69fe5a034bb29dde578;hp=17c509f1d8d47e11d594d2d524c14e209ffca739;hpb=f4b6076acab233cfe02e7eaefdeafbb69dfae556;p=openvswitch diff --git a/lib/netdev-patch.c b/lib/netdev-patch.c index 17c509f1..7e8b1990 100644 --- a/lib/netdev-patch.c +++ b/lib/netdev-patch.c @@ -26,10 +26,10 @@ #include "openvswitch/datapath-protocol.h" #include "packets.h" #include "socket-util.h" - -#define THIS_MODULE VLM_netdev_patch #include "vlog.h" +VLOG_DEFINE_THIS_MODULE(netdev_patch) + struct netdev_dev_patch { struct netdev_dev netdev_dev; }; @@ -103,7 +103,7 @@ netdev_patch_create(const char *name, const char *type OVS_UNUSED, ova.config = (char *)peer; err = netdev_vport_do_ioctl(ODP_VPORT_ADD, &ova); - if (err == EEXIST) { + if (err == EBUSY) { VLOG_WARN("%s: destroying existing device", name); err = netdev_vport_do_ioctl(ODP_VPORT_DEL, ova.devname); @@ -207,7 +207,18 @@ const struct netdev_class netdev_patch_class = { NULL, /* get_features */ NULL, /* set_advertisements */ NULL, /* get_vlan_vid */ + NULL, /* set_policing */ + NULL, /* get_qos_types */ + NULL, /* get_qos_capabilities */ + NULL, /* get_qos */ + NULL, /* set_qos */ + NULL, /* get_queue */ + NULL, /* set_queue */ + NULL, /* delete_queue */ + NULL, /* get_queue_stats */ + NULL, /* dump_queues */ + NULL, /* dump_queue_stats */ NULL, /* get_in4 */ NULL, /* set_in4 */