bmips: improve rx loop
authorSieng Piaw Liew <liew.s.piaw@gmail.com>
Thu, 23 Jun 2022 06:48:42 +0000 (14:48 +0800)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Sat, 4 Mar 2023 18:28:16 +0000 (19:28 +0100)
commit6276dad6caadc6dc96bb6fb54d432bc8d8455a0e
tree3e101f5c0e1f92cd73b271d96cefe6182fd56a32
parent330cbcc09c4d142279b958e6d0e4b764dacd686c
bmips: improve rx loop

Use existing rx processed count to track against budget, thereby making
budget decrement operation redundant.
rx_desc_count can be calculated outside the rx loop, making the loop a
bit smaller.

Signed-off-by: Sieng Piaw Liew <liew.s.piaw@gmail.com>
target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c