From: Ondrej Zary <hidden> Date: 2014-06-21 20:29:21
Poll link status every 2 seconds instead of 60 for ADMtek Comet chips.
Tested with AN983B.
Signed-off-by: Ondrej Zary <redacted>
---
drivers/net/ethernet/dec/tulip/timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -158,7 +158,7 @@ void comet_timer(unsigned long data){structnet_device*dev=(structnet_device*)data;structtulip_private*tp=netdev_priv(dev);-intnext_tick=60*HZ;+intnext_tick=2*HZ;if(tulip_debug>1)netdev_dbg(dev,"Comet link status %04x partner capability %04x\n",
From: Grant Grundler <hidden> Date: 2014-06-21 22:59:32
Hi Ondrej,
On Sat, Jun 21, 2014 at 1:29 PM, Ondrej Zary [off-list ref] wrote:
Poll link status every 2 seconds instead of 60 for ADMtek Comet chips.
Why use 2 seconds for the polling interval?
I'm sure you have a good reason for this and it should be in the
commit message or as a comment in the code.
I otherwise have no objection to this change.
thanks,
grant
quoted hunk
Tested with AN983B.
Signed-off-by: Ondrej Zary <redacted>
---
drivers/net/ethernet/dec/tulip/timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -158,7 +158,7 @@ void comet_timer(unsigned long data){structnet_device*dev=(structnet_device*)data;structtulip_private*tp=netdev_priv(dev);-intnext_tick=60*HZ;+intnext_tick=2*HZ;if(tulip_debug>1)netdev_dbg(dev,"Comet link status %04x partner capability %04x\n",--
From: David Miller <davem@davemloft.net> Date: 2014-06-22 02:22:24
From: Grant Grundler <redacted>
Date: Sat, 21 Jun 2014 15:59:30 -0700
Hi Ondrej,
On Sat, Jun 21, 2014 at 1:29 PM, Ondrej Zary [off-list ref] wrote:
quoted
Poll link status every 2 seconds instead of 60 for ADMtek Comet chips.
Why use 2 seconds for the polling interval?
I'm sure you have a good reason for this and it should be in the
commit message or as a comment in the code.
I otherwise have no objection to this change.
Agreed, please post this with a better commit message, specifically
make sure you explain why the interval is being changed and why
2*HZ is specifically being choosen.
Thanks.