mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
net: Define accessors to manipulate QDISC_STATE_RUNNING
Define three helpers to manipulate QDISC_STATE_RUNNIG flag, that a second patch will move on another location. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9f26f547a5
commit
bc135b23d0
4 changed files with 20 additions and 5 deletions
|
@ -95,7 +95,7 @@ extern void __qdisc_run(struct Qdisc *q);
|
|||
|
||||
static inline void qdisc_run(struct Qdisc *q)
|
||||
{
|
||||
if (!test_and_set_bit(__QDISC_STATE_RUNNING, &q->state))
|
||||
if (qdisc_run_begin(q))
|
||||
__qdisc_run(q);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue