[ovs-dev] [PATCH] netdev-dpdk: Fix crash when there is no pci numa info.

2014-09-25 Thread Alex Wang
When kernel cannot obtain the pci numa info, the numa_node file in corresponding pci directory in sysfs will show -1. Then the rte_eth_dev_socket_id() function will return it to ovs. On current master, ovs assumes rte_eth_dev_socket_id() always returns non-negative value. So using this -1 in

Re: [ovs-dev] [PATCH] netdev-dpdk: Fix crash when there is no pci numa info.

2014-09-25 Thread Daniele Di Proietto
Thanks for the fix! Acked-by: Daniele Di Proietto ddiproie...@vmware.com On 9/25/14, 1:28 PM, Alex Wang al...@nicira.com wrote: When kernel cannot obtain the pci numa info, the numa_node file in corresponding pci directory in sysfs will show -1. Then the rte_eth_dev_socket_id() function will

Re: [ovs-dev] [PATCH] netdev-dpdk: Fix crash when there is no pci numa info.

2014-09-25 Thread Justin Pettit
Don't forget to add Daniel to AUTHORS. --Justin On September 25, 2014 at 1:27:30 PM, Alex Wang (al...@nicira.com) wrote: When kernel cannot obtain the pci numa info, the numa_node file in corresponding pci directory in sysfs will show -1. Then the rte_eth_dev_socket_id() function will return

Re: [ovs-dev] [PATCH] netdev-dpdk: Fix crash when there is no pci numa info.

2014-09-25 Thread Alex Wang
Thx, Daniele also reminded me of that, will fold that in with the patch. On Thu, Sep 25, 2014 at 2:07 PM, Justin Pettit jpet...@nicira.com wrote: Don't forget to add Daniel to AUTHORS. --Justin On September 25, 2014 at 1:27:30 PM, Alex Wang (al...@nicira.com) wrote: When kernel cannot