* [PATCH] ib/ipoib: remove TX moderation from the ethtool related code
@ 2010-01-11 9:20 Or Gerlitz
[not found] ` <Pine.LNX.4.64.1001111118260.27317-aDiYczhfhVLdX2U7gxhm1tBPR1lH4CV8@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Or Gerlitz @ 2010-01-11 9:20 UTC (permalink / raw)
To: Roland Dreier; +Cc: linux-rdma
As of commit f56bcd8 "IPoIB: Use separate CQ for UD send completions",
there are no TX interrupts at the main code path. Change the ethtool
related code to comply with this, such the users will not be misleaded
to assume they can control TX interrupt moderation. Was pointed by
Alex Vainman <alexv-smomgflXvOZWk0Htik3J/w@public.gmane.org>
Signed-off-by: Or Gerlitz <ogerlitz-smomgflXvOZWk0Htik3J/w@public.gmane.org>
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c b/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c
index e9795f6..d10b4ec 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c
@@ -55,9 +55,7 @@ static int ipoib_get_coalesce(struct net_device *dev,
struct ipoib_dev_priv *priv = netdev_priv(dev);
coal->rx_coalesce_usecs = priv->ethtool.coalesce_usecs;
- coal->tx_coalesce_usecs = priv->ethtool.coalesce_usecs;
coal->rx_max_coalesced_frames = priv->ethtool.max_coalesced_frames;
- coal->tx_max_coalesced_frames = priv->ethtool.max_coalesced_frames;
return 0;
}
@@ -69,10 +67,8 @@ static int ipoib_set_coalesce(struct net_device *dev,
int ret;
/*
- * Since IPoIB uses a single CQ for both rx and tx, we assume
- * that rx params dictate the configuration. These values are
- * saved in the private data and returned when ipoib_get_coalesce()
- * is called.
+ * These values are saved in the private data and returned
+ * when ipoib_get_coalesce() is called
*/
if (coal->rx_coalesce_usecs > 0xffff ||
coal->rx_max_coalesced_frames > 0xffff)
@@ -85,8 +81,6 @@ static int ipoib_set_coalesce(struct net_device *dev,
return ret;
}
- coal->tx_coalesce_usecs = coal->rx_coalesce_usecs;
- coal->tx_max_coalesced_frames = coal->rx_max_coalesced_frames;
priv->ethtool.coalesce_usecs = coal->rx_coalesce_usecs;
priv->ethtool.max_coalesced_frames = coal->rx_max_coalesced_frames;
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <Pine.LNX.4.64.1001111118260.27317-aDiYczhfhVLdX2U7gxhm1tBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH] ib/ipoib: remove TX moderation from the ethtool related code [not found] ` <Pine.LNX.4.64.1001111118260.27317-aDiYczhfhVLdX2U7gxhm1tBPR1lH4CV8@public.gmane.org> @ 2010-01-20 15:47 ` Or Gerlitz [not found] ` <4B5725AE.5090505-smomgflXvOZWk0Htik3J/w@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Or Gerlitz @ 2010-01-20 15:47 UTC (permalink / raw) To: Roland Dreier; +Cc: linux-rdma Or Gerlitz wrote: > As of commit f56bcd8 "IPoIB: Use separate CQ for UD send completions", > there are no TX interrupts at the main code path. Change the ethtool > related code to comply with this, such the users will not be misleaded > to assume they can control TX interrupt moderation. Hi Roland, did you had the chance to look on this one? Or. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <4B5725AE.5090505-smomgflXvOZWk0Htik3J/w@public.gmane.org>]
* Re: [PATCH] ib/ipoib: remove TX moderation from the ethtool related code [not found] ` <4B5725AE.5090505-smomgflXvOZWk0Htik3J/w@public.gmane.org> @ 2010-01-20 16:53 ` Roland Dreier [not found] ` <ada8wbs3ehb.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Roland Dreier @ 2010-01-20 16:53 UTC (permalink / raw) To: Or Gerlitz; +Cc: linux-rdma > > As of commit f56bcd8 "IPoIB: Use separate CQ for UD send completions", > > there are no TX interrupts at the main code path. Change the ethtool > > related code to comply with this, such the users will not be misleaded > > to assume they can control TX interrupt moderation. > Hi Roland, did you had the chance to look on this one? Yes, looks fine, planning to merge it for 2.6.34. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <ada8wbs3ehb.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>]
* Re: [PATCH] ib/ipoib: remove TX moderation from the ethtool related code [not found] ` <ada8wbs3ehb.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org> @ 2010-01-24 5:30 ` Or Gerlitz 0 siblings, 0 replies; 4+ messages in thread From: Or Gerlitz @ 2010-01-24 5:30 UTC (permalink / raw) To: Roland Dreier; +Cc: linux-rdma Roland Dreier wrote: > Yes, looks fine, planning to merge it for 2.6.34 > okay, good, I see that the for-next branch of yours is updated and already contains one patch. Or. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-01-24 5:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-11 9:20 [PATCH] ib/ipoib: remove TX moderation from the ethtool related code Or Gerlitz
[not found] ` <Pine.LNX.4.64.1001111118260.27317-aDiYczhfhVLdX2U7gxhm1tBPR1lH4CV8@public.gmane.org>
2010-01-20 15:47 ` Or Gerlitz
[not found] ` <4B5725AE.5090505-smomgflXvOZWk0Htik3J/w@public.gmane.org>
2010-01-20 16:53 ` Roland Dreier
[not found] ` <ada8wbs3ehb.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-01-24 5:30 ` Or Gerlitz
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox