projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tools headers UAPI s390: Sync ptrace.h kernel headers
[linux-2.6-microblaze.git]
/
include
/
net
/
pkt_sched.h
diff --git
a/include/net/pkt_sched.h
b/include/net/pkt_sched.h
index
4ed32e6
..
15b1b30
100644
(file)
--- a/
include/net/pkt_sched.h
+++ b/
include/net/pkt_sched.h
@@
-24,6
+24,11
@@
static inline void *qdisc_priv(struct Qdisc *q)
return &q->privdata;
}
+static inline struct Qdisc *qdisc_from_priv(void *priv)
+{
+ return container_of(priv, struct Qdisc, privdata);
+}
+
/*
Timer resolution MUST BE < 10% of min_schedulable_packet_size/bandwidth