mirror of
https://github.com/breeze303/nss-packages.git
synced 2025-12-16 16:57:29 +00:00
Fix invalid patch
This commit is contained in:
parent
49611b5e88
commit
4c5c6479bd
@ -29,39 +29,23 @@
|
|||||||
stats64 = per_cpu_ptr(dev->stats64, cpu);
|
stats64 = per_cpu_ptr(dev->stats64, cpu);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
-#if (LINUX_VERSION_CODE < KERNEL_VERSION( 6,6,0 ))
|
+#if (LINUX_VERSION_CODE < KERNEL_VERSION( 6,6,0 ))
|
||||||
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(6,6,0))
|
|
||||||
start = u64_stats_fetch_begin_irq(&stats64->syncp);
|
start = u64_stats_fetch_begin_irq(&stats64->syncp);
|
||||||
#else
|
+#else
|
||||||
start = u64_stats_fetch_begin(&stats64->syncp);
|
+ start = u64_stats_fetch_begin(&stats64->syncp);
|
||||||
#endif
|
+#endif
|
||||||
- rx_packets = stats64->rx_packets;
|
rx_packets = stats64->rx_packets;
|
||||||
- rx_bytes = stats64->rx_bytes;
|
rx_bytes = stats64->rx_bytes;
|
||||||
- tx_packets = stats64->tx_packets;
|
tx_packets = stats64->tx_packets;
|
||||||
- tx_bytes = stats64->tx_bytes;
|
tx_bytes = stats64->tx_bytes;
|
||||||
-#if (LINUX_VERSION_CODE < KERNEL_VERSION( 6,6,0 ))
|
+#if (LINUX_VERSION_CODE < KERNEL_VERSION( 6,6,0 ))
|
||||||
+ rx_packets = u64_stats_read(&stats64->rx_packets);
|
|
||||||
+ rx_bytes = u64_stats_read(&stats64->rx_bytes);
|
|
||||||
+ tx_packets = u64_stats_read(&stats64->tx_packets);
|
|
||||||
+ tx_bytes = u64_stats_read(&stats64->tx_bytes);
|
|
||||||
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(6,6,0))
|
|
||||||
} while (u64_stats_fetch_retry_irq(&stats64->syncp, start));
|
} while (u64_stats_fetch_retry_irq(&stats64->syncp, start));
|
||||||
#else
|
+#else
|
||||||
} while (u64_stats_fetch_retry(&stats64->syncp, start));
|
+ } while (u64_stats_fetch_retry(&stats64->syncp, start));
|
||||||
#endif
|
+#endif
|
||||||
|
|
||||||
- stats->rx_packets += u64_stats_read(&rx_packets);
|
stats->rx_packets += u64_stats_read(&rx_packets);
|
||||||
- stats->rx_bytes += u64_stats_read(&rx_bytes);
|
stats->rx_bytes += u64_stats_read(&rx_bytes);
|
||||||
- stats->tx_packets += u64_stats_read(&tx_packets);
|
|
||||||
- stats->tx_bytes += u64_stats_read(&tx_bytes);
|
|
||||||
-#endif
|
|
||||||
+ stats->rx_packets += rx_packets;
|
|
||||||
+ stats->rx_bytes += rx_bytes;
|
|
||||||
+ stats->tx_packets += tx_packets;
|
|
||||||
+ stats->tx_bytes += tx_bytes;
|
|
||||||
}
|
|
||||||
|
|
||||||
return stats;
|
|
||||||
@@ -2588,7 +2585,6 @@ static void qmap_qmi_wwan_disconnect(str
|
@@ -2588,7 +2585,6 @@ static void qmap_qmi_wwan_disconnect(str
|
||||||
static struct usb_driver qmi_wwan_driver = {
|
static struct usb_driver qmi_wwan_driver = {
|
||||||
.name = "qmi_wwan_q",
|
.name = "qmi_wwan_q",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user