Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225178
b: refs/heads/master
c: ba27816
h: refs/heads/master
v: v3
  • Loading branch information
Dimitris Michailidis authored and David S. Miller committed Dec 16, 2010
1 parent 22add44 commit 04feee3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8cd18ac47f9642bcd0d30d4b3521359b1896c208
refs/heads/master: ba27816cd8167c64652406d86ca78bcc5989f20f
21 changes: 7 additions & 14 deletions trunk/drivers/net/cxgb4/cxgb4_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,39 +522,32 @@ static irqreturn_t t4_nondata_intr(int irq, void *cookie)
*/
static void name_msix_vecs(struct adapter *adap)
{
int i, j, msi_idx = 2, n = sizeof(adap->msix_info[0].desc) - 1;
int i, j, msi_idx = 2, n = sizeof(adap->msix_info[0].desc);

/* non-data interrupts */
snprintf(adap->msix_info[0].desc, n, "%s", adap->name);
adap->msix_info[0].desc[n] = 0;

/* FW events */
snprintf(adap->msix_info[1].desc, n, "%s-FWeventq", adap->name);
adap->msix_info[1].desc[n] = 0;

/* Ethernet queues */
for_each_port(adap, j) {
struct net_device *d = adap->port[j];
const struct port_info *pi = netdev_priv(d);

for (i = 0; i < pi->nqsets; i++, msi_idx++) {
for (i = 0; i < pi->nqsets; i++, msi_idx++)
snprintf(adap->msix_info[msi_idx].desc, n, "%s-Rx%d",
d->name, i);
adap->msix_info[msi_idx].desc[n] = 0;
}
}

/* offload queues */
for_each_ofldrxq(&adap->sge, i) {
snprintf(adap->msix_info[msi_idx].desc, n, "%s-ofld%d",
for_each_ofldrxq(&adap->sge, i)
snprintf(adap->msix_info[msi_idx++].desc, n, "%s-ofld%d",
adap->name, i);
adap->msix_info[msi_idx++].desc[n] = 0;
}
for_each_rdmarxq(&adap->sge, i) {
snprintf(adap->msix_info[msi_idx].desc, n, "%s-rdma%d",

for_each_rdmarxq(&adap->sge, i)
snprintf(adap->msix_info[msi_idx++].desc, n, "%s-rdma%d",
adap->name, i);
adap->msix_info[msi_idx++].desc[n] = 0;
}
}

static int request_msix_queue_irqs(struct adapter *adap)
Expand Down

0 comments on commit 04feee3

Please sign in to comment.