Re: [ovs-dev] [dpdk patch 1/2] ovs-numa: Add support for cpu-mask configuration.

2014-09-19 Thread Pravin Shelar
On Mon, Sep 15, 2014 at 2:03 PM, Alex Wang al...@nicira.com wrote: This commit adds support in ovs-numa module for reading a user specified cpu mask, which configures the availability of the cores. The cpu mask has the format of a hex string similar to the EAL '-c COREMASK' option input or

Re: [ovs-dev] [dpdk patch 1/2] ovs-numa: Add support for cpu-mask configuration.

2014-09-19 Thread Alex Wang
+for (j = 0; j 4; j++) { +struct cpu_core *core; + +core = CONTAINER_OF(hmap_first_with_hash(all_cpu_cores, + hash_int(core_id++, 0)), +struct cpu_core, hmap_node); +core-available = (bin j) 0x1; This

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

2014-09-15 Thread Alex Wang
This commit adds support in ovs-numa module for reading a user specified cpu mask, which configures the availability of the cores. The cpu mask has the format of a hex string similar to the EAL '-c COREMASK' option input or the 'taskset' mask input. The lowest order bit corresponds to the first