[ovs-dev] [dpdk patch 7/8] ovs-numa: Add support for cpu-mask configuration.

Pravin Shelar pshelar at nicira.com
Sat Aug 30 19:02:56 UTC 2014


On Mon, Aug 11, 2014 at 9:56 PM, Alex Wang <alexw at nicira.com> wrote:
> Later patch will use this patch to configure the pmd thread
> cpu affinity.
>
> Signed-off-by: Alex Wang <alexw at 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. */
>  };
>



More information about the dev mailing list