lede/target/linux/ipq806x/patches-5.4/999-03e-qca-nss-pppoe-offload-support.patch
lovehackintosh 37c47e967a
kernel: bump to 5.4.229, 5.10.164, 5.15.89, 6.1.7 (#10785)
* kernel: bump 5.15 to 5.15.89

* kernel: bump 6.1 to 6.1.7

* kernel: bump 5.4 to 5.4.229

* kernel: bump 5.10 to 5.10.164
2023-01-19 14:03:33 +08:00

35 lines
1.1 KiB
Diff

From 0ebfa720350a5fde3efb45872f867ac30074a43c Mon Sep 17 00:00:00 2001
From: Murat Sezgin <msezgin@codeaurora.org>
Date: Tue, 13 Oct 2015 22:40:25 -0700
Subject: ppp: Update the last_recv and last_xmit times.
These need to be updated for accelerated connections, so that
on demand mode will recognize the active traffic.
Change-Id: I3c0ee4e8f4c3bc4c7ce221e6109bfd82046d11b4
Signed-off-by: Murat Sezgin <msezgin@codeaurora.org>
---
drivers/net/ppp/ppp_generic.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/drivers/net/ppp/ppp_generic.c
+++ b/drivers/net/ppp/ppp_generic.c
@@ -3397,6 +3397,8 @@ void ppp_update_stats(struct net_device
ppp->stats64.tx_bytes += tx_bytes;
ppp->dev->stats.tx_errors += tx_errors;
ppp->dev->stats.tx_dropped += tx_dropped;
+ if (tx_packets)
+ ppp->last_xmit = jiffies;
ppp_xmit_unlock(ppp);
ppp_recv_lock(ppp);
@@ -3404,6 +3406,8 @@ void ppp_update_stats(struct net_device
ppp->stats64.rx_bytes += rx_bytes;
ppp->dev->stats.rx_errors += rx_errors;
ppp->dev->stats.rx_dropped += rx_dropped;
+ if (rx_packets)
+ ppp->last_recv = jiffies;
ppp_recv_unlock(ppp);
}