diff options
author | Eric Dumazet <edumazet@google.com> | 2016-06-06 12:37:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-07 19:37:13 -0400 |
commit | f9eb8aea2a1e12fc2f584d1627deeb957435a801 (patch) | |
tree | bc3cf06664da45bc0e6ce9b5165dba534ed11751 /include/linux/netdevice.h | |
parent | 64151ae36ed93c45654069c8aff2a7f0125075e8 (diff) |
net_sched: transform qdisc running bit into a seqcount
Instead of using a single bit (__QDISC___STATE_RUNNING)
in sch->__state, use a seqcount.
This adds lockdep support, but more importantly it will allow us
to sample qdisc/class statistics without having to grab qdisc root lock.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index fa6df2699532..59d7e06d88d5 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1862,6 +1862,7 @@ struct net_device { | |||
1862 | #endif | 1862 | #endif |
1863 | struct phy_device *phydev; | 1863 | struct phy_device *phydev; |
1864 | struct lock_class_key *qdisc_tx_busylock; | 1864 | struct lock_class_key *qdisc_tx_busylock; |
1865 | struct lock_class_key *qdisc_running_key; | ||
1865 | bool proto_down; | 1866 | bool proto_down; |
1866 | }; | 1867 | }; |
1867 | #define to_net_dev(d) container_of(d, struct net_device, dev) | 1868 | #define to_net_dev(d) container_of(d, struct net_device, dev) |