Commit 717ba089 authored by Nick Nunley's avatar Nick Nunley Committed by David S. Miller

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: default avatarNicholas Nunley <nicholasx.d.nunley@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 43915c7c
...@@ -3758,7 +3758,7 @@ static int __igb_maybe_stop_tx(struct igb_ring *tx_ring, int size) ...@@ -3758,7 +3758,7 @@ static int __igb_maybe_stop_tx(struct igb_ring *tx_ring, int size)
return 0; 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) if (igb_desc_unused(tx_ring) >= size)
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment