summaryrefslogtreecommitdiffstats
path: root/include/net/sch_generic.h
diff options
context:
space:
mode:
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-02-24 00:47:05 +0000
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-02-24 00:47:05 +0000
commit8aaaaf3cbfb96a9f74c5775c71067a9290244ec7 (patch)
tree67349c6a69740150b67c4c39de49cde9b3648aa5 /include/net/sch_generic.h
parent94f61a7666224ab307e387ff0d146055ae77e6ab (diff)
parente29206381a1436e0f47c0f5b9a23159a03c57715 (diff)
downloadtalos-obmc-linux-8aaaaf3cbfb96a9f74c5775c71067a9290244ec7.tar.gz
talos-obmc-linux-8aaaaf3cbfb96a9f74c5775c71067a9290244ec7.zip
Merge branch 'fbdev-for-linus' into fbdev-next
Diffstat (limited to 'include/net/sch_generic.h')
-rw-r--r--include/net/sch_generic.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h
index f6bb08b73ca4..55ce96b53b09 100644
--- a/include/net/sch_generic.h
+++ b/include/net/sch_generic.h
@@ -220,9 +220,16 @@ struct tcf_proto {
struct qdisc_skb_cb {
unsigned int pkt_len;
- long data[];
+ unsigned char data[24];
};
+static inline void qdisc_cb_private_validate(const struct sk_buff *skb, int sz)
+{
+ struct qdisc_skb_cb *qcb;
+ BUILD_BUG_ON(sizeof(skb->cb) < sizeof(unsigned int) + sz);
+ BUILD_BUG_ON(sizeof(qcb->data) < sz);
+}
+
static inline int qdisc_qlen(const struct Qdisc *q)
{
return q->q.qlen;
OpenPOWER on IntegriCloud