aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgb/ixgb_ethtool.c
diff options
context:
space:
mode:
authorMilind Arun Choudhary <milindchoudhary@gmail.com>2007-04-27 16:55:31 -0400
committerJeff Garzik <jeff@garzik.org>2007-04-28 11:01:07 -0400
commit55e924cf5772cbcf00549e448be35b392ff3084c (patch)
tree088aeee07c810987ba32f24e9ee7ec2581106257 /drivers/net/ixgb/ixgb_ethtool.c
parent9099cfb9170f352f08207dfa099717a904cff71f (diff)
ixgb: ROUND_UP macro cleanup in drivers/net/ixgb
IXGB_ROUNDUP macro cleanup ,use ALIGN Signed-off-by: Milind Arun Choudhary <milindchoudhary@gmail.com> Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ixgb/ixgb_ethtool.c')
-rw-r--r--drivers/net/ixgb/ixgb_ethtool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ixgb/ixgb_ethtool.c b/drivers/net/ixgb/ixgb_ethtool.c
index d6628bd9590a..afde84868bea 100644
--- a/drivers/net/ixgb/ixgb_ethtool.c
+++ b/drivers/net/ixgb/ixgb_ethtool.c
@@ -577,11 +577,11 @@ ixgb_set_ringparam(struct net_device *netdev,
577 577
578 rxdr->count = max(ring->rx_pending,(uint32_t)MIN_RXD); 578 rxdr->count = max(ring->rx_pending,(uint32_t)MIN_RXD);
579 rxdr->count = min(rxdr->count,(uint32_t)MAX_RXD); 579 rxdr->count = min(rxdr->count,(uint32_t)MAX_RXD);
580 IXGB_ROUNDUP(rxdr->count, IXGB_REQ_RX_DESCRIPTOR_MULTIPLE); 580 rxdr->count = ALIGN(rxdr->count, IXGB_REQ_RX_DESCRIPTOR_MULTIPLE);
581 581
582 txdr->count = max(ring->tx_pending,(uint32_t)MIN_TXD); 582 txdr->count = max(ring->tx_pending,(uint32_t)MIN_TXD);
583 txdr->count = min(txdr->count,(uint32_t)MAX_TXD); 583 txdr->count = min(txdr->count,(uint32_t)MAX_TXD);
584 IXGB_ROUNDUP(txdr->count, IXGB_REQ_TX_DESCRIPTOR_MULTIPLE); 584 txdr->count = ALIGN(txdr->count, IXGB_REQ_TX_DESCRIPTOR_MULTIPLE);
585 585
586 if(netif_running(adapter->netdev)) { 586 if(netif_running(adapter->netdev)) {
587 /* Try to get new resources before deleting old */ 587 /* Try to get new resources before deleting old */