]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ixgbe: Remove unused inline function ixgbe_irq_disable_queues
authorYueHaibing <yuehaibing@huawei.com>
Tue, 5 May 2020 08:35:54 +0000 (16:35 +0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 29 May 2020 03:01:39 +0000 (20:01 -0700)
commit b1a7446fe434 ("ixgbe: avoid bringing rings up/down as macvlans are added/removed")
left behind this, remove it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

index 45fc7ce1a54344bff6b1a7a9a9ff7f2af094ab32..a59c166f794f5501ad0544ccc4824f132153ed21 100644 (file)
@@ -2973,35 +2973,6 @@ static inline void ixgbe_irq_enable_queues(struct ixgbe_adapter *adapter,
        /* skip the flush */
 }
 
-static inline void ixgbe_irq_disable_queues(struct ixgbe_adapter *adapter,
-                                           u64 qmask)
-{
-       u32 mask;
-       struct ixgbe_hw *hw = &adapter->hw;
-
-       switch (hw->mac.type) {
-       case ixgbe_mac_82598EB:
-               mask = (IXGBE_EIMS_RTX_QUEUE & qmask);
-               IXGBE_WRITE_REG(hw, IXGBE_EIMC, mask);
-               break;
-       case ixgbe_mac_82599EB:
-       case ixgbe_mac_X540:
-       case ixgbe_mac_X550:
-       case ixgbe_mac_X550EM_x:
-       case ixgbe_mac_x550em_a:
-               mask = (qmask & 0xFFFFFFFF);
-               if (mask)
-                       IXGBE_WRITE_REG(hw, IXGBE_EIMC_EX(0), mask);
-               mask = (qmask >> 32);
-               if (mask)
-                       IXGBE_WRITE_REG(hw, IXGBE_EIMC_EX(1), mask);
-               break;
-       default:
-               break;
-       }
-       /* skip the flush */
-}
-
 /**
  * ixgbe_irq_enable - Enable default interrupt generation settings
  * @adapter: board private structure