net: ravb: Fix RX frame size limit
authorPaul Barker <paul.barker.ct@bp.renesas.com>
Tue, 4 Mar 2025 20:07:08 +0000 (20:07 +0000)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 11 Mar 2025 22:06:18 +0000 (23:06 +0100)
commit4226433858318be5914688963436ad41cbe2298d
tree8b3ab8769abbc9c1df2aed22ec3666be405161c8
parent78e15e2dd9ca79a2dd8c821197ddd8239f09e753
net: ravb: Fix RX frame size limit

The value written to the RFLR register includes the length of the CRC
data at the end of each Ethernet frame. So we need to increase the value
written to this register to ensure that we can receive full size frames.

While we're here we can also copy the improved comment from the Linux
kernel.

Fixes: 8ae51b6f324e ("net: ravb: Add Renesas Ethernet RAVB driver")
Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> # Fix comment
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/net/ravb.c