mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-09 07:52:07 +08:00
23 lines
794 B
Diff
23 lines
794 B
Diff
![]() |
--- a/net/ipv6/ip6_tunnel.c
|
||
|
+++ b/net/ipv6/ip6_tunnel.c
|
||
|
@@ -2418,7 +2418,7 @@ nla_put_failure:
|
||
|
*/
|
||
|
void ip6_update_offload_stats(struct net_device *dev, void *ptr)
|
||
|
{
|
||
|
- struct pcpu_sw_netstats *tstats = per_cpu_ptr(dev->tstats, 0);
|
||
|
+ struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats);
|
||
|
const struct pcpu_sw_netstats *offload_stats =
|
||
|
(struct pcpu_sw_netstats *)ptr;
|
||
|
|
||
|
--- a/net/ipv6/sit.c
|
||
|
+++ b/net/ipv6/sit.c
|
||
|
@@ -1737,7 +1737,7 @@ nla_put_failure:
|
||
|
/* QCA NSS Clients Support - Start */
|
||
|
void ipip6_update_offload_stats(struct net_device *dev, void *ptr)
|
||
|
{
|
||
|
- struct pcpu_sw_netstats *tstats = per_cpu_ptr(dev->tstats, 0);
|
||
|
+ struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats);
|
||
|
const struct pcpu_sw_netstats *offload_stats =
|
||
|
(struct pcpu_sw_netstats *)ptr;
|
||
|
|