X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto-dpif-sflow.h;h=6af8dc02252b23a5c3db03ea4debc94d3b99d591;hb=ebc56baa41db060b8783051e67b6fcbc148ebd60;hp=439f41045fa962eaf02dbaa9d147118a0a11197c;hpb=6ff686f2bc2afcfb0a9ad9793d834979dc9870d6;p=openvswitch diff --git a/ofproto/ofproto-dpif-sflow.h b/ofproto/ofproto-dpif-sflow.h index 439f4104..6af8dc02 100644 --- a/ofproto/ofproto-dpif-sflow.h +++ b/ofproto/ofproto-dpif-sflow.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2009, 2010 InMon Corp. - * Copyright (c) 2009 Nicira Networks. + * Copyright (c) 2009, 2012 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,6 +26,7 @@ struct dpif; struct dpif_upcall; struct flow; struct ofproto_sflow_options; +struct ofport; struct dpif_sflow *dpif_sflow_create(struct dpif *); uint32_t dpif_sflow_get_probability(const struct dpif_sflow *); @@ -36,8 +37,7 @@ void dpif_sflow_set_options(struct dpif_sflow *, void dpif_sflow_clear(struct dpif_sflow *); bool dpif_sflow_is_enabled(const struct dpif_sflow *); -void dpif_sflow_add_port(struct dpif_sflow *, uint16_t ovs_port, - const char *netdev_name); +void dpif_sflow_add_port(struct dpif_sflow *ds, struct ofport *ofport); void dpif_sflow_del_port(struct dpif_sflow *, uint16_t ovs_port); void dpif_sflow_run(struct dpif_sflow *); @@ -46,7 +46,7 @@ void dpif_sflow_wait(struct dpif_sflow *); void dpif_sflow_received(struct dpif_sflow *, struct ofpbuf *, const struct flow *, - const struct user_action_cookie *); + const union user_action_cookie *); int dpif_sflow_odp_port_to_ifindex(const struct dpif_sflow *, uint16_t);