Re: [PATCH net-next 1/2] ethtool: add PHY Fast Link Down support

2019-03-27 Thread Andrew Lunn
> Not to confuse Dave with the discussion: > This is not about whether the patch is wrong or right, but about how > a future architecture based on ethtool-nl could look like. > > Like Michael said, based on the current ethtool architecture it's simple: > Driver will choose closest supported value.

Re: [PATCH net-next 1/2] ethtool: add PHY Fast Link Down support

2019-03-26 Thread Heiner Kallweit
On 26.03.2019 10:17, Michal Kubecek wrote: > On Tue, Mar 26, 2019 at 09:24:38AM +0100, Andrew Lunn wrote: +#define ETHTOOL_PHY_FAST_LINK_DOWN_ON 0 +#define ETHTOOL_PHY_FAST_LINK_DOWN_OFF0xff + enum phy_tunable_id { ETHTOOL_PHY_ID_UNSPEC, ETHTOOL_PHY_DOWN

Re: [PATCH net-next 1/2] ethtool: add PHY Fast Link Down support

2019-03-26 Thread Heiner Kallweit
On 26.03.2019 09:24, Andrew Lunn wrote: >>> +#define ETHTOOL_PHY_FAST_LINK_DOWN_ON 0 >>> +#define ETHTOOL_PHY_FAST_LINK_DOWN_OFF 0xff >>> + >>> enum phy_tunable_id { >>> ETHTOOL_PHY_ID_UNSPEC, >>> ETHTOOL_PHY_DOWNSHIFT, >>> + ETHTOOL_PHY_FAST_LINK_DOWN, >>> /* >>> * Add

Re: [PATCH net-next 1/2] ethtool: add PHY Fast Link Down support

2019-03-26 Thread Michal Kubecek
On Tue, Mar 26, 2019 at 09:24:38AM +0100, Andrew Lunn wrote: > > > +#define ETHTOOL_PHY_FAST_LINK_DOWN_ON0 > > > +#define ETHTOOL_PHY_FAST_LINK_DOWN_OFF 0xff > > > + > > > enum phy_tunable_id { > > > ETHTOOL_PHY_ID_UNSPEC, > > > ETHTOOL_PHY_DOWNSHIFT, > > > + ETHTOOL_PHY_FAST_LINK_DOWN,

Re: [PATCH net-next 1/2] ethtool: add PHY Fast Link Down support

2019-03-26 Thread Andrew Lunn
> > +#define ETHTOOL_PHY_FAST_LINK_DOWN_ON 0 > > +#define ETHTOOL_PHY_FAST_LINK_DOWN_OFF 0xff > > + > > enum phy_tunable_id { > > ETHTOOL_PHY_ID_UNSPEC, > > ETHTOOL_PHY_DOWNSHIFT, > > + ETHTOOL_PHY_FAST_LINK_DOWN, > > /* > > * Add your fresh new phy tunable attribute ab

Re: [PATCH net-next 1/2] ethtool: add PHY Fast Link Down support

2019-03-25 Thread Heiner Kallweit
On 25.03.2019 18:49, Michal Kubecek wrote: > On Sun, Mar 24, 2019 at 04:02:43PM +0100, Heiner Kallweit wrote: >> This adds support for Fast Link Down as new PHY tunable. >> Fast Link Down reduces the time until a link down event is reported >> for 1000BaseT. According to the standard it's 750ms wha

Re: [PATCH net-next 1/2] ethtool: add PHY Fast Link Down support

2019-03-25 Thread Michal Kubecek
On Sun, Mar 24, 2019 at 04:02:43PM +0100, Heiner Kallweit wrote: > This adds support for Fast Link Down as new PHY tunable. > Fast Link Down reduces the time until a link down event is reported > for 1000BaseT. According to the standard it's 750ms what is too long > for several use cases. > > Sign

[PATCH net-next 1/2] ethtool: add PHY Fast Link Down support

2019-03-24 Thread Heiner Kallweit
This adds support for Fast Link Down as new PHY tunable. Fast Link Down reduces the time until a link down event is reported for 1000BaseT. According to the standard it's 750ms what is too long for several use cases. Signed-off-by: Heiner Kallweit --- include/uapi/linux/ethtool.h | 4 net/c