Skip to content

Commit 7f8a711

Browse files
chen45464546smb49
authored andcommitted
dpaa2-eth: trace the allocated address instead of page struct
BugLink: https://bugs.launchpad.net/bugs/1990190 commit e34f493 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent 9878259 commit 7f8a711

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
@@ -971,8 +971,8 @@ static int add_bufs(struct dpaa2_eth_priv *priv,
971971
buf_array[i] = addr;
972972

973973
/* tracing point */
974-
trace_dpaa2_eth_buf_seed(priv->net_dev,
975-
page, DPAA2_ETH_RX_BUF_RAW_SIZE,
974+
trace_dpaa2_eth_buf_seed(priv->net_dev, page_address(page),
975+
DPAA2_ETH_RX_BUF_RAW_SIZE,
976976
addr, priv->rx_buf_size,
977977
bpid);
978978
}

0 commit comments

Comments
 (0)