Skip to content

Conversation

@AltraMayor
Copy link
Owner

The Lua states that run policies are created during the initialization of Grantor, and during policy reloads. In the former case, the creation is done on the master lcore. In the latter case, on the lcore of the dynamic configuration block. Thus, the code has to guess the lcore that actually runs the policy while creating LPM tables.

This patch avoids the guessing by adding the running lcore ID to the registry of the lua states, and making the Lua LPM library to
use this information.

The Lua states that run policies are created during
the initialization of Grantor, and during policy reloads.
In the former case, the creation is done on the master lcore.
In the latter case, on the lcore of the dynamic configuration block.
Thus, the code has to guess the lcore that actually runs the policy
while creating LPM tables.

This patch avoids the guessing by adding the running lcore ID to
the registry of the lua states, and making the Lua LPM library to
use this information.
@AltraMayor AltraMayor added this to the First deployment milestone Jul 6, 2021
@AltraMayor
Copy link
Owner Author

Tested on our XIA1 server.

@AltraMayor AltraMayor merged commit fde23fe into master Jul 6, 2021
@AltraMayor AltraMayor deleted the gt_numa branch July 6, 2021 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants