Eric Dumazet 501e7ef569 net-rfs: fix false sharing accessing sd->input_queue_head
sd->input_queue_head is incremented for each processed packet
in process_backlog(), and read from other cpus performing
Out Of Order avoidance in get_rps_cpu()

Moving this field in a separate cache line keeps it mostly
hot for the cpu in process_backlog(), as other cpus will
only read it.

In a stress test, process_backlog() was consuming 6.80 % of cpu cycles,
and the patch reduced the cost to 0.65 %

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-04-27 21:55:45 -04:00
..
2016-03-04 23:50:27 -06:00
2016-03-21 14:35:52 -07:00
2016-03-24 19:57:15 -07:00
2016-04-25 15:59:16 -04:00
2016-02-11 10:07:18 -05:00
2016-03-15 16:55:16 -07:00
2016-03-20 09:34:02 -06:00
2016-03-11 21:19:16 +08:00
2016-02-16 13:04:58 -05:00
2016-03-26 16:14:37 -04:00
2016-02-26 13:28:35 +02:00
2016-01-15 17:56:32 -08:00
2016-04-06 13:18:19 +02:00
2016-03-11 14:58:58 -05:00
2016-02-11 09:59:22 -05:00
2016-03-22 15:36:02 -07:00
2016-03-16 17:45:56 -07:00
2016-03-17 22:13:41 -07:00
2016-01-28 14:19:12 -08:00
2016-03-25 16:37:42 -07:00
2016-03-22 15:36:02 -07:00
2016-02-16 13:04:58 -05:00
2016-03-22 15:36:02 -07:00
2016-01-15 17:56:32 -08:00
2016-03-09 15:43:42 -08:00
2016-01-15 17:56:32 -08:00
2016-03-17 13:47:50 -07:00
2016-03-05 12:24:06 -08:00
2016-03-17 14:57:16 -04:00
2016-02-08 15:20:01 -05:00
2016-04-25 15:09:11 -04:00
2016-02-16 13:04:58 -05:00
2016-03-19 15:15:07 -07:00
2016-02-11 18:35:48 -08:00
2016-02-11 18:35:48 -08:00
2016-03-14 15:43:11 -04:00
2016-02-10 01:11:54 +01:00
2016-02-16 13:04:58 -05:00
2016-03-17 15:09:34 -07:00
2016-03-22 15:36:02 -07:00
2016-03-22 15:36:02 -07:00
2016-03-22 15:36:02 -07:00
2016-03-25 16:37:42 -07:00
2016-03-25 16:37:42 -07:00
2016-03-25 16:37:42 -07:00
2016-03-17 15:09:34 -07:00
2016-01-28 14:13:44 -08:00
2016-04-07 16:53:29 -04:00
2016-02-22 16:10:08 -07:00
2016-01-14 16:00:49 -08:00