OpenDataPlane / odp

The ODP project is an open-source, cross-platform set of application programming interfaces (APIs) for the networking data plane
https://opendataplane.org
Other
176 stars 133 forks source link

[PATCH v3] linux-gen: cpu: make possible to read cpu id during every odp_cpu_id() call #2092

Closed MatiasElo closed 1 month ago

MatiasElo commented 2 months ago

Add new config file option 'system:cpu_id_static' for selecting whether the implementation reads CPU identifier value from OS during every odp_cpu_id() call or only once during thread initialization (default). If thread(s) may be migrated between cores during the application lifetime this option should be set to 0.