projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3bd1b4
)
net_sched: long word align struct qdisc_skb_cb data
author
Eric Dumazet
<eric.dumazet@gmail.com>
Wed, 23 Feb 2011 07:05:07 +0000
(07:05 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 23 Feb 2011 22:17:02 +0000
(14:17 -0800)
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>
include/net/sch_generic.h
patch
|
blob
|
blame
|
history
diff --git
a/include/net/sch_generic.h
b/include/net/sch_generic.h
index 160a407c19632a2220fa6fc5efc120086fd076ee..04f8556313d5f52c37ff9722ab7c1f38a2f955af 100644
(file)
--- a/
include/net/sch_generic.h
+++ b/
include/net/sch_generic.h
@@
-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)