aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/cxgb3_main.c
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2007-03-31 03:23:19 -0400
committerJeff Garzik <jeff@garzik.org>2007-04-03 22:31:09 -0400
commit8ac3ba68e25a73594646ec30b7c482b364644c92 (patch)
tree1c15afe834f8f86f8a6c0a2c5da217de4afb6664 /drivers/net/cxgb3/cxgb3_main.c
parent9f238486f5438b2e44f760b11fa3a08714c1ddb6 (diff)
cxgb3 - detect NIC only adapters
Differentiate NIC only adapters from RNICs. Initialize offload capabilities for RNICs only. Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/cxgb3/cxgb3_main.c')
-rw-r--r--drivers/net/cxgb3/cxgb3_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c
index b82544e08689..145b67cc1d2e 100644
--- a/drivers/net/cxgb3/cxgb3_main.c
+++ b/drivers/net/cxgb3/cxgb3_main.c
@@ -407,7 +407,7 @@ static void quiesce_rx(struct adapter *adap)
407static int setup_sge_qsets(struct adapter *adap) 407static int setup_sge_qsets(struct adapter *adap)
408{ 408{
409 int i, j, err, irq_idx = 0, qset_idx = 0, dummy_dev_idx = 0; 409 int i, j, err, irq_idx = 0, qset_idx = 0, dummy_dev_idx = 0;
410 unsigned int ntxq = is_offload(adap) ? SGE_TXQ_PER_SET : 1; 410 unsigned int ntxq = SGE_TXQ_PER_SET;
411 411
412 if (adap->params.rev > 0 && !(adap->flags & USING_MSI)) 412 if (adap->params.rev > 0 && !(adap->flags & USING_MSI))
413 irq_idx = -1; 413 irq_idx = -1;
@@ -922,7 +922,7 @@ static int cxgb_open(struct net_device *dev)
922 return err; 922 return err;
923 923
924 set_bit(pi->port_id, &adapter->open_device_map); 924 set_bit(pi->port_id, &adapter->open_device_map);
925 if (!ofld_disable) { 925 if (is_offload(adapter) && !ofld_disable) {
926 err = offload_open(dev); 926 err = offload_open(dev);
927 if (err) 927 if (err)
928 printk(KERN_WARNING 928 printk(KERN_WARNING
@@ -2270,9 +2270,9 @@ static void __devinit print_port_info(struct adapter *adap,
2270 2270
2271 if (!test_bit(i, &adap->registered_device_map)) 2271 if (!test_bit(i, &adap->registered_device_map))
2272 continue; 2272 continue;
2273 printk(KERN_INFO "%s: %s %s RNIC (rev %d) %s%s\n", 2273 printk(KERN_INFO "%s: %s %s %sNIC (rev %d) %s%s\n",
2274 dev->name, ai->desc, pi->port_type->desc, 2274 dev->name, ai->desc, pi->port_type->desc,
2275 adap->params.rev, buf, 2275 is_offload(adap) ? "R" : "", adap->params.rev, buf,
2276 (adap->flags & USING_MSIX) ? " MSI-X" : 2276 (adap->flags & USING_MSIX) ? " MSI-X" :
2277 (adap->flags & USING_MSI) ? " MSI" : ""); 2277 (adap->flags & USING_MSI) ? " MSI" : "");
2278 if (adap->name == dev->name && adap->params.vpd.mclk) 2278 if (adap->name == dev->name && adap->params.vpd.mclk)