cxgb3: Apply interrupt coalescing settings to all queues

While testing the performance of different receive interrupt
coalescing settings on a single stream TCP benchmark, I noticed two
very different results. With rx-usecs=50, most of the time a
connection would hit 8280 Mbps but once in a while it would hit
9330 Mbps.

It turns out we are only applying the interrupt coalescing settings
to the first queue and whenever the rx hash would direct us onto
that queue we ran faster.

With this patch applied and rx-usecs=50, I get 9330 Mbps
consistently.

Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Anton Blanchard and committed by David S. Miller c211c969 a715dea3

+10 -4
+10 -4
drivers/net/cxgb3/cxgb3_main.c
··· 1983 1983 { 1984 1984 struct port_info *pi = netdev_priv(dev); 1985 1985 struct adapter *adapter = pi->adapter; 1986 - struct qset_params *qsp = &adapter->params.sge.qset[0]; 1987 - struct sge_qset *qs = &adapter->sge.qs[0]; 1986 + struct qset_params *qsp; 1987 + struct sge_qset *qs; 1988 + int i; 1988 1989 1989 1990 if (c->rx_coalesce_usecs * 10 > M_NEWTIMER) 1990 1991 return -EINVAL; 1991 1992 1992 - qsp->coalesce_usecs = c->rx_coalesce_usecs; 1993 - t3_update_qset_coalesce(qs, qsp); 1993 + for (i = 0; i < pi->nqsets; i++) { 1994 + qsp = &adapter->params.sge.qset[i]; 1995 + qs = &adapter->sge.qs[i]; 1996 + qsp->coalesce_usecs = c->rx_coalesce_usecs; 1997 + t3_update_qset_coalesce(qs, qsp); 1998 + } 1999 + 1994 2000 return 0; 1995 2001 } 1996 2002