Skip to content

Commit e34f493

Browse files
chen45464546kuba-moo
authored andcommitted
dpaa2-eth: trace the allocated address instead of page struct
We should trace the allocated address instead of page struct. Fixes: 27c8748 ("dpaa2-eth: Use a single page per Rx buffer") Signed-off-by: Chen Lin <chen.lin5@zte.com.cn> Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com> Link: https://lore.kernel.org/r/20220811151651.3327-1-chen45464546@163.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 5c221f0 commit e34f493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,8 +1660,8 @@ static int dpaa2_eth_add_bufs(struct dpaa2_eth_priv *priv,
16601660
buf_array[i] = addr;
16611661

16621662
/* tracing point */
1663-
trace_dpaa2_eth_buf_seed(priv->net_dev,
1664-
page, DPAA2_ETH_RX_BUF_RAW_SIZE,
1663+
trace_dpaa2_eth_buf_seed(priv->net_dev, page_address(page),
1664+
DPAA2_ETH_RX_BUF_RAW_SIZE,
16651665
addr, priv->rx_buf_size,
16661666
bpid);
16671667
}

0 commit comments

Comments
 (0)