[ofa-general] [PATCH 4/5] nes: add interrupt coalesce timer stat to ethtool

Glenn Grundstrom NetEffect glenn at lists.openfabrics.org
Fri Nov 30 10:24:56 PST 2007


Adding support to show the interrupt coalesce timer through ethtool.

Signed-off-by: Glenn Grundstrom <ggrundstrom at neteffect.com>

---

diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c
index c29ab12..5c9ab37 100644
--- a/drivers/infiniband/hw/nes/nes_nic.c
+++ b/drivers/infiniband/hw/nes/nes_nic.c
@@ -1330,6 +1330,9 @@ static int nes_netdev_get_coalesce(struct net_device *netdev,
 	temp_et_coalesce.rx_max_coalesced_frames_high = shared_timer->threshold_high;
 	temp_et_coalesce.rx_coalesce_usecs_low = shared_timer->timer_in_use_min;
 	temp_et_coalesce.rx_coalesce_usecs_high = shared_timer->timer_in_use_max;
+	if (nesadapter->et_use_adaptive_rx_coalesce) {
+		temp_et_coalesce.rx_coalesce_usecs_irq = shared_timer->timer_in_use;
+	}
 	spin_unlock_irqrestore(&nesadapter->periodic_timer_lock, flags);
 	memcpy(et_coalesce,	&temp_et_coalesce, sizeof(*et_coalesce));
 	return 0;



More information about the general mailing list