X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fvport-internal_dev.c;h=82079bd1102c65ec6fd95afcfa331c62739fa983;hb=0ff2282245a87f253843bf357988d7230139888f;hp=b7bcbce6abf2245c429b16b95908d36b3c33950d;hpb=c3729ee42dc25a8240cee6c0041b7db3e4070414;p=openvswitch diff --git a/datapath/vport-internal_dev.c b/datapath/vport-internal_dev.c index b7bcbce6..82079bd1 100644 --- a/datapath/vport-internal_dev.c +++ b/datapath/vport-internal_dev.c @@ -6,6 +6,7 @@ * kernel, by Linus Torvalds and others. */ +#include #include #include #include @@ -229,7 +230,7 @@ error: return ERR_PTR(err); } -static int internal_dev_destroy(struct vport *vport) +static void internal_dev_destroy(struct vport *vport) { struct netdev_vport *netdev_vport = netdev_vport_priv(vport); @@ -238,8 +239,6 @@ static int internal_dev_destroy(struct vport *vport) /* unregister_netdevice() waits for an RCU grace period. */ unregister_netdevice(netdev_vport->dev); - - return 0; } static int internal_dev_recv(struct vport *vport, struct sk_buff *skb) @@ -271,7 +270,7 @@ static int internal_dev_recv(struct vport *vport, struct sk_buff *skb) } const struct vport_ops internal_vport_ops = { - .type = ODP_VPORT_TYPE_INTERNAL, + .type = OVS_VPORT_TYPE_INTERNAL, .flags = VPORT_F_REQUIRED | VPORT_F_GEN_STATS | VPORT_F_FLOW, .create = internal_dev_create, .destroy = internal_dev_destroy, @@ -284,7 +283,6 @@ const struct vport_ops internal_vport_ops = { .is_running = netdev_is_running, .get_operstate = netdev_get_operstate, .get_ifindex = netdev_get_ifindex, - .get_iflink = netdev_get_iflink, .get_mtu = netdev_get_mtu, .send = internal_dev_recv, };