~ubuntu-branches/ubuntu/wily/openvswitch/wily

« back to all changes in this revision

Viewing changes to ofproto/pinsched.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2015-08-10 11:35:15 UTC
  • mfrom: (1.1.30)
  • Revision ID: package-import@ubuntu.com-20150810113515-575vj06oq29emxsn
Tags: 2.4.0~git20150810.97bab95-0ubuntu1
* New upstream snapshot from 2.4 branch:
  - d/*: Align any relevant packaging changes with upstream.
* d/*: wrap-and-sort.
* d/openvswitch-{common,vswitch}.install: Correct install location for
  bash completion files.
* d/tests/openflow.py: Explicitly use ovs-testcontroller as provided
  by 2.4.0 release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
 
2
 * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014 Nicira, Inc.
3
3
 *
4
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
5
 * you may not use this file except in compliance with the License.
20
20
#include <stdint.h>
21
21
#include "flow.h"
22
22
 
23
 
struct list;
 
23
struct ovs_list;
24
24
struct ofpbuf;
25
25
 
26
26
struct pinsched *pinsched_create(int rate_limit, int burst_limit);
29
29
void pinsched_set_limits(struct pinsched *, int rate_limit, int burst_limit);
30
30
void pinsched_destroy(struct pinsched *);
31
31
void pinsched_send(struct pinsched *, ofp_port_t port_no, struct ofpbuf *,
32
 
                   struct list *txq);
33
 
void pinsched_run(struct pinsched *, struct list *txq);
 
32
                   struct ovs_list *txq);
 
33
void pinsched_run(struct pinsched *, struct ovs_list *txq);
34
34
void pinsched_wait(struct pinsched *);
35
35
 
36
 
unsigned int pinsched_count_txqlen(const struct pinsched *);
 
36
struct pinsched_stats {
 
37
    unsigned int n_queued;              /* # currently queued to send. */
 
38
    unsigned long long n_normal;        /* # txed w/o rate limit queuing. */
 
39
    unsigned long long n_limited;       /* # queued for rate limiting. */
 
40
    unsigned long long n_queue_dropped; /* # dropped due to queue overflow. */
 
41
};
 
42
 
 
43
void pinsched_get_stats(const struct pinsched *, struct pinsched_stats *);
37
44
 
38
45
#endif /* pinsched.h */