Re: [PATCH net-next 3/4] net: dsa: setup master ethtool after dsa_ptr

2017-09-19 Thread Florian Fainelli
On 09/19/2017 08:56 AM, Vivien Didelot wrote: > DSA overrides the master's ethtool ops so that we can inject its CPU > port's statistics. Because of that, we need to setup the ethtool ops > after the master's dsa_ptr pointer has been assigned, not before. Yes, good point, technically this is a bug

[PATCH net-next 3/4] net: dsa: setup master ethtool after dsa_ptr

2017-09-19 Thread Vivien Didelot
DSA overrides the master's ethtool ops so that we can inject its CPU port's statistics. Because of that, we need to setup the ethtool ops after the master's dsa_ptr pointer has been assigned, not before. This patch setups the ethtool ops after dsa_ptr is assigned, and restores them before it gets