mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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 <alexander.h.duyck@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
6440752c87
commit
82d4e46e2a
1 changed files with 1 additions and 1 deletions
|
@ -6785,7 +6785,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;
|
||||
|
|
Loading…
Reference in a new issue