Skip to content

Commit

Permalink
net_sched: long word align struct qdisc_skb_cb data
Browse files Browse the repository at this point in the history
netem_skb_cb() does :

return (struct netem_skb_cb *)qdisc_skb_cb(skb)->data;

Unfortunatly struct qdisc_skb_cb data is not long word aligned, so
access to psched_time_t time_to_send uses a non aligned access.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Feb 23, 2011
1 parent d3bd1b4 commit 9e924cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/sch_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ struct tcf_proto {

struct qdisc_skb_cb {
unsigned int pkt_len;
char data[];
long data[];
};

static inline int qdisc_qlen(struct Qdisc *q)
Expand Down

0 comments on commit 9e924cf

Please sign in to comment.