ixgbe: inline the ixgbe_maybe_stop_tx function
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sat, 11 Jun 2011 01:44:58 +0000 (01:44 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 Jul 2011 05:54:38 +0000 (22:54 -0700)
The ixgbe_maybe_stop_tx function is only a few lines long and is called
multiple times through the xmit hotpath.  In order to streamline things it
makes sense to just inline it.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe_main.c

index f05ddf31a19fc2b6a5e464eea441f0dc52c63caa..7275c5cc09b2ba49a2a5ce05d206c24b9a933cca 100644 (file)
@@ -6785,7 +6785,7 @@ static int __ixgbe_maybe_stop_tx(struct ixgbe_ring *tx_ring, u16 size)
        return 0;
 }
 
-static int ixgbe_maybe_stop_tx(struct ixgbe_ring *tx_ring, u16 size)
+static inline int ixgbe_maybe_stop_tx(struct ixgbe_ring *tx_ring, u16 size)
 {
        if (likely(ixgbe_desc_unused(tx_ring) >= size))
                return 0;