X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fdpif-netdev.c;h=926464e266ff202f6f6c740b2c381b0631cc0633;hb=6ff686f2bc2afcfb0a9ad9793d834979dc9870d6;hp=b48be86173c2c486de1948164209c042cc453b40;hpb=9b02078077b62e4277e84c7f39382ce09986cf6b;p=sliver-openvswitch.git diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index b48be8617..926464e26 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -336,7 +336,7 @@ do_add_port(struct dp_netdev *dp, const char *devname, const char *type, int error; /* XXX reject devices already in some dp_netdev. */ - if (type[0] == '\0' || !strcmp(type, "system")) { + if (type[0] == '\0' || !strcmp(type, "system") || !strcmp(type, "dummy")) { internal = false; } else if (!strcmp(type, "internal")) { internal = true; @@ -1379,8 +1379,6 @@ const struct dpif_class dpif_netdev_class = { dpif_netdev_execute, dpif_netdev_recv_get_mask, dpif_netdev_recv_set_mask, - NULL, /* get_sflow_probability */ - NULL, /* set_sflow_probability */ NULL, /* queue_to_priority */ dpif_netdev_recv, dpif_netdev_recv_wait,