Re: hw/net/cadence_gem: TX checksum offload does not work for fragmented packets

2020-04-26 Thread Jason Wang
On 2020/4/26 下午2:57, Bin Meng wrote: Hi Jason, On Tue, Apr 21, 2020 at 10:31 PM Bin Meng wrote: Hi, The cadence_gem does the TX checksum offload by: /* Is checksum offload enabled? */ if (s->regs[GEM_DMACFG] & GEM_DMACFG_TXCSUM_OFFL) {

Re: hw/net/cadence_gem: TX checksum offload does not work for fragmented packets

2020-04-25 Thread Bin Meng
Hi Jason, On Tue, Apr 21, 2020 at 10:31 PM Bin Meng wrote: > > Hi, > > The cadence_gem does the TX checksum offload by: > > /* Is checksum offload enabled? */ > if (s->regs[GEM_DMACFG] & GEM_DMACFG_TXCSUM_OFFL) { > net_checksum_calculate(tx_pack

hw/net/cadence_gem: TX checksum offload does not work for fragmented packets

2020-04-21 Thread Bin Meng
Hi, The cadence_gem does the TX checksum offload by: /* Is checksum offload enabled? */ if (s->regs[GEM_DMACFG] & GEM_DMACFG_TXCSUM_OFFL) { net_checksum_calculate(tx_packet, total_bytes); } However this will only work for non-fr