diff options
Diffstat (limited to 'drivers/net/ixgb/ixgb_main.c')
-rw-r--r-- | drivers/net/ixgb/ixgb_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index dfde80e54aef..6d2b059371f1 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb/ixgb_main.c | |||
@@ -685,7 +685,7 @@ ixgb_setup_tx_resources(struct ixgb_adapter *adapter) | |||
685 | /* round up to nearest 4K */ | 685 | /* round up to nearest 4K */ |
686 | 686 | ||
687 | txdr->size = txdr->count * sizeof(struct ixgb_tx_desc); | 687 | txdr->size = txdr->count * sizeof(struct ixgb_tx_desc); |
688 | IXGB_ROUNDUP(txdr->size, 4096); | 688 | txdr->size = ALIGN(txdr->size, 4096); |
689 | 689 | ||
690 | txdr->desc = pci_alloc_consistent(pdev, txdr->size, &txdr->dma); | 690 | txdr->desc = pci_alloc_consistent(pdev, txdr->size, &txdr->dma); |
691 | if(!txdr->desc) { | 691 | if(!txdr->desc) { |
@@ -774,7 +774,7 @@ ixgb_setup_rx_resources(struct ixgb_adapter *adapter) | |||
774 | /* Round up to nearest 4K */ | 774 | /* Round up to nearest 4K */ |
775 | 775 | ||
776 | rxdr->size = rxdr->count * sizeof(struct ixgb_rx_desc); | 776 | rxdr->size = rxdr->count * sizeof(struct ixgb_rx_desc); |
777 | IXGB_ROUNDUP(rxdr->size, 4096); | 777 | rxdr->size = ALIGN(rxdr->size, 4096); |
778 | 778 | ||
779 | rxdr->desc = pci_alloc_consistent(pdev, rxdr->size, &rxdr->dma); | 779 | rxdr->desc = pci_alloc_consistent(pdev, rxdr->size, &rxdr->dma); |
780 | 780 | ||