summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-15 02:10:09 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-03-15 02:10:09 +0000
commit9df6fc2c3c23fd78cde57bffbf94cfa36b18b7d6 (patch)
tree1bec0c716bdd39a5d45ee8d245c987a078fbd811 /drivers/net
parente389acfa39369791ae235c28f7816a398d48f16a (diff)
parentb57ffb2a8466a7628b316c8e3a5ce34b8ee4e519 (diff)
net: mvpp2: fix DMA address calculation in mvpp2_txq_inc_put()
am: b57ffb2a84 Change-Id: I1cfecb3cd4e065ced5bedd6e48db679cec278d4f
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/marvell/mvpp2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.c
index 25aba9886990..0e67145bc418 100644
--- a/drivers/net/ethernet/marvell/mvpp2.c
+++ b/drivers/net/ethernet/marvell/mvpp2.c
@@ -993,7 +993,7 @@ static void mvpp2_txq_inc_put(struct mvpp2_txq_pcpu *txq_pcpu,
txq_pcpu->buffs + txq_pcpu->txq_put_index;
tx_buf->skb = skb;
tx_buf->size = tx_desc->data_size;
- tx_buf->phys = tx_desc->buf_phys_addr;
+ tx_buf->phys = tx_desc->buf_phys_addr + tx_desc->packet_offset;
txq_pcpu->txq_put_index++;
if (txq_pcpu->txq_put_index == txq_pcpu->size)
txq_pcpu->txq_put_index = 0;