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

commit e34f49348f upstream.

We should trace the allocated address instead of page struct.

Fixes: 27c874867c ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Chen Lin 2022-08-11 23:16:51 +08:00 коммит произвёл Greg Kroah-Hartman
Родитель f39b424b43
Коммит 69979b5e30
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1389,8 +1389,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);
} }