From: Nick Nunley Date: Wed, 17 Feb 2010 01:04:18 +0000 (+0000) Subject: igb: inline igb_maybe_stop_tx X-Git-Tag: firefly_0821_release~9833^2~3055^2~223 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=717ba0893508c2c8706c1408c152aa6d286d5d80;p=firefly-linux-kernel-4.4.55.git igb: inline igb_maybe_stop_tx igb_maybe_stop_tx() is extremely small and appears in several spots in the tx hotpath. This change inlines the function for a possible performance boost. Signed-off-by: Nicholas Nunley Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index cba0115a6a57..a1fe581febc0 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c @@ -3758,7 +3758,7 @@ static int __igb_maybe_stop_tx(struct igb_ring *tx_ring, int size) return 0; } -static int igb_maybe_stop_tx(struct igb_ring *tx_ring, int size) +static inline int igb_maybe_stop_tx(struct igb_ring *tx_ring, int size) { if (igb_desc_unused(tx_ring) >= size) return 0;