Optimize IP filter updates to xdp-cpumap-tc

This commit is contained in:
Robert Chacón 2022-09-07 20:10:15 -06:00 committed by GitHub
parent 009d9bf02c
commit bf09a38d35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: