summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDavid S. Miller <davem@nuts.davemloft.net>2004-07-05 06:39:01 -0700
committerDavid S. Miller <davem@nuts.davemloft.net>2004-07-05 06:39:01 -0700
commit00e11c5f00dbfe2a65f796da881f9bb5b4ce5cbf (patch)
treedd43b2a475cee98fab9babda6e1c460bf15c5acd /include/linux
parent18c9628e51ae509054a69a0feb5b834be0f9324d (diff)
[PKT_SCHED]: Do not embed spinlock in tc_stats structure.
This makes it not get sized/copied around to/from userspace correctly. The real crux of the problem comes from the rtnetlink attribute copying line which read: RTA_PUT(skb, TCA_STATS, (char*)&st->lock - (char*)st, st); which is not necessarily sizeof(struct tc_stats) due to alignment issues.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pkt_sched.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/pkt_sched.h b/include/linux/pkt_sched.h
index ef350df8e560..c96c174d32d9 100644
--- a/include/linux/pkt_sched.h
+++ b/include/linux/pkt_sched.h
@@ -38,9 +38,6 @@ struct tc_stats
__u32 pps; /* Current flow packet rate */
__u32 qlen;
__u32 backlog;
-#ifdef __KERNEL__
- spinlock_t *lock;
-#endif
};
struct tc_estimator