On Mon, Aug 11, 2014 at 9:56 PM, Alex Wang <al...@nicira.com> wrote:
> Later patch will use this patch to configure the pmd thread
> cpu affinity.
>
> Signed-off-by: Alex Wang <al...@nicira.com>
> ---
>  lib/ovs-numa.c |   87 
> ++++++++++++++++++++++++++++++++++++++++++++++++--------
>  lib/ovs-numa.h |    7 +++++
>  2 files changed, 82 insertions(+), 12 deletions(-)
>
> diff --git a/lib/ovs-numa.c b/lib/ovs-numa.c
> index acedd30..ec8c81a 100644
> --- a/lib/ovs-numa.c
> +++ b/lib/ovs-numa.c
> @@ -50,6 +50,7 @@ struct cpu_core {
>      struct list list_node;     /* In 'cpu_socket->cores' list. */
>      struct cpu_socket *socket; /* Socket containing the core. */
>      int core_id;               /* Core id. */
> +    bool pinnable;             /* If the core can be pinned. */
I think 'available' is better name (?)

>      bool pinned;               /* If a thread has been pinned to the core. */
>  };
>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to