diff options
author | David S. Miller <davem@davemloft.net> | 2012-02-06 21:14:37 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-09 19:50:34 +0100 |
commit | 16bda13d90c8d5da243e2cfa1677e62ecce26860 (patch) | |
tree | d10c9e0f9b043170c5bba4599ab1dc006d2a76eb /net/sched/sch_sfb.c | |
parent | ixgbe: ethtool: stats user buffer overrun (diff) | |
download | linux-16bda13d90c8d5da243e2cfa1677e62ecce26860.tar.xz linux-16bda13d90c8d5da243e2cfa1677e62ecce26860.zip |
net: Make qdisc_skb_cb upper size bound explicit.
Just like skb->cb[], so that qdisc_skb_cb can be encapsulated inside
of other data structures.
This is intended to be used by IPoIB so that it can remember
addressing information stored at hard_header_ops->create() time that
it can fetch when the packet gets to the transmit routine.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_sfb.c')
-rw-r--r-- | net/sched/sch_sfb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sched/sch_sfb.c b/net/sched/sch_sfb.c index 96e42cae4c7a..d7eea99333e9 100644 --- a/net/sched/sch_sfb.c +++ b/net/sched/sch_sfb.c @@ -94,8 +94,7 @@ struct sfb_skb_cb { static inline struct sfb_skb_cb *sfb_skb_cb(const struct sk_buff *skb) { - BUILD_BUG_ON(sizeof(skb->cb) < - sizeof(struct qdisc_skb_cb) + sizeof(struct sfb_skb_cb)); + qdisc_cb_private_validate(skb, sizeof(struct sfb_skb_cb)); return (struct sfb_skb_cb *)qdisc_skb_cb(skb)->data; } |