mlx4_en: Fixed incorrect unmapping on RX flow.
When allocating new fragments to replace the ones that would be passed to the stack, The fragments that should be replaced, are the ones that were already used. Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c2e3143e3c
commit
69351a2933
1 changed files with 1 additions and 1 deletions
|
@ -459,7 +459,7 @@ static int mlx4_en_complete_rx_desc(struct mlx4_en_priv *priv,
|
|||
goto fail;
|
||||
|
||||
/* Unmap buffer */
|
||||
pci_unmap_single(mdev->pdev, dma, skb_frags[nr].size,
|
||||
pci_unmap_single(mdev->pdev, dma, skb_frags_rx[nr].size,
|
||||
PCI_DMA_FROMDEVICE);
|
||||
}
|
||||
/* Adjust size of last fragment to match actual length */
|
||||
|
|
Loading…
Add table
Reference in a new issue