realtek: enable CRC offloading
authorBirger Koblitz <git@birger-koblitz.de>
Thu, 29 Apr 2021 20:53:59 +0000 (22:53 +0200)
committerPetr Štetiar <ynezz@true.cz>
Fri, 7 May 2021 05:05:16 +0000 (07:05 +0200)
commit9e8d62e42117bd05040618cb094565587e51a6f4
tree768498be2397fea943b0832a99d9edec84713179
parent3bae740311eae85f9bbd2c4794ae575dfc34f1eb
realtek: enable CRC offloading

Enables CRC calculation offloading on RTL8380/8390/9300.

Tested on Zyxel XGS1210-10 (RTL9302)/GS1900-48 (RTL8390)/GS1900-10HP (RTL8382)
On the Zyxel GS1900-10HP, an increase of 5% in iperf3 send throughput
and 11% in receive throughput is seen.

Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
target/linux/realtek/files-5.4/drivers/net/ethernet/rtl838x_eth.c