aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2011-06-10 21:44:58 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-07-22 01:54:38 -0400
commit82d4e46e2a398154273044dd9813206f0d85bc09 (patch)
treec97f00345a07035469d382120c55d54a92cb82d9 /drivers
parent6440752c872e418452a2cbbf5e73d546affe2b28 (diff)
ixgbe: inline the ixgbe_maybe_stop_tx function
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index f05ddf31a19..7275c5cc09b 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -6785,7 +6785,7 @@ static int __ixgbe_maybe_stop_tx(struct ixgbe_ring *tx_ring, u16 size)
6785 return 0; 6785 return 0;
6786} 6786}
6787 6787
6788static int ixgbe_maybe_stop_tx(struct ixgbe_ring *tx_ring, u16 size) 6788static inline int ixgbe_maybe_stop_tx(struct ixgbe_ring *tx_ring, u16 size)
6789{ 6789{
6790 if (likely(ixgbe_desc_unused(tx_ring) >= size)) 6790 if (likely(ixgbe_desc_unused(tx_ring) >= size))
6791 return 0; 6791 return 0;