Skip to contentSkip to conversation

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

PATCH Superseded Chen Lin 3 participants 4 messages Aug 10, 2022 – Aug 11, 2022

Subsystems (3)
lore
Share & tools
lore

Chen Lin

author
#0 lore raw

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

Follow the commit 27c874867c4(dpaa2-eth: Use a single page per Rx buffer), we should trace the allocated address instead of page struct.

---
 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c +2 -2
index cd9ec8052..75d515726 100644
@@ -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);
 	}
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Chen Lin

Follow the commit 27c874867c4(dpaa2-eth: Use a single page per Rx buffer), we should trace the allocated address instead of page struct.

Is this intended for the net tree? In that case, maybe it would be a good idea to add a fixes tag to the commit that you are already referencing.

Ioana

author
#2 lore raw

PATCH v2 1/1 dpaa2-eth: trace the allocated address instead of page struct

We should trace the allocated address instead of page struct.

Fixes 27c874867c4 ("dpaa2-eth: Use a single page per Rx buffer")
---
 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c +2 -2
index cd9ec8052..75d515726 100644
@@ -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);
 	}
Signature · 1 line
2.25.1
#3 lore raw
This patch was applied to netdev/net.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Thu, 11 Aug 2022 23:16:51 +0800 you wrote:

We should trace the allocated address instead of page struct.

Fixes 27c874867c4 ("dpaa2-eth: Use a single page per Rx buffer")
---
 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Here is the summary with links:
- [v2] dpaa2-eth: trace the allocated address instead of page struct

    https://git.kernel.org/netdev/net/c/e34f49348f8b

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html