[dpdk-dev] [PATCH v2] bonding: fix crash when no slave devices

2016-03-11 Thread Bruce Richardson
On Mon, Mar 07, 2016 at 12:14:51PM +, Ferruh Yigit wrote: > On 3/7/2016 11:40 AM, Bernard Iremonger wrote: > > If a bonded device is created when there are no slave devices > > there is loop in bond_ethdev_promiscous_enable() which results > > in a segmentation fault. > > > > The solution is t

[dpdk-dev] [PATCH v2] bonding: fix crash when no slave devices

2016-03-07 Thread Ferruh Yigit
On 3/7/2016 11:40 AM, Bernard Iremonger wrote: > If a bonded device is created when there are no slave devices > there is loop in bond_ethdev_promiscous_enable() which results > in a segmentation fault. > > The solution is to initialise the current_primary_port to an > invalid port value when the

[dpdk-dev] [PATCH v2] bonding: fix crash when no slave devices

2016-03-07 Thread Bernard Iremonger
If a bonded device is created when there are no slave devices there is loop in bond_ethdev_promiscous_enable() which results in a segmentation fault. The solution is to initialise the current_primary_port to an invalid port value when the bonded port is created. Fixes: 2efb58cbab6e ("bond: new li