[dpdk-dev] SEGMENTATION FAULT in kni example : kni_free_kni() call

2014-10-29 Thread Thomas Monjalon
Hi, 2014-10-28 23:07, Ariel Rodriguez: > Hi, im trying the kni example. When i hit ctrl-c in the terminal stopping > the example, the os signals with a segmentation fault. [...] > The following change fix that issue: > > static int kni_free_kni(uint8_t port_id) { > uint8_t i; > struct kni_port_

[dpdk-dev] SEGMENTATION FAULT in kni example : kni_free_kni() call

2014-10-29 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas Monjalon > Sent: Wednesday, October 29, 2014 4:35 PM > To: Ariel Rodriguez > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] SEGMENTATION FAULT in kni example : kni_free_kni() > call

[dpdk-dev] SEGMENTATION FAULT in kni example : kni_free_kni() call

2014-10-28 Thread Ariel Rodriguez
Hi, im trying the kni example. When i hit ctrl-c in the terminal stopping the example, the os signals with a segmentation fault. The issue is in this block of code: static int kni_free_kni(uint8_t port_id) { uint8_t i; struct kni_port_params **p = kni_port_params_array; if (port_id >= RTE_MAX_