summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@nuts.ninka.net>2003-04-19 10:57:31 -0700
committerDavid S. Miller <davem@nuts.ninka.net>2003-04-19 10:57:31 -0700
commit3f0ccc089ce0c39aee582b0e94a4eeac7c08fec4 (patch)
treede4138ee3f6cfa6560e72217281803ac1b774b5f /include
parent8a7cd77d1eb8f27cec0a269037b94d869dfc4cd0 (diff)
[PKT_SCHED]: Proper module refcounting for packet schedulers.
Diffstat (limited to 'include')
-rw-r--r--include/net/pkt_sched.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h
index 313bf3b7b212..eca2baddbc22 100644
--- a/include/net/pkt_sched.h
+++ b/include/net/pkt_sched.h
@@ -49,6 +49,8 @@ struct Qdisc_class_ops
int (*dump)(struct Qdisc *, unsigned long, struct sk_buff *skb, struct tcmsg*);
};
+struct module;
+
struct Qdisc_ops
{
struct Qdisc_ops *next;
@@ -67,6 +69,8 @@ struct Qdisc_ops
int (*change)(struct Qdisc *, struct rtattr *arg);
int (*dump)(struct Qdisc *, struct sk_buff *);
+
+ struct module *owner;
};
extern rwlock_t qdisc_tree_lock;