lkml.org 
[lkml]   [2022]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 327/389] dpaa2-eth: trace the allocated address instead of page struct
    Date
    From: Chen Lin <chen45464546@163.com>

    commit e34f49348f8b7a53205b6f77707a3a6a40cf420b upstream.

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
    +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
    @@ -971,8 +971,8 @@ static int add_bufs(struct dpaa2_eth_pri
    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);
    }

    \
     
     \ /
      Last update: 2022-08-23 13:57    [W:4.030 / U:0.252 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site