projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c221f0
)
dpaa2-eth: trace the allocated address instead of page struct
author
Chen Lin
<chen45464546@163.com>
Thu, 11 Aug 2022 15:16:51 +0000
(23:16 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Thu, 11 Aug 2022 17:30:04 +0000
(10:30 -0700)
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>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
index
cd9ec80
..
75d5157
100644
(file)
--- 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);
}