mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-14 21:47:41 +04:00
rteth_hw_receive() repeatedly accesses the RX ring state through ctrl->rx_info[ring]. Introduce a local rx_info pointer for the selected ring and use it throughout the receive path. This reduces repeated array indexing and makes the relationship between the NAPI instance and its per-ring state clearer. No functional change intended. Assisted-by: ChatGPT (OpenAI GPT-5.6 Sol) Link: https://github.com/openwrt/openwrt/pull/24874 Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>