X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto-dpif-sflow.c;h=d43cb39e7171ef6e557157a0a9741be020f231a2;hb=4213f19da9926e8a6b4569010f152f399d0ad8cc;hp=aacb3e81c65fbaf2361b6c1a7b735e09f18a27a4;hpb=c7a262159e22cc84b802031982052fdece555e64;p=openvswitch diff --git a/ofproto/ofproto-dpif-sflow.c b/ofproto/ofproto-dpif-sflow.c index aacb3e81..d43cb39e 100644 --- a/ofproto/ofproto-dpif-sflow.c +++ b/ofproto/ofproto-dpif-sflow.c @@ -53,7 +53,6 @@ struct dpif_sflow { struct collectors *collectors; SFLAgent *sflow_agent; struct ofproto_sflow_options *options; - struct dpif *dpif; time_t next_tick; size_t n_flood, n_all; struct hmap ports; /* Contains "struct dpif_sflow_port"s. */ @@ -294,12 +293,11 @@ dpif_sflow_is_enabled(const struct dpif_sflow *ds) } struct dpif_sflow * -dpif_sflow_create(struct dpif *dpif) +dpif_sflow_create(void) { struct dpif_sflow *ds; ds = xcalloc(1, sizeof *ds); - ds->dpif = dpif; ds->next_tick = time_now() + 1; hmap_init(&ds->ports); ds->probability = 0;