diff options
author | Chen Lin <chen45464546@163.com> | 2022-08-11 23:16:51 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-08-11 10:30:04 -0700 |
commit | e34f49348f8b7a53205b6f77707a3a6a40cf420b (patch) | |
tree | 59567db888329274bb1f311dc3089153781430ad | |
parent | 5c221f0af68cfa9edcffd26ba6dbbc4b7ddb1700 (diff) | |
download | linux-rpi-e34f49348f8b7a53205b6f77707a3a6a40cf420b.tar.gz linux-rpi-e34f49348f8b7a53205b6f77707a3a6a40cf420b.tar.bz2 linux-rpi-e34f49348f8b7a53205b6f77707a3a6a40cf420b.zip |
dpaa2-eth: trace the allocated address instead of page struct
We should trace the allocated address instead of page struct.
Fixes: 27c874867c4e ("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>
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c index cd9ec80522e7..75d51572693d 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c @@ -1660,8 +1660,8 @@ static int dpaa2_eth_add_bufs(struct dpaa2_eth_priv *priv, buf_array[i] = addr; /* tracing point */ - trace_dpaa2_eth_buf_seed(priv->net_dev, - page, DPAA2_ETH_RX_BUF_RAW_SIZE, + trace_dpaa2_eth_buf_seed(priv->net_dev, page_address(page), + DPAA2_ETH_RX_BUF_RAW_SIZE, addr, priv->rx_buf_size, bpid); } |