Skip to content

Commit 8112ec3

Browse files
edumazetdavem330
authored andcommitted
mlx4: dont orphan skbs in mlx4_en_xmit()
After commit e22979d (mlx4_en: Moving to Interrupts for TX completions) we no longer need to orphan skbs in mlx4_en_xmit() since skb wont stay a long time in TX ring before their release. Orphaning skbs in ndo_start_xmit() should be avoided as much as possible, since it breaks TCP Small Queue or other flow control mechanisms (per socket limits) Signed-off-by: Eric Dumazet <[email protected]> Acked-by: Yevgeny Petrilin <[email protected]> Cc: Or Gerlitz <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 60769a5 commit 8112ec3

File tree

1 file changed

+0
-4
lines changed
  • drivers/net/ethernet/mellanox/mlx4

1 file changed

+0
-4
lines changed

drivers/net/ethernet/mellanox/mlx4/en_tx.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -712,10 +712,6 @@ netdev_tx_t mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev)
712712
if (bounce)
713713
tx_desc = mlx4_en_bounce_to_desc(priv, ring, index, desc_size);
714714

715-
/* Run destructor before passing skb to HW */
716-
if (likely(!skb_shared(skb)))
717-
skb_orphan(skb);
718-
719715
if (ring->bf_enabled && desc_size <= MAX_BF && !bounce && !vlan_tag) {
720716
*(__be32 *) (&tx_desc->ctrl.vlan_tag) |= cpu_to_be32(ring->doorbell_qpn);
721717
op_own |= htonl((bf_index & 0xffff) << 8);

0 commit comments

Comments
 (0)