sachinites / tcpip_stack

Implement your own TCP IP Stack
https://www.csepracticals.com/
GNU General Public License v3.0
183 stars 133 forks source link

While installing access-lists concurrently ( async ), limit the number of access-list installation job triggered. #26

Open sachinites opened 2 years ago

sachinites commented 2 years ago

Currently the fn og_update_acls_task( ) triggeres as many jobs as number of access-lists are present in Hashtable. Number of access-list could be many, we cannot afford to fork these many jobs as it will drastically increase CPU load. Put the limit on a maximum number of jobs to be forked ( say 10 ), and install access-list in batches using max 10 jobs.