[ofa-general] [PATCH 14/16] ib/ipoib: Support modifying IPOIB CQ moderation params

Or Gerlitz ogerlitz at voltaire.com
Thu Jan 17 05:22:53 PST 2008


Eli Cohen wrote:
> Support modifying IPOIB CQ moderation params
> 
> This can be used to tune at run time the paramters controlling
> the event (interrupt) generation rate and thus reduce the overhead
> incurred by handling interrupts resulting in better throughput.

IPoIB has one CQ. As I see it, this means that you should either let the 
user specify only one of rx or tx coalescing params, or make sure that 
the user did not provide something that the driver can not deploy, eg 
rx_usecs 12 tx_usecs 1

> +static int ipoib_set_coalesce(struct net_device *dev,
> +                             struct ethtool_coalesce *coal)
> +	coal->tx_coalesce_usecs = coal->rx_coalesce_usecs;
> +	priv->etool.coalesce_usecs = coal->rx_coalesce_usecs;
> +	coal->rx_max_coalesced_frames = coal->rx_max_coalesced_frames;

I guess you wanted to say here coal->tx_max_coalesced_frames =

Or




More information about the general mailing list