Re: [PATCH net-next 1/2] net: break include loop netdevice.h, dsa.h, devlink.h

2017-03-28 Thread Florian Fainelli
On 03/28/2017 02:45 PM, Andrew Lunn wrote: > There is an include loop between netdevice.h, dsa.h, devlink.h because > of NETDEV_ALIGN, making it impossible to use devlink structures in > dsa.h. > > Break this loop by taking dsa.h out of netdevice.h, add a forward > declaration of dsa_switch_tree a

[PATCH net-next 1/2] net: break include loop netdevice.h, dsa.h, devlink.h

2017-03-28 Thread Andrew Lunn
There is an include loop between netdevice.h, dsa.h, devlink.h because of NETDEV_ALIGN, making it impossible to use devlink structures in dsa.h. Break this loop by taking dsa.h out of netdevice.h, add a forward declaration of dsa_switch_tree and netdev_set_default_ethtool_ops() function, which is