net/mlx5e: Avoid redundant dev_kfree_skb() upon NOP completion
NOP completion SKBs are always NULL. Signed-off-by: Achiad Shochat <achiad@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ef583d037d
commit
9fc5930625
1 changed files with 1 additions and 3 deletions
|
@ -294,7 +294,7 @@ bool mlx5e_poll_tx_cq(struct mlx5e_cq *cq)
|
|||
if (unlikely(!skb)) { /* nop */
|
||||
sq->stats.nop++;
|
||||
sqcc++;
|
||||
goto free_skb;
|
||||
continue;
|
||||
}
|
||||
|
||||
for (j = 0; j < MLX5E_TX_SKB_CB(skb)->num_dma; j++) {
|
||||
|
@ -309,8 +309,6 @@ bool mlx5e_poll_tx_cq(struct mlx5e_cq *cq)
|
|||
npkts++;
|
||||
nbytes += MLX5E_TX_SKB_CB(skb)->num_bytes;
|
||||
sqcc += MLX5E_TX_SKB_CB(skb)->num_wqebbs;
|
||||
|
||||
free_skb:
|
||||
dev_kfree_skb(skb);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue