diff options
author | Or Gerlitz | 2017-02-12 10:21:31 +0100 |
---|---|---|
committer | David S. Miller | 2017-02-14 17:56:01 +0100 |
commit | fed06ee89b78d3af32e235e0e89ad0d946fcb95d (patch) | |
tree | ea5cdbd80e1b11382fc2b557aa262dcccfbb35ba /net/ipv6/ip6_output.c | |
parent | Merge branch 'rhashtable-allocation-failure-during-insertion' (diff) | |
download | kernel-qcow2-linux-fed06ee89b78d3af32e235e0e89ad0d946fcb95d.tar.gz kernel-qcow2-linux-fed06ee89b78d3af32e235e0e89ad0d946fcb95d.tar.xz kernel-qcow2-linux-fed06ee89b78d3af32e235e0e89ad0d946fcb95d.zip |
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: aad7e08d39bd ('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>
Diffstat (limited to 'net/ipv6/ip6_output.c')
0 files changed, 0 insertions, 0 deletions