[dpdk-dev] [PATCH] librte_ether: fix crashes in rte_ethdev functions.

2015-12-21 Thread Iremonger, Bernard
Hi Konstantin, > -Original Message- > From: Ananyev, Konstantin > Sent: Monday, December 21, 2015 12:02 PM > To: Iremonger, Bernard ; Qiu, Michael > ; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH] librte_ether: fix crashes in rte_ethdev > functions. > > &

[dpdk-dev] [PATCH] librte_ether: fix crashes in rte_ethdev functions.

2015-12-21 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Iremonger, Bernard > Sent: Monday, December 21, 2015 11:40 AM > To: Qiu, Michael; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] librte_ether: fix crashes in rte_ethdev > function

[dpdk-dev] [PATCH] librte_ether: fix crashes in rte_ethdev functions.

2015-12-21 Thread Iremonger, Bernard
Hi Michael, > -Original Message- > From: Qiu, Michael > Sent: Monday, December 21, 2015 9:03 AM > To: Iremonger, Bernard ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] librte_ether: fix crashes in rte_ethdev > functions. > > On 2015/12/18 1:24, Bernard

[dpdk-dev] [PATCH] librte_ether: fix crashes in rte_ethdev functions.

2015-12-21 Thread Qiu, Michael
On 2015/12/18 1:24, Bernard Iremonger wrote: > The nb_rx_queues and nb_tx_queues are initialised before > the tx_queue and rx_queue arrays are allocated. The arrays > are allocated when the ethdev port is started. > > If any of the following functions are called before the ethdev > port is started

[dpdk-dev] [PATCH] librte_ether: fix crashes in rte_ethdev functions.

2015-12-17 Thread Bernard Iremonger
The nb_rx_queues and nb_tx_queues are initialised before the tx_queue and rx_queue arrays are allocated. The arrays are allocated when the ethdev port is started. If any of the following functions are called before the ethdev port is started there is a segmentation fault: rte_eth_stats_get rte_et