]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: eth: Use right helper for SKB cleanup
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 24 May 2026 08:48:26 +0000 (10:48 +0200)
committerMarkus Stockhausen <markus.stockhausen@gmx.de>
Sat, 30 May 2026 06:50:00 +0000 (08:50 +0200)
commitb0e263a5ed4807c2a7c039cd951053fa638ef409
tree6db4675d26fc46df753acb70a782e64dcc8ecaf5
parent934de59abe0b49e3b375eec5b5214e929ccfb9e0
realtek: eth: Use right helper for SKB cleanup

There are two helpers to cleanup SKBs that call iternally
dev_kfree_skb_any_reason() but with different error codes.

- dev_kfree_skb_any() reason SKB_DROP_REASON_NOT_SPECIFIED
- dev_consume_skb_any() reason SKB_CONSUMED

The driver does not distinct between the two. Change this and
clean up a SKB that was handed over to the hardware with
dev_consume_skb_any(). This way kernel knows that everything
went well.

Link: https://github.com/openwrt/openwrt/pull/23483
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
target/linux/realtek/files-6.18/drivers/net/ethernet/rtl838x_eth.c