Fixed a minor bug that would print out a confusing warning about core mask, "ovs_numa|WARN|Invalid cpu mask: x", when dpdl-lcore-mask has 0x prefix, e.g. 0x123, which is the convention used in INSTALL.DPDK.md. --- lib/ovs-numa.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/lib/ovs-numa.c b/lib/ovs-numa.c index c8173e0..c1938eb 100644 --- a/lib/ovs-numa.c +++ b/lib/ovs-numa.c @@ -551,6 +551,10 @@ ovs_numa_set_cpu_mask(const char *cmask) return; } + /* Skip 0x if supplied in the cmask */ + if (!strncmp(cmask, "0x", 2)) + cmask += 2; + for (i = strlen(cmask) - 1; i >= 0; i--) { char hex = toupper((unsigned char)cmask[i]); int bin, j; -- 2.5.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev