mirror_ubuntu-kernels/drivers/net/ethernet/fungible/funeth
Sebastian Andrzej Siewior 278d3ba615 net: Use u64_stats_fetch_begin_irq() for stats fetch.
On 32bit-UP u64_stats_fetch_begin() disables only preemption. If the
reader is in preemptible context and the writer side
(u64_stats_update_begin*()) runs in an interrupt context (IRQ or
softirq) then the writer can update the stats during the read operation.
This update remains undetected.

Use u64_stats_fetch_begin_irq() to ensure the stats fetch on 32bit-UP
are not interrupted by a writer. 32bit-SMP remains unaffected by this
change.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Catherine Sullivan <csully@google.com>
Cc: David Awogbemila <awogbemila@google.com>
Cc: Dimitris Michailidis <dmichail@fungible.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Jeroen de Borst <jeroendb@google.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: Simon Horman <simon.horman@corigine.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-wireless@vger.kernel.org
Cc: netdev@vger.kernel.org
Cc: oss-drivers@corigine.com
Cc: stable@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-08-29 13:02:27 +01:00
..
fun_port.h
funeth_devlink.c net/funeth: simplify the return expression of fun_dl_info_get() 2022-04-30 13:56:02 +01:00
funeth_devlink.h net/funeth: devlink support 2022-02-27 10:51:23 +00:00
funeth_ethtool.c net/funeth: Support for ethtool -m 2022-06-28 21:26:26 -07:00
funeth_ktls.c net/funeth: add kTLS TX control part 2022-02-27 10:51:23 +00:00
funeth_ktls.h net/fungible: fix errors when CONFIG_TLS_DEVICE=n 2022-03-09 20:01:19 -08:00
funeth_main.c net/funeth: Support UDP segmentation offload 2022-06-24 16:21:05 -07:00
funeth_rx.c net/funeth: Fix fun_xdp_tx() and XDP packet reclaim 2022-07-28 12:54:10 +02:00
funeth_trace.h net/funeth: add the data path 2022-02-27 10:51:23 +00:00
funeth_tx.c net/funeth: Tx handling of XDP with fragments. 2022-08-01 12:38:57 +01:00
funeth_txrx.h net: Use u64_stats_fetch_begin_irq() for stats fetch. 2022-08-29 13:02:27 +01:00
funeth.h
Kconfig net/fungible: Kconfig, Makefiles, and MAINTAINERS 2022-02-27 10:51:23 +00:00
Makefile net/fungible: Kconfig, Makefiles, and MAINTAINERS 2022-02-27 10:51:23 +00:00