Well, I seem to have "hacked" something working based on .41. I did so by downgrading the release/src/router/shared/misc.c:netdev_calc function to the version from .35_4. I monitored the 24h page for 15 minutes so far and the chart makes sense now. Tested on RT-N66U.
Should work for .42 as well, but have not tried that yet.
Disclaimer: I have no idea what I could have broken by making this change.
RMerlin, I could use your help/suggestions here. Below are the first two log messages from release/src/router/rstats/rstats.c:calc. The first set is for a working use case (.41 with a downgraded netdev_calc) and the second one is for the original .41. Notice that the ppp0 interface is handled differently: it is "ignored" in the first case (working) and is processed in the second case (not working).
I set up my router after a factory reset by going through the wizard, which detects PPPoE and I am wondering if not everything (wan interface, or something like that) is set properly in nvram and that confuses netdev_calc later on? Might also explain why it works for non-PPPoE users as well as why you cannot reproduce the issue if you do not start from a factory reset and the wizard.
Any thoughts that could help with pin-pointing the real issue?
>>>>> .41 with release/src/router/shared/misc.c:netdev_calc downgraded to .35_4
=== lo: 4570 27 0 0 0 0 0 0 4570 27 0 0 0 0 0 0
=== eth0: 1731429 3412 0 0 0 0 0 0 562210 3325 0 0 0 0 0 0
=== eth1: 13141 31 0 0 0 211 0 0 43195 426 2 0 0 0 0 0
>>> eth1, WIRELESS0, 13141, 43195, , 0, 0 <<<
=== eth2: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
>>> eth2, WIRELESS1, 0, 0, , 0, 0 <<<
=== vlan1: 175115 1637 0 0 0 0 0 7 272334 1297 0 0 0 0 0 0
>>> vlan1, WIRED, 175115, 272334, INTERNET, 1556314, 289876 <<<
=== br0: 350415 3013 0 0 0 0 0 165 1654949 2644 0 0 0 0 0 0
>>> br0, BRIDGE, 350415, 1654949, , 1556314, 289876 <<<
=== wl0.1: 185817 1332 0 0 0 211 0 0 1452813 1797 0 0 0 0 0 0
>>> wl0.1, WIRELESS0.0, 185817, 1452813, , 1556314, 289876 <<<
=== ppp0: 1479613 1749 0 0 0 0 0 0 244732 1995 0 0 0 0 0 0
>>>>> .41 as is
=== lo: 7338 43 0 0 0 0 0 0 7338 43 0 0 0 0 0 0
=== eth0: 716662 4750 0 0 0 0 0 0 771159 4470 0 0 0 0 0 0
=== eth1: 14930 34 0 0 0 579 0 0 59063 578 2 0 0 0 0 0
>>> eth1, WIRELESS0, 14930, 59063, , 0, 0 <<<
=== eth2: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
>>> eth2, WIRELESS1, 0, 0, , 0, 0 <<<
=== vlan1: 416036 3803 0 0 0 0 0 12 476991 2262 0 0 0 0 0 0
>>> vlan1, WIRED, 416036, 476991, INTERNET, 300626, 294168 <<<
=== br0: 441664 4093 0 0 0 0 0 309 515478 2375 0 0 0 0 0 0
>>> br0, BRIDGE, 441664, 515478, , 300626, 294168 <<<
=== wl0.1: 26460 236 0 0 0 579 0 0 121275 734 0 0 0 0 0 0
>>> wl0.1, WIRELESS0.0, 26460, 121275, , 300626, 294168 <<<
=== ppp0: 205559 897 0 0 0 0 0 0 244878 2151 0 0 0 0 0 0
>>> ppp0, INTERNET, 205559, 244878, , 300626, 294168 <<<