bcm63xx: batch process RX path
authorSieng Piaw Liew <liew.s.piaw@gmail.com>
Mon, 30 Nov 2020 03:32:18 +0000 (11:32 +0800)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Wed, 2 Dec 2020 19:25:32 +0000 (20:25 +0100)
commiteefbcf2915243bdedca37ba3df6bc505ffbc2e58
treedefcdd91181561ec94ece9299ae5a592c44fdfbc
parentf330f991c1dcb483a1966d2d194afc2a40cd30fd
bcm63xx: batch process RX path

Use netif_receive_skb_list to batch process skb in RX.
Tested on BCM6328 320 MHz using iperf3 -M 512, increasing performance by 12.5%.

Before:
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-30.00  sec   120 MBytes  33.7 Mbits/sec  277             sender
[  4]   0.00-30.00  sec   120 MBytes  33.5 Mbits/sec                  receiver

After:
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-30.00  sec   136 MBytes  37.9 Mbits/sec  203             sender
[  4]   0.00-30.00  sec   135 MBytes  37.7 Mbits/sec                  receiver

Signed-off-by: Sieng Piaw Liew <liew.s.piaw@gmail.com>
[Amend commit description]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/bcm63xx/patches-5.4/440-bcm63xx_enet-batch_process_RX_path.patch [new file with mode: 0644]