Commit Graph

2410 Commits

Author SHA1 Message Date
Herbert Wolverson
1ea983908e Remove unused imports 2024-07-16 09:31:43 -05:00
Herbert Wolverson
5356f884b9 More missing docs filled out. 2024-07-16 09:30:38 -05:00
Herbert Wolverson
b91bc23523 Fix missing docs for AtomicDownUp, add a simple unit test. 2024-07-16 09:22:25 -05:00
Herbert Wolverson
31823d13fa Lock the version of PyO3 because of API changes making the newer version a really big implementation task. 2024-07-16 09:07:48 -05:00
Herbert Wolverson
1f2fbba769 Restore one missing dependency. 2024-07-16 08:30:00 -05:00
Herbert Wolverson
5a9f6e69dd Attempt tp add the mold linker to the CI workflow 2024-07-16 08:19:33 -05:00
Herbert Wolverson
174fd8232d The mold linker is working well for me locally now. Added incremental build to release and optimize procmacro builds. Pushing for CI test and Payne. 2024-07-15 16:25:29 -05:00
Herbert Wolverson
8568b78be0 Revert mold - it doesn't help much and causes CI problems. 2024-07-15 16:11:21 -05:00
Herbert Wolverson
2caec1476f Combine dependencies using the new workspace dependencies system. 2024-07-15 16:07:39 -05:00
Herbert Wolverson
e8f2ed3721 Start combining dependencies into workspace dependencies (using anyhow as the test victim), for faster shared compilation times. 2024-07-15 15:29:11 -05:00
Herbert Wolverson
f7a3ec38c6 Enable mold faster linker. 2024-07-15 15:26:05 -05:00
Herbert Wolverson
161fce4c38 Merge branch 'develop' into user_interface_2 2024-07-15 15:14:03 -05:00
Herbert "TheBracket
501fdf2ab2
Quantum fixing (#525)
* Experimentation showed that setting up `mq` doesn't seem to provide a valid `r2q` to HTB queues, yielding many warnings on HTB queue setup.

I'm not sure that 10 is the correct value, or that the formula is exactly right - but this patch adds an explicit quantum, following the specified (bytes per second / r2q) formula - with r2q set to a constant of 10. It eliminated the error messages on my test system. Committed for further testing.

* Comment out line printing the calculated quantum.

* Add a command to provide Cake with the actual upstream bandwidth (limited by HTB) for capacity estimation. May or may not actually do anything beneficial - this is a test.

* Remove Cake specified bandwidth limit.
2024-07-15 15:12:26 -05:00
Herbert Wolverson
907482bdd5 Remove needless spawn_blocking call. 2024-07-15 10:10:18 -05:00
Herbert Wolverson
18d67ad37b Remove repeated "failed to parse" messages. 2024-07-14 21:21:08 -05:00
Herbert Wolverson
9c46899962 Make IP addresses smaller on the circuit page. 2024-07-13 10:39:39 -05:00
Herbert Wolverson
3eae33f118 Visual improvements for circuits page: colorize the ping time/loss, label the tabs, add a flow counter badge. 2024-07-13 10:37:53 -05:00
Herbert Wolverson
9c5b2e8c8e Only show flows on the Sankey that have been active in the last second cycle. 2024-07-13 10:24:34 -05:00
Herbert Wolverson
5d705894f9 This time filtering by circuit! 2024-07-13 09:59:31 -05:00
Herbert Wolverson
6ced88d554 Flow Sankey is working well enough to push to a test environment with actual traffic. 2024-07-13 09:34:38 -05:00
Herbert Wolverson
c8c3ce1568 Work in progress: there's now a per-circuit flows ticker 2024-07-12 15:21:06 -05:00
Herbert Wolverson
0e6b3dabe4 This *should* fix RTT display on circuits. 2024-07-12 13:45:34 -05:00
Herbert Wolverson
f70907cca1 Shaped devices page now links devices and circuits to the circuits page. 2024-07-12 13:13:00 -05:00
Herbert Wolverson
303fd07164 Shaped devices page now links devices and circuits to the circuits page. 2024-07-12 13:12:36 -05:00
Herbert Wolverson
26270203cb Circuit system has a working ping tracker built-in. 2024-07-12 13:04:55 -05:00
Herbert Wolverson
c8308c3856 WIP: Half way to a built-in pinging system. 2024-07-12 12:50:23 -05:00
Herbert Wolverson
7dab0eea24 The beginnings of a tab system for circuits 2024-07-12 11:44:44 -05:00
Herbert Wolverson
83318b19f2 A few links to circuits populated. 2024-07-12 11:08:30 -05:00
Herbert Wolverson
74846f053f Basic (minimal) circuit display is working. 2024-07-12 10:59:17 -05:00
Herbert Wolverson
f40427e88e WIP checkin: the "private channel" system is operational. 2024-07-12 09:01:00 -05:00
Herbert Wolverson
4d40bf41fa WIP checkin - starting to get the circuit page together. 2024-07-11 16:20:53 -05:00
Herbert Wolverson
4e53a0e32c Tweak formatting on top 10 downloaders, and add a placeholder link to the circuit page. 2024-07-11 14:20:34 -05:00
Herbert Wolverson
1b5879985e Pin the edit button to the top. 2024-07-11 14:03:36 -05:00
Herbert Wolverson
57cacf0da9 Define bindings to work around the use of onclick with the esbuild mechanism. We're about as functional as we were before with configuration now. 2024-07-11 13:49:36 -05:00
Herbert Wolverson
94e864025c Direct port of the shaped devices and network editors. Not fully functional yet, but checkpointing before the error message dive. 2024-07-11 13:12:46 -05:00
Herbert Wolverson
afb0584a31 Direct port of "save configuration" (still probably has issues from the old one - it's a 1:1 port). 2024-07-11 13:02:29 -05:00
Herbert Wolverson
b462f042da Configuration porting: loading and displaying is working. Still lots to do. 2024-07-11 12:49:11 -05:00
Herbert Wolverson
9623b6a6f5 Reload LibreQoS button works in UI2 now. 2024-07-11 11:54:20 -05:00
Herbert Wolverson
b58dacc2e5 Reverse sort order of unknown IPs list. 2024-07-11 11:17:20 -05:00
Herbert Wolverson
72f5502904 Unknown IP CSV download. 2024-07-11 11:10:26 -05:00
Herbert Wolverson
97edfacf09 Remove some unused imports. 2024-07-11 10:51:27 -05:00
Herbert Wolverson
1d6e744924 FIXES #485. Unknown IP count only looks at recent (<5 minutes) unknown IPs. 2024-07-11 10:50:56 -05:00
Herbert Wolverson
65d8f991dd Remove console.log that was left in by mistake. 2024-07-11 10:25:34 -05:00
Herbert Wolverson
1ea56dc349 Merge branch 'develop' into user_interface_2 2024-07-11 09:59:11 -05:00
Robert Chacón
e1ed0010c6
Merge pull request #520 from LibreQoE/issue_518_libreqos_hangs
Issue 518 libreqos hangs
2024-07-11 08:57:27 -06:00
Herbert Wolverson
baa18bd322 ISSUE #518 - Add Flush command to xdp_iphash_to_cpu_cmdline. I'm not sure if anyone actually uses that tool, but now it's supported. 2024-07-11 09:24:28 -05:00
Herbert Wolverson
abdcdafef5 ISSUE #518 - Make hot cache invalidation explicit
The "add ip mapping" call was flushing the XDP 'hot cache'. That was fine in testing, and not working well at scale:

* Each table wipe locks the associated underlying hash map.
* Running 1200+ clears means waiting for 1200 occasions in which packets don't already have a hold on the lock (eBPF doesn't expose the locking mechanisms, so we can't change that behavior)
* The result is that under load, it can take a REALLY long time to reload the shaping stack without pausing traffic.

Instead, add_ip_mapping no longer clears the hot cache. An explicit invalidation call has been added to the bus, and added to the end of the batched IP map updates. This reduces the number of table locks from 1200+ to 2 (once for clearing the IP map, once for clearing the cache).
2024-07-11 09:22:37 -05:00
Herbert Wolverson
a13fb0482e Remove spurious semicolon. Not the sollution to ISSUE #518 - but let's clean it up while we're here. 2024-07-11 09:04:33 -05:00
Herbert Wolverson
50f587bb9e Checkpoint commit: working on the unknown IPs page. 2024-07-10 16:39:27 -05:00
Herbert Wolverson
2558334a29 The beginnings of a search system. (Currently only sites are linked) 2024-07-10 16:00:08 -05:00