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

Commit b89df95d authored by Rick Jones's avatar Rick Jones Committed by David S. Miller
Browse files

mlx4_en: Convert the normal skb free path to dev_consume_skb_any()



It would appear the mlx4_en driver was still making a call to
dev_kfree_skb_any() where dev_consume_skb_any() would be more
appropriate.  This should make dropped packet profiling/tracking
easier/better over a NIC driven by mlx4_en.

Signed-off-by: default avatarRick Jones <rick.jones2@hp.com>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 94000176
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -319,7 +319,7 @@ static u32 mlx4_en_free_tx_desc(struct mlx4_en_priv *priv,
			}
			}
		}
		}
	}
	}
	dev_kfree_skb_any(skb);
	dev_consume_skb_any(skb);
	return tx_info->nr_txbb;
	return tx_info->nr_txbb;
}
}