]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
sh_eth: offload RX checksum on R8A7740
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Mon, 4 Feb 2019 18:08:54 +0000 (21:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Feb 2019 21:31:00 +0000 (13:31 -0800)
The R-Mobile A1 (R8A7740) SoC manual describes the Ether MAC's RX checksum
offload the same way as it's implemented in the EtherAVB MAC...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c

index 00cbca124302ba6f2644656aa81a1ad4604f5e12..b96f25230f2e64cae9600d2938388457419b9504 100644 (file)
@@ -670,6 +670,7 @@ static struct sh_eth_cpu_data r8a7740_data = {
        .no_ade         = 1,
        .xdfar_rw       = 1,
        .csmr           = 1,
+       .rx_csum        = 1,
        .tsu            = 1,
        .select_mii     = 1,
        .magic          = 1,