Re: [PATCH net] bonding: fix panic on non-ARPHRD_ETHER enslave failure

2015-11-07 Thread David Miller
From: Jay Vosburgh Date: Fri, 06 Nov 2015 17:23:23 -0800 > > Since commit 7d5cd2ce529b, when bond_enslave fails on devices that > are not ARPHRD_ETHER, if needed, it resets the bonding device back to > ARPHRD_ETHER by calling ether_setup. > > Unfortunately, ether_setup clobbers dev-

Re: [PATCH net] bonding: fix panic on non-ARPHRD_ETHER enslave failure

2015-11-06 Thread Nikolay Aleksandrov
On 11/07/2015 02:23 AM, Jay Vosburgh wrote: > Since commit 7d5cd2ce529b, when bond_enslave fails on devices that > are not ARPHRD_ETHER, if needed, it resets the bonding device back to > ARPHRD_ETHER by calling ether_setup. > > Unfortunately, ether_setup clobbers dev->flags, clearing I

[PATCH net] bonding: fix panic on non-ARPHRD_ETHER enslave failure

2015-11-06 Thread Jay Vosburgh
Since commit 7d5cd2ce529b, when bond_enslave fails on devices that are not ARPHRD_ETHER, if needed, it resets the bonding device back to ARPHRD_ETHER by calling ether_setup. Unfortunately, ether_setup clobbers dev->flags, clearing IFF_UP if the bond device is up, leaving it in a q