diff options
Diffstat (limited to 'drivers/net/ixgb/ixgb_ethtool.c')
-rw-r--r-- | drivers/net/ixgb/ixgb_ethtool.c | 4 |
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 */ |