ravb: Correct buffer size to map for R-Car Rx
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Fri, 8 Mar 2024 22:42:37 +0000 (23:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 Mar 2024 22:16:57 +0000 (15:16 -0700)
commita290d4cb892da3e9e163a40d0ab70ed1531cdc58
treee07feec040f39ed14a7f8ae263be70b20c7d4255
parent7598531c3aed26ffd98e054d8d9934e44c0e2c25
ravb: Correct buffer size to map for R-Car Rx

When creating a helper to allocate and align an skb one location where
the skb data size was updated was missed. This can lead to a warning
being printed when the memory is being unmapped as it now always unmap
the maximum frame size, instead of the size after it have been
aligned.

This was correctly done for RZ/G2L but missed for R-Car.

Fixes: cfbad64706c1 ("ravb: Create helper to allocate skb and align it")
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20240308224237.496924-1-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/renesas/ravb_main.c