diff options
author | John Lacombe <jlacombe@neteffect.com> | 2008-09-26 20:08:10 (GMT) |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-09-30 22:35:48 (GMT) |
commit | 27ffed603f555ce0a644de6e550d3462ff51d64f (patch) | |
tree | 59746ac5d97430664d2ad9216ec12c72bd83c9d5 /drivers/infiniband/hw/nes/nes_hw.c | |
parent | a06fd26d48eb3304db246f3f4a0aa5a50afb10ec (diff) | |
download | linux-fsl-qoriq-27ffed603f555ce0a644de6e550d3462ff51d64f.tar.xz |
RDMA/nes: Use ethtool timer value
Use timer value set via ethtool intead of #defines.
Signed-off-by: John Lacombe <jlacombe@neteffect.com>
Signed-off-by: Sweta Bhatt <sweta.bhatt@einfochips.com>
Signed-off-by: Chien Tung <ctung@neteffect.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_hw.c')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_hw.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/nes/nes_hw.c b/drivers/infiniband/hw/nes/nes_hw.c index bc16fc08..515c071 100644 --- a/drivers/infiniband/hw/nes/nes_hw.c +++ b/drivers/infiniband/hw/nes/nes_hw.c @@ -222,11 +222,10 @@ static void nes_nic_tune_timer(struct nes_device *nesdev) } /* boundary checking */ - if (shared_timer->timer_in_use > NES_NIC_FAST_TIMER_HIGH) - shared_timer->timer_in_use = NES_NIC_FAST_TIMER_HIGH; - else if (shared_timer->timer_in_use < NES_NIC_FAST_TIMER_LOW) { - shared_timer->timer_in_use = NES_NIC_FAST_TIMER_LOW; - } + if (shared_timer->timer_in_use > shared_timer->threshold_high) + shared_timer->timer_in_use = shared_timer->threshold_high; + else if (shared_timer->timer_in_use < shared_timer->threshold_low) + shared_timer->timer_in_use = shared_timer->threshold_low; nesdev->currcq_count = 0; |