net_sched: sch_fq: change fq_flow size/layout
authorEric Dumazet <edumazet@google.com>
Sun, 3 May 2020 02:54:19 +0000 (19:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 May 2020 22:50:31 +0000 (15:50 -0700)
commit7ba0537c2b534149be288f851900b4cf5aacde48
tree4f8a6cce1cb4f0236b5d7dd15e17948f5abffb1d
parentdde0a648fc00e2156a3358600c5fbfb3f53256ac
net_sched: sch_fq: change fq_flow size/layout

sizeof(struct fq_flow) is 112 bytes on 64bit arches.

This means that half of them use two cache lines, but 50% use
three cache lines.

This patch adds cache line alignment, and makes sure that only
the first cache line is touched by fq_enqueue(), which is more
expensive that fq_dequeue() in general.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_fq.c