diff options
author | Nick Nunley <nicholasx.d.nunley@intel.com> | 2010-02-16 20:04:18 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-17 16:21:36 -0500 |
commit | 717ba0893508c2c8706c1408c152aa6d286d5d80 (patch) | |
tree | 47a5de1340fef6ad52c3242273979a03fa563bd4 /drivers/net/igb/igb_main.c | |
parent | 43915c7c9a99e38406103d9c72b73edeaa19d0ff (diff) |
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 <nicholasx.d.nunley@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/igb_main.c')
-rw-r--r-- | drivers/net/igb/igb_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
3758 | return 0; | 3758 | return 0; |
3759 | } | 3759 | } |
3760 | 3760 | ||
3761 | static int igb_maybe_stop_tx(struct igb_ring *tx_ring, int size) | 3761 | static inline int igb_maybe_stop_tx(struct igb_ring *tx_ring, int size) |
3762 | { | 3762 | { |
3763 | if (igb_desc_unused(tx_ring) >= size) | 3763 | if (igb_desc_unused(tx_ring) >= size) |
3764 | return 0; | 3764 | return 0; |