Patch "net: ravb: Fix max TX frame size for RZ/V2M" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: ravb: Fix max TX frame size for RZ/V2M

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-ravb-fix-max-tx-frame-size-for-rz-v2m.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 15142367fbab4567e4d720c9799725e57555ac8f
Author: Paul Barker <paul.barker.ct@xxxxxxxxxxxxxx>
Date:   Thu Jan 9 11:37:06 2025 +0000

    net: ravb: Fix max TX frame size for RZ/V2M
    
    [ Upstream commit e7e441a4100e4bc90b52f80494a28a9667993975 ]
    
    When tx_max_frame_size was added to struct ravb_hw_info, no value was
    set in ravb_rzv2m_hw_info so the default value of zero was used.
    
    The maximum MTU is set by subtracting from tx_max_frame_size to allow
    space for headers and frame checksums. As ndev->max_mtu is unsigned,
    this subtraction wraps around leading to a ridiculously large positive
    value that is obviously incorrect.
    
    Before tx_max_frame_size was introduced, the maximum MTU was based on
    rx_max_frame_size. So, we can restore the correct maximum MTU by copying
    the rx_max_frame_size value into tx_max_frame_size for RZ/V2M.
    
    Fixes: 1d63864299ca ("net: ravb: Fix maximum TX frame size for GbEth devices")
    Signed-off-by: Paul Barker <paul.barker.ct@xxxxxxxxxxxxxx>
    Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx>
    Reviewed-by: Simon Horman <horms@xxxxxxxxxx>
    Reviewed-by: Sergey Shtylyov <s.shtylyov@xxxxxx>
    Link: https://patch.msgid.link/20250109113706.1409149-1-paul.barker.ct@xxxxxxxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c
index 907af4651c553..6f6b0566c65bc 100644
--- a/drivers/net/ethernet/renesas/ravb_main.c
+++ b/drivers/net/ethernet/renesas/ravb_main.c
@@ -2756,6 +2756,7 @@ static const struct ravb_hw_info ravb_rzv2m_hw_info = {
 	.net_features = NETIF_F_RXCSUM,
 	.stats_len = ARRAY_SIZE(ravb_gstrings_stats),
 	.tccr_mask = TCCR_TSRQ0 | TCCR_TSRQ1 | TCCR_TSRQ2 | TCCR_TSRQ3,
+	.tx_max_frame_size = SZ_2K,
 	.rx_max_frame_size = SZ_2K,
 	.rx_buffer_size = SZ_2K +
 			  SKB_DATA_ALIGN(sizeof(struct skb_shared_info)),




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux