]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: shrink struct qdisc_skb_cb to 28 bytes
authorEric Dumazet <edumazet@google.com>
Thu, 18 Sep 2014 15:02:05 +0000 (08:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Sep 2014 18:21:47 +0000 (14:21 -0400)
commit1149fdf9a6077c1cc3ac6e2993d9678557578f6a
tree799321753c9f5ac9358c708bced556df7e309772
parentb2e80dfbdf4a8a1c349a22302633e08da2ef8d2c
net: sched: shrink struct qdisc_skb_cb to 28 bytes

We cannot make struct qdisc_skb_cb bigger without impacting IPoIB,
or increasing skb->cb[] size.

Commit c97e21826f8b ("flow_keys: Record IP layer protocol in
skb_flow_dissect()") broke IPoIB.

Only current offender is sch_choke, and this one do not need an
absolutely precise flow key.

If we store 17 bytes of flow key, its more than enough. (Its the actual
size of flow_keys if it was a packed structure, but we might add new
fields at the end of it later)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: c97e21826f8b ("flow_keys: Record IP layer protocol in skb_flow_dissect()")
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h
net/sched/sch_choke.c