#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;
};
}
static int
-netdev_patch_create(const char *name, const char *type OVS_UNUSED,
- const struct shash *args, struct netdev_dev **netdev_devp)
+netdev_patch_create(const struct netdev_class *class OVS_UNUSED,
+ const char *name, const struct shash *args,
+ struct netdev_dev **netdev_devp)
{
int err;
struct odp_vport_add ova;
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);