Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202627
b: refs/heads/master
c: 3711210
h: refs/heads/master
i:
  202625: ea1b6b7
  202623: 8ebc8d0
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jun 2, 2010
1 parent c7f7414 commit 17387b9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc135b23d01acf7ee926aaf75b0020c86d3869f9
refs/heads/master: 371121057607e3127e19b3fa094330181b5b031e
15 changes: 11 additions & 4 deletions trunk/include/net/sch_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,17 @@ struct qdisc_rate_table {
};

enum qdisc_state_t {
__QDISC_STATE_RUNNING,
__QDISC_STATE_SCHED,
__QDISC_STATE_DEACTIVATED,
};

/*
* following bits are only changed while qdisc lock is held
*/
enum qdisc___state_t {
__QDISC___STATE_RUNNING,
};

struct qdisc_size_table {
struct list_head list;
struct tc_sizespec szopts;
Expand Down Expand Up @@ -72,23 +78,24 @@ struct Qdisc {
unsigned long state;
struct sk_buff_head q;
struct gnet_stats_basic_packed bstats;
unsigned long __state;
struct gnet_stats_queue qstats;
struct rcu_head rcu_head;
};

static inline bool qdisc_is_running(struct Qdisc *qdisc)
{
return test_bit(__QDISC_STATE_RUNNING, &qdisc->state);
return test_bit(__QDISC___STATE_RUNNING, &qdisc->__state);
}

static inline bool qdisc_run_begin(struct Qdisc *qdisc)
{
return !test_and_set_bit(__QDISC_STATE_RUNNING, &qdisc->state);
return !__test_and_set_bit(__QDISC___STATE_RUNNING, &qdisc->__state);
}

static inline void qdisc_run_end(struct Qdisc *qdisc)
{
clear_bit(__QDISC_STATE_RUNNING, &qdisc->state);
__clear_bit(__QDISC___STATE_RUNNING, &qdisc->__state);
}

struct Qdisc_class_ops {
Expand Down

0 comments on commit 17387b9

Please sign in to comment.