From: Alexander Duyck Date: Sat, 11 Jun 2011 01:44:58 +0000 (+0000) Subject: ixgbe: inline the ixgbe_maybe_stop_tx function X-Git-Tag: v2.6.39-400.9.0~619^2~9 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=03a70d4a2397baf48120da599acca7c0dfa50168;p=users%2Fjedix%2Flinux-maple.git 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 Tested-by: Ross Brattain Signed-off-by: Jeff Kirsher (cherry picked from commit 82d4e46e2a398154273044dd9813206f0d85bc09) Signed-off-by: Joe Jin --- diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 4d3fbb691e45..fe25dfd5c52b 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c @@ -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;