mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-26 10:00:17 -06:00
Optimize IP filter updates to xdp-cpumap-tc
This commit is contained in:
parent
009d9bf02c
commit
bf09a38d35
@ -403,8 +403,13 @@ def refreshShapers():
|
||||
f.write(f"{line}\n")
|
||||
|
||||
shell("/sbin/tc -f -b linux_tc.txt")
|
||||
xdpCommandString = ""
|
||||
for command in xdpCPUmapCommands:
|
||||
shell(command)
|
||||
xdpCommandString = xdpCommandString + command + "\n"
|
||||
|
||||
if enableActualShellCommands:
|
||||
process = subprocess.Popen('/bin/bash', stdin=subprocess.PIPE, stdout=subprocess.PIPE)
|
||||
out, err = process.communicate(xdpCommandString.encode('utf-8'))
|
||||
|
||||
#Recap
|
||||
for circuit in subscriberCircuits:
|
||||
|
Loading…
Reference in New Issue
Block a user