[PATCH net] udp: disable inner UDP checksum offloads in IPsec case

2017-04-21 Thread Ansis Atteka
upted ESP packets and increase XfrmInStateProtoError counter in /proc/net/xfrm_stat. 3. iperf UDP test from the VM with packet sizes above MTU will not work at all. 4. iperf TCP test from the VM will get ridiculously low performance because. Signed-off-by: Ansis Atteka Co-authored-by: St

Re: [PATCH net] xfrm: calculate L4 checksums also for GSO case before encrypting packets

2017-04-21 Thread Ansis Atteka
On 20 April 2017 at 02:47, Steffen Klassert wrote: > On Tue, Apr 18, 2017 at 07:10:03PM -0700, Ansis Atteka wrote: >> >> However, after taking pointers from your patch I came up with this one >> that may solve this problem once and for all (note, that I was seeing >> t

Re: [PATCH net] xfrm: calculate L4 checksums also for GSO case before encrypting packets

2017-04-18 Thread Ansis Atteka
On 18 April 2017 at 02:09, Steffen Klassert wrote: > On Thu, Apr 13, 2017 at 07:45:08PM -0700, Ansis Atteka wrote: >> On 11 April 2017 at 00:07, Steffen Klassert >> wrote: >> > >> > What's wrong with the checksum provided by the GSO layer and >> &

Re: [PATCH net] xfrm: calculate L4 checksums also for GSO case before encrypting packets

2017-04-13 Thread Ansis Atteka
On 13 April 2017 at 19:45, Ansis Atteka wrote: > > > > On 11 April 2017 at 00:07, Steffen Klassert > wrote: >> >> On Mon, Apr 10, 2017 at 11:42:07AM -0700, Ansis Atteka wrote: >> > Otherwise, if L4 checksum calculation is done after encryption, >> >

[PATCH net] xfrm: calculate L4 checksums also for GSO case before encrypting packets

2017-04-10 Thread Ansis Atteka
will drop all the corrupted ESP packets, hence UDP iperf test with large packets will fail completely or TCP iperf will get ridiculously low performance because TCP window will never grow above MTU. Signed-off-by: Ansis Atteka --- net/xfrm/xfrm_output.c | 19 +-- 1 file change

Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2017-01-02 Thread Ansis Atteka
On Sat, Dec 31, 2016 at 4:07 PM, Ansis Atteka wrote: > On Wed, Nov 30, 2016 at 3:58 AM, Hayes Wang wrote: >> Mark Lord >> [...] >>> > Not sure why, because there really is no other way for the data to >>> > appear where it does at the beginning of that U

Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-12-31 Thread Ansis Atteka
On Wed, Nov 30, 2016 at 3:58 AM, Hayes Wang wrote: > Mark Lord > [...] >> > Not sure why, because there really is no other way for the data to >> > appear where it does at the beginning of that URB buffer. >> > >> > This does seem a rather unexpected burden to place upon someone >> > reporting a