Or Gerlitz
fed06ee89b
net/mlx5e: Disable preemption when doing TC statistics upcall
...
When called by HW offloading drivers, the TC action (e.g
net/sched/act_mirred.c) code uses this_cpu logic, e.g
_bstats_cpu_update(this_cpu_ptr(a->cpu_bstats), bytes, packets)
per the kernel documention, preemption should be disabled, add that.
Before the fix, when running with CONFIG_PREEMPT set, we get a
BUG: using smp_processor_id() in preemptible [00000000] code: tc/3793
asserion from the TC action (mirred) stats_update callback.
Fixes: aad7e08d39 ('net/mlx5e: Hardware offloaded flower filter statistics support')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-02-14 11:56:01 -05:00
..
2017-02-06 19:36:04 -08:00
2017-01-06 15:45:32 -05:00
2016-12-24 11:46:01 -08:00
2017-01-11 09:27:30 +01:00
2017-02-06 14:52:10 +01:00
2017-01-17 14:23:44 +02:00
2017-01-23 13:27:42 -05:00
2016-12-16 10:24:44 -08:00
2016-12-25 10:47:44 +01:00
2016-12-24 11:46:01 -08:00
2017-02-08 18:06:03 -08:00
2017-01-21 18:46:45 -08:00
2017-01-17 10:08:38 +01:00
2017-02-06 14:52:10 +01:00
2016-12-24 11:46:01 -08:00
2017-02-06 14:16:23 -08:00
2016-12-18 15:49:10 -08:00
2017-01-03 00:21:45 +01:00
2016-12-24 11:46:01 -08:00
2017-01-25 15:35:11 +05:30
2016-12-24 11:46:01 -08:00
2017-01-11 09:11:39 +01:00
2017-02-01 21:17:49 +01:00
2016-11-29 15:51:49 -06:00
2017-01-19 09:57:20 +01:00
2017-02-10 10:14:24 +10:00
2017-01-31 12:59:33 +01:00
2017-01-31 10:59:48 +01:00
2017-01-02 10:15:28 -08:00
2016-12-25 10:47:44 +01:00
2017-02-09 17:13:01 +01:00
2016-12-24 11:46:01 -08:00
2016-12-13 10:41:53 -08:00
2017-01-22 13:35:40 +00:00
2017-02-08 12:28:30 -05:00
2017-02-07 14:31:45 -08:00
2017-01-06 10:49:36 -08:00
2016-12-25 14:30:04 -08:00
2017-01-27 11:27:34 -05:00
2016-12-25 10:47:44 +01:00
2016-12-24 11:46:01 -08:00
2016-12-13 12:11:01 -08:00
2016-12-24 11:46:01 -08:00
2016-12-25 17:21:22 +01:00
2017-02-03 10:26:14 -05:00
2017-02-06 14:37:55 -08:00
2016-11-30 14:58:00 +01:00
2017-01-24 16:26:14 -08:00
2016-12-24 11:46:01 -08:00
2016-12-19 08:16:26 -08:00
2017-01-11 07:43:57 +01:00
2017-02-08 12:22:27 +01:00
2017-01-04 20:50:18 +01:00
2017-02-14 11:56:01 -05:00
2016-12-23 16:11:07 -05:00
2016-12-24 11:46:01 -08:00
2017-02-04 14:47:31 -08:00
2017-01-26 17:49:14 +02:00
2017-01-04 18:22:47 +01:00
2016-12-15 12:46:48 -08:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2017-01-28 21:54:21 +01:00
2017-02-03 08:53:51 -06:00
2016-12-12 18:55:06 -08:00
2016-12-25 10:47:44 +01:00
2016-12-14 10:49:33 -08:00
2017-01-30 15:53:57 +01:00
2017-01-22 12:47:06 +02:00
2016-12-24 11:46:01 -08:00
2016-12-25 17:21:22 +01:00
2016-11-30 23:41:33 +01:00
2016-12-12 19:56:15 -08:00
2016-12-15 11:45:13 -08:00
2017-02-03 13:46:38 -08:00
2016-12-30 03:26:31 -08:00
2016-12-15 16:03:25 -08:00
2016-12-30 03:12:11 -08:00
2017-01-26 23:03:21 +01:00
2017-01-19 23:46:34 +02:00
2016-12-24 11:46:01 -08:00
2017-02-08 10:51:24 -08:00
2016-12-12 18:55:08 -08:00
2017-01-12 13:37:49 -08:00
2017-01-20 12:25:11 -08:00
2017-02-08 15:41:43 -08:00
2017-02-08 08:25:39 -08:00
2017-01-25 09:51:08 +08:00
2016-12-13 12:11:01 -08:00
2017-01-11 09:22:54 +01:00
2016-12-10 14:57:58 +01:00
2017-02-03 22:19:15 +01:00
2017-02-07 11:48:16 -07:00
2017-02-03 23:38:57 +02:00
2017-01-24 16:26:14 -08:00
2017-02-03 23:38:50 +02:00
2017-01-11 10:42:16 +01:00
2016-12-24 11:27:45 -08:00
2017-01-27 12:17:07 -08:00
2016-12-24 11:46:01 -08:00