mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 00:17:02 +04:00
The four SoC-specific net_device_ops tables differ only in their RX mode and feature callbacks. Move the RX mode callback and RX checksum mask into rteth_cfg and use shared wrappers with a single net_device_ops table. Preserve the existing RX mode handlers and checksum control bits for each SoC. This removes duplicated callback tables without changing driver behavior. Assisted-by: ChatGPT (OpenAI GPT-6.1 Sol) Link: https://github.com/openwrt/openwrt/pull/25574 Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>