Skip to content

Commit 871dd09

Browse files
Shannon NelsonJeff Kirsher
authored andcommitted
ixgbe: remove unneeded ipsec test in TX path
Since the ipsec data fields will be zero anyway in the non-ipsec case, we can remove the conditional jump. Suggested-by: Alexander Duyck <[email protected]> Signed-off-by: Shannon Nelson <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 2137aec commit 871dd09

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7873,10 +7873,8 @@ static void ixgbe_tx_csum(struct ixgbe_ring *tx_ring,
78737873
vlan_macip_lens |= skb_network_offset(skb) << IXGBE_ADVTXD_MACLEN_SHIFT;
78747874
vlan_macip_lens |= first->tx_flags & IXGBE_TX_FLAGS_VLAN_MASK;
78757875

7876-
if (first->tx_flags & IXGBE_TX_FLAGS_IPSEC) {
7877-
fceof_saidx |= itd->sa_idx;
7878-
type_tucmd |= itd->flags | itd->trailer_len;
7879-
}
7876+
fceof_saidx |= itd->sa_idx;
7877+
type_tucmd |= itd->flags | itd->trailer_len;
78807878

78817879
ixgbe_tx_ctxtdesc(tx_ring, vlan_macip_lens, fceof_saidx, type_tucmd, 0);
78827880
}

0 commit comments

Comments
 (0)