]> git.baikalelectronics.ru Git - kernel.git/commit
bcm63xx_enet: consolidate rx SKB ring cleanup code
authorSieng Piaw Liew <liew.s.piaw@gmail.com>
Wed, 6 Jan 2021 14:42:06 +0000 (22:42 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Jan 2021 20:39:53 +0000 (12:39 -0800)
commit6c49faeca14f967afca8245e00a908ec9f5963b4
treecbcac675413962f6c642cfe2b0a703954b066717
parentaa55361f526be8ed31e80aa6da3620af0f589a71
bcm63xx_enet: consolidate rx SKB ring cleanup code

The rx SKB ring use the same code for cleanup at various points.
Combine them into a function to reduce lines of code.

Signed-off-by: Sieng Piaw Liew <liew.s.piaw@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bcm63xx_enet.c