aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ixgbe')
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index a3572d1e0a9a..8c32c18f569c 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -1553,9 +1553,6 @@ static void ixgbe_configure_srrctl(struct ixgbe_adapter *adapter, int index)
1553 IXGBE_WRITE_REG(&adapter->hw, IXGBE_SRRCTL(index), srrctl); 1553 IXGBE_WRITE_REG(&adapter->hw, IXGBE_SRRCTL(index), srrctl);
1554} 1554}
1555 1555
1556#define PAGE_USE_COUNT(S) (((S) >> PAGE_SHIFT) + \
1557 (((S) & (PAGE_SIZE - 1)) ? 1 : 0))
1558
1559/** 1556/**
1560 * ixgbe_configure_rx - Configure 8259x Receive Unit after Reset 1557 * ixgbe_configure_rx - Configure 8259x Receive Unit after Reset
1561 * @adapter: board private structure 1558 * @adapter: board private structure
@@ -1574,7 +1571,6 @@ static void ixgbe_configure_rx(struct ixgbe_adapter *adapter)
1574 0xA54F2BEC, 0xEA49AF7C, 0xE214AD3D, 0xB855AABE, 1571 0xA54F2BEC, 0xEA49AF7C, 0xE214AD3D, 0xB855AABE,
1575 0x6A3E67EA, 0x14364D17, 0x3BED200D}; 1572 0x6A3E67EA, 0x14364D17, 0x3BED200D};
1576 u32 fctrl, hlreg0; 1573 u32 fctrl, hlreg0;
1577 u32 pages;
1578 u32 reta = 0, mrqc; 1574 u32 reta = 0, mrqc;
1579 u32 rdrxctl; 1575 u32 rdrxctl;
1580 int rx_buf_len; 1576 int rx_buf_len;
@@ -1604,8 +1600,6 @@ static void ixgbe_configure_rx(struct ixgbe_adapter *adapter)
1604 hlreg0 |= IXGBE_HLREG0_JUMBOEN; 1600 hlreg0 |= IXGBE_HLREG0_JUMBOEN;
1605 IXGBE_WRITE_REG(hw, IXGBE_HLREG0, hlreg0); 1601 IXGBE_WRITE_REG(hw, IXGBE_HLREG0, hlreg0);
1606 1602
1607 pages = PAGE_USE_COUNT(adapter->netdev->mtu);
1608
1609 rdlen = adapter->rx_ring[0].count * sizeof(union ixgbe_adv_rx_desc); 1603 rdlen = adapter->rx_ring[0].count * sizeof(union ixgbe_adv_rx_desc);
1610 /* disable receives while setting up the descriptors */ 1604 /* disable receives while setting up the descriptors */
1611 rxctrl = IXGBE_READ_REG(hw, IXGBE_RXCTRL); 1605 rxctrl = IXGBE_READ_REG(hw, IXGBE_RXCTRL);