diff options
author | Brice Goglin <brice@myri.com> | 2008-08-06 10:15:23 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-08-07 01:54:46 -0400 |
commit | 77970ea50b8e7ee9733a6589bf61ed9c02f20ee9 (patch) | |
tree | b35525807e1c34085b642308fd9568a9606037cc /drivers/net | |
parent | 6a4c4ad2f0aa331324649579649c5d9064893079 (diff) |
myri10ge: set 64bits consistent DMA mask
Set 64bits consistent DMA mask since it improves performance
in some cases. No need to check the return value since it is
not required for the driver to work.
Signed-off-by: Brice Goglin <brice@myri.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/myri10ge/myri10ge.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index 3ab0e5289f7a..f1de38f8b742 100644 --- a/drivers/net/myri10ge/myri10ge.c +++ b/drivers/net/myri10ge/myri10ge.c | |||
@@ -3699,6 +3699,7 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
3699 | dev_err(&pdev->dev, "Error %d setting DMA mask\n", status); | 3699 | dev_err(&pdev->dev, "Error %d setting DMA mask\n", status); |
3700 | goto abort_with_netdev; | 3700 | goto abort_with_netdev; |
3701 | } | 3701 | } |
3702 | (void)pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK); | ||
3702 | mgp->cmd = dma_alloc_coherent(&pdev->dev, sizeof(*mgp->cmd), | 3703 | mgp->cmd = dma_alloc_coherent(&pdev->dev, sizeof(*mgp->cmd), |
3703 | &mgp->cmd_bus, GFP_KERNEL); | 3704 | &mgp->cmd_bus, GFP_KERNEL); |
3704 | if (mgp->cmd == NULL) | 3705 | if (mgp->cmd == NULL) |