X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto.h;h=a94c8b59b303dc2214c9823beb0a80c67b9f4159;hb=b89d8339252cd330daca7341bbd76c7316080127;hp=ddc34483d7033b59976cc7155018b6d3ae7e0bc6;hpb=6468b79c635570168de53534dcb3a7feec0d5ba7;p=openvswitch diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h index ddc34483..a94c8b59 100644 --- a/ofproto/ofproto.h +++ b/ofproto/ofproto.h @@ -29,6 +29,11 @@ struct ofhooks; struct ofproto; struct svec; +enum { + DP_GROUP_FLOOD = 0, + DP_GROUP_ALL = 1 +}; + struct ofexpired { flow_t flow; uint64_t packet_count; /* Packets from subrules. */ @@ -36,6 +41,16 @@ struct ofexpired { long long int used; /* Last-used time (0 if never used). */ }; +struct ofproto_sflow_options { + struct svec targets; + uint32_t sampling_rate; + uint32_t polling_interval; + uint32_t header_len; + uint32_t sub_id; + char *agent_device; + char *control_ip; +}; + int ofproto_create(const char *datapath, const char *datapath_type, const struct ofhooks *, void *aux, struct ofproto **ofprotop); @@ -62,6 +77,7 @@ int ofproto_set_listeners(struct ofproto *, const struct svec *listeners); int ofproto_set_snoops(struct ofproto *, const struct svec *snoops); int ofproto_set_netflow(struct ofproto *, const struct netflow_options *nf_options); +void ofproto_set_sflow(struct ofproto *, const struct ofproto_sflow_options *); void ofproto_set_failure(struct ofproto *, bool fail_open); void ofproto_set_rate_limit(struct ofproto *, int rate_limit, int burst_limit); int ofproto_set_stp(struct ofproto *, bool enable_stp);