Commit e34f4934 authored by Chen Lin's avatar Chen Lin Committed by Jakub Kicinski

dpaa2-eth: trace the allocated address instead of page struct

We should trace the allocated address instead of page struct.

Fixes: 27c87486 ("dpaa2-eth: Use a single page per Rx buffer")
Signed-off-by: default avatarChen Lin <chen.lin5@zte.com.cn>
Reviewed-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/20220811151651.3327-1-chen45464546@163.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 5c221f0a
...@@ -1660,8 +1660,8 @@ static int dpaa2_eth_add_bufs(struct dpaa2_eth_priv *priv, ...@@ -1660,8 +1660,8 @@ static int dpaa2_eth_add_bufs(struct dpaa2_eth_priv *priv,
buf_array[i] = addr; buf_array[i] = addr;
/* tracing point */ /* tracing point */
trace_dpaa2_eth_buf_seed(priv->net_dev, trace_dpaa2_eth_buf_seed(priv->net_dev, page_address(page),
page, DPAA2_ETH_RX_BUF_RAW_SIZE, DPAA2_ETH_RX_BUF_RAW_SIZE,
addr, priv->rx_buf_size, addr, priv->rx_buf_size,
bpid); bpid);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment