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

Commit ed6aa105 authored by Alexander Duyck's avatar Alexander Duyck Committed by David S. Miller
Browse files

igb: Make TSO check for CHECKSUM_PARTIAL to avoid skb_is_gso check



This change is meant to reduce the overhead for workloads that are not
using either TSO or checksum offloads.  Most of the time the compiler
should jump ahead after failing this check to the VLAN check since in the
igb_tx_csum call we start with that check as well.

Signed-off-by: default avatarAlexander Duyck <alexander.h.duyck@intel.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 039454a8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3998,6 +3998,9 @@ static int igb_tso(struct igb_ring *tx_ring,
	u32 vlan_macip_lens, type_tucmd;
	u32 mss_l4len_idx, l4len;

	if (skb->ip_summed != CHECKSUM_PARTIAL)
		return 0;

	if (!skb_is_gso(skb))
		return 0;