Message ID | e8ce7a88-b689-6114-66e4-c45a95087a1f@cogentembedded.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | sh_eth: implement simple RX checksum offload | expand |
On 1/27/19 11:42 AM, Sergei Shtylyov wrote: > The SH7763 SoC manual describes the Ether MAC's RX checksum offload > the same way as it's implemented in the EtherAVB MACs... > > Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> I think this is the chip in the JCI N40 on my desk, how would I test this and tell it was working? (Is there an existing test program or...?) Also, can this be tested under QEMU's r2 board emulation? Rob
Hello! On 02/04/2019 02:55 PM, Rob Landley wrote: >> The SH7763 SoC manual describes the Ether MAC's RX checksum offload >> the same way as it's implemented in the EtherAVB MACs... >> >> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> > > I think this is the chip in the JCI N40 on my desk, how would I test this and > tell it was working? (Is there an existing test program or...?) There are programs, yes. I used (rather old) netperf-2.2pl4 (I can send it to you) running under perf (provided by the Poky rootfs). The details running netperf on target are in the patch description #2; on host you just run netserver from that same testsuite. The current netperf is maintained by HP on github but I was unable to figure out how to build it quickly enough... :-) > Also, can this be tested under QEMU's r2 board emulation? I have no idea, sorry. > Rob MBR, Sergei
Index: net-next/drivers/net/ethernet/renesas/sh_eth.c =================================================================== --- net-next.orig/drivers/net/ethernet/renesas/sh_eth.c +++ net-next/drivers/net/ethernet/renesas/sh_eth.c @@ -1092,6 +1092,7 @@ static struct sh_eth_cpu_data sh7763_dat .irq_flags = IRQF_SHARED, .magic = 1, .cexcr = 1, + .rx_csum = 1, .dual_port = 1, };
The SH7763 SoC manual describes the Ether MAC's RX checksum offload the same way as it's implemented in the EtherAVB MACs... Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> --- drivers/net/ethernet/renesas/sh_eth.c | 1 + 1 file changed, 1 insertion(+)