X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fpinsched.c;h=6af2bb6765e2edcc18f46284f32fdfea3b01b17c;hb=5953c70e61897996e8b05fadea988b3289e133de;hp=b9c6371add0bc9728ee5ce268465838be363ca51;hpb=5f55c39b21e69025045437ffbd3bb98fe6ce2e89;p=openvswitch diff --git a/ofproto/pinsched.c b/ofproto/pinsched.c index b9c6371a..6af2bb67 100644 --- a/ofproto/pinsched.c +++ b/ofproto/pinsched.c @@ -267,6 +267,14 @@ pinsched_destroy(struct pinsched *ps) } } +void +pinsched_get_limits(const struct pinsched *ps, + int *rate_limit, int *burst_limit) +{ + *rate_limit = ps->rate_limit; + *burst_limit = ps->burst_limit; +} + void pinsched_set_limits(struct pinsched *ps, int rate_limit, int burst_limit) {