]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
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)
committerJoe Jin <joe.jin@oracle.com>
Fri, 3 Feb 2012 01:20:10 +0000 (09:20 +0800)
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>
(cherry picked from commit 82d4e46e2a398154273044dd9813206f0d85bc09)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_main.c

index 4d3fbb691e450ed5fa9f3dbec90498d9054e6359..fe25dfd5c52b0bd82e472607334087d9573b388a 100644 (file)
@@ -6842,7 +6842,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;