[dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd added to bonding

2015-09-30 Thread Tetsuya Mukawa
On 2015/09/30 0:10, Kulasek, TomaszX wrote: > Hi Tetsuya, > > Changes from patch below, solves the problem. I've removed malloc. > > Tomasz. > > --- > From e03e77a7dc0e47ac9d750545a834624f88f61966 Mon Sep 17 00:00:00 2001 > From: Tomasz Kulasek > Date: Tue, 29 Sep 2015 16:48:31 +0200 > Subject: [P

[dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd added to bonding

2015-09-29 Thread Tetsuya Mukawa
On 2015/09/29 18:39, Kulasek, TomaszX wrote: > Hi Tetsuya, > >> Thanks for extending null pmd features. >> Is it possible to use rte_null_pmd here? >> Could you please check ring pmd? It may also uses rte_ring_pmd for link >> status callback. >> >> Tetsuya > My first attempt was to use ring pmd, an

[dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd added to bonding

2015-09-29 Thread Kulasek, TomaszX
Hi Tetsuya, Changes from patch below, solves the problem. I've removed malloc. Tomasz. --- >From e03e77a7dc0e47ac9d750545a834624f88f61966 Mon Sep 17 00:00:00 2001 From: Tomasz Kulasek Date: Tue, 29 Sep 2015 16:48:31 +0200 Subject: [PATCH 1/4] null: fix segfault when null_pmd added to bonding -

[dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd added to bonding

2015-09-29 Thread Kulasek, TomaszX
> -Original Message- > From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] > Sent: Tuesday, September 29, 2015 12:33 > To: Kulasek, TomaszX > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd > added to bonding > > O

[dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd added to bonding

2015-09-29 Thread Tetsuya Mukawa
On 2015/07/16 2:26, Tomasz Kulasek wrote: > When device is added to the bonding, the link status callback is added to > the slave's eth_dev->link_intr_cbs list. This list is not initialized for > null pmd and adding it to the bonding segfaults application. > > This patch allocates and sets up requi

[dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd added to bonding

2015-09-29 Thread Kulasek, TomaszX
Hi Tetsuya, > Thanks for extending null pmd features. > Is it possible to use rte_null_pmd here? > Could you please check ring pmd? It may also uses rte_ring_pmd for link > status callback. > > Tetsuya My first attempt was to use ring pmd, and there's no such an issue with it. It works pretty w

[dpdk-dev] [PATCHv4 2/9] null: fix segfault when null_pmd added to bonding

2015-07-15 Thread Tomasz Kulasek
When device is added to the bonding, the link status callback is added to the slave's eth_dev->link_intr_cbs list. This list is not initialized for null pmd and adding it to the bonding segfaults application. This patch allocates and sets up required structures. Signed-off-by: Tomasz Kulasek ---