Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225179
b: refs/heads/master
c: b1a3c2b
h: refs/heads/master
i:
  225177: 22add44
  225175: 1d4124a
v: v3
  • Loading branch information
Dimitris Michailidis authored and David S. Miller committed Dec 16, 2010
1 parent 04feee3 commit 9b17635
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 24 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: ba27816cd8167c64652406d86ca78bcc5989f20f
refs/heads/master: b1a3c2b698ec333edc86bf8b5a636162ca309870
1 change: 0 additions & 1 deletion trunk/drivers/net/cxgb4/cxgb4.h
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,6 @@ struct adapter {
unsigned int fn;
unsigned int flags;

const char *name;
int msg_enable;

struct adapter_params params;
Expand Down
37 changes: 15 additions & 22 deletions trunk/drivers/net/cxgb4/cxgb4_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,10 +525,11 @@ static void name_msix_vecs(struct adapter *adap)
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);
snprintf(adap->msix_info[0].desc, n, "%s", adap->port[0]->name);

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

/* Ethernet queues */
for_each_port(adap, j) {
Expand All @@ -543,11 +544,11 @@ static void name_msix_vecs(struct adapter *adap)
/* offload queues */
for_each_ofldrxq(&adap->sge, i)
snprintf(adap->msix_info[msi_idx++].desc, n, "%s-ofld%d",
adap->name, i);
adap->port[0]->name, i);

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

static int request_msix_queue_irqs(struct adapter *adap)
Expand Down Expand Up @@ -2664,7 +2665,7 @@ static int cxgb_up(struct adapter *adap)
} else {
err = request_irq(adap->pdev->irq, t4_intr_handler(adap),
(adap->flags & USING_MSI) ? 0 : IRQF_SHARED,
adap->name, adap);
adap->port[0]->name, adap);
if (err)
goto irq_err;
}
Expand Down Expand Up @@ -3627,7 +3628,6 @@ static int __devinit init_one(struct pci_dev *pdev,
adapter->pdev = pdev;
adapter->pdev_dev = &pdev->dev;
adapter->fn = func;
adapter->name = pci_name(pdev);
adapter->msg_enable = dflt_msg_enable;
memset(adapter->chan_map, 0xff, sizeof(adapter->chan_map));

Expand Down Expand Up @@ -3724,26 +3724,19 @@ static int __devinit init_one(struct pci_dev *pdev,

err = register_netdev(adapter->port[i]);
if (err)
dev_warn(&pdev->dev,
"cannot register net device %s, skipping\n",
adapter->port[i]->name);
else {
/*
* Change the name we use for messages to the name of
* the first successfully registered interface.
*/
if (!adapter->registered_device_map)
adapter->name = adapter->port[i]->name;

__set_bit(i, &adapter->registered_device_map);
adapter->chan_map[pi->tx_chan] = i;
print_port_info(adapter->port[i]);
}
break;
__set_bit(i, &adapter->registered_device_map);
adapter->chan_map[pi->tx_chan] = i;
print_port_info(adapter->port[i]);
}
if (!adapter->registered_device_map) {
if (i == 0) {
dev_err(&pdev->dev, "could not register any net devices\n");
goto out_free_dev;
}
if (err) {
dev_warn(&pdev->dev, "only %d net devices registered\n", i);
err = 0;
};

if (cxgb4_debugfs_root) {
adapter->debugfs_root = debugfs_create_dir(pci_name(pdev),
Expand Down

0 comments on commit 9b17635

Please sign in to comment.