Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;