Add NUMA affinity policy options "socket"

Added a new port NUMA affinity policy option called "socket".

Depends-On: https://review.opendev.org/c/openstack/neutron/+/910594

Related-Bug: #2052786
Change-Id: Icff9070db68ba83b47b344d56ee93b235383b2f2
This commit is contained in:
Rodolfo Alonso Hernandez 2024-02-24 11:15:45 +00:00
parent 2eea916b35
commit 966051cfe2
2 changed files with 14 additions and 0 deletions

View File

@ -205,6 +205,10 @@ def _get_attrs(client_manager, parsed_args):
and parsed_args.numa_policy_preferred
):
attrs['numa_affinity_policy'] = 'preferred'
elif (
'numa_policy_socket' in parsed_args and parsed_args.numa_policy_socket
):
attrs['numa_affinity_policy'] = 'socket'
elif (
'numa_policy_legacy' in parsed_args and parsed_args.numa_policy_legacy
):
@ -354,6 +358,11 @@ def _add_updatable_args(parser):
action='store_true',
help=_("NUMA affinity policy preferred to schedule this port"),
)
numa_affinity_policy_group.add_argument(
'--numa-policy-socket',
action='store_true',
help=_("NUMA affinity policy socket to schedule this port"),
)
numa_affinity_policy_group.add_argument(
'--numa-policy-legacy',
action='store_true',

View File

@ -0,0 +1,5 @@
---
features:
- |
Add a new NUMA affinity policy option: "socket". That applies to any new
port (using ``port create``) or any existing port (using ``port set``).