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>
This commit is contained in:
@@ -130,8 +130,7 @@ struct netem_skb_cb {
|
||||
|
||||
static inline struct netem_skb_cb *netem_skb_cb(struct sk_buff *skb)
|
||||
{
|
||||
BUILD_BUG_ON(sizeof(skb->cb) <
|
||||
sizeof(struct qdisc_skb_cb) + sizeof(struct netem_skb_cb));
|
||||
qdisc_cb_private_validate(skb, sizeof(struct netem_skb_cb));
|
||||
return (struct netem_skb_cb *)qdisc_skb_cb(skb)->data;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user