openwrt/target/linux/realtek
Markus Stockhausen 47d0773d7d realtek: eth: cleanup packet length calculation
During transmit the driver must adapt the packet length. The
hardware requires at least a memory space of ETH_ZLEN bytes
data plus four bytes for layer 2 FCS. This was calculated
(somehow) but skb->len never got updated and for the minimum
length a RTL838x specific workaround was in place. Clean up
the code and use skb_put_padto() so the length change gets
reflected in skb->len.

While we are here drop zeroing DSA tag because it will be
overwritten by hardware for FCS.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21999
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-02-19 10:47:55 +01:00
..
base-files realtek: switch Zyxel XGS1210 to NVMEM 2026-02-15 12:02:38 +01:00
dts realtek: switch Zyxel XGS1210 to NVMEM 2026-02-15 12:02:38 +01:00
files-6.12 realtek: eth: cleanup packet length calculation 2026-02-19 10:47:55 +01:00
image realtek: add support for Zyxel GS1920-24HPv2 2026-02-13 23:33:25 +01:00
patches-6.12 kernel: bump 6.12 to 6.12.71 2026-02-14 18:30:02 +01:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl839x realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl930x realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl930x_nand realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl931x realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl931x_nand realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
Makefile realtek: add NAND targets for RTL93xx 2025-08-10 11:46:52 +02:00