commit | 7ba0537c2b534149be288f851900b4cf5aacde48 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Sat May 02 19:54:19 2020 -0700 |
committer | David S. Miller <davem@davemloft.net> | Sun May 03 15:50:31 2020 -0700 |
tree | 4f8a6cce1cb4f0236b5d7dd15e17948f5abffb1d | |
parent | dde0a648fc00e2156a3358600c5fbfb3f53256ac [diff] |
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>