]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: ethernet: drop open coding 20030/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 12 Sep 2025 11:14:25 +0000 (07:14 -0400)
committerRobert Marko <robimarko@gmail.com>
Wed, 17 Sep 2025 17:22:37 +0000 (19:22 +0200)
commit60bdae3ab3f82c4968445a88275e53e3e6991bc2
tree0bbec374045e684de9c0dd1a6cdfa83156a3040e
parent532c51c15a3277b8375321a7588f12da06689d52
realtek: ethernet: drop open coding

There is some open coding in the ethernet driver. Drop
that and use kernel helpers instead.

- Use napi_gro_receive() instead of local skb list
- Use skb_put_data() instead of skb_put() plus memcpy()
- Use netdev_alloc_skb_ip_align() instead of manual alignment

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/20030
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c