Re: [PATCH 2/2] af_packet: pass checksum validation status to the user

2015-03-20 Thread Willem de Bruijn
On Fri, Mar 20, 2015 at 2:46 AM, Alexander Drozdov wrote: > > On 19.03.2015 21:50:03 +0300 Willem de Bruijn wrote: >> >> On Thu, Mar 19, 2015 at 2:08 PM, Alexander Drozdov >> wrote: >>> >>> On Thu, 19 Mar 2015 11:29:32 -0400, Willem de Bruijn >>> wrote: On Thu, Mar 19, 2015 at

Re: [PATCH 2/2] af_packet: pass checksum validation status to the user

2015-03-20 Thread Alexander Drozdov
On 19.03.2015 21:50:03 +0300 Willem de Bruijn wrote: On Thu, Mar 19, 2015 at 2:08 PM, Alexander Drozdov wrote: On Thu, 19 Mar 2015 11:29:32 -0400, Willem de Bruijn wrote: On Thu, Mar 19, 2015 at 4:01 AM, Alexander Drozdov wrote: Introduce TP_STATUS_CSUM_VALID tp_status flag to tell the

Re: [PATCH 2/2] af_packet: pass checksum validation status to the user

2015-03-20 Thread Alexander Drozdov
On 19.03.2015 21:50:03 +0300 Willem de Bruijn wrote: On Thu, Mar 19, 2015 at 2:08 PM, Alexander Drozdov al.droz...@gmail.com wrote: On Thu, 19 Mar 2015 11:29:32 -0400, Willem de Bruijn will...@google.com wrote: On Thu, Mar 19, 2015 at 4:01 AM, Alexander Drozdov al.droz...@gmail.com wrote:

Re: [PATCH 2/2] af_packet: pass checksum validation status to the user

2015-03-20 Thread Willem de Bruijn
On Fri, Mar 20, 2015 at 2:46 AM, Alexander Drozdov al.droz...@gmail.com wrote: On 19.03.2015 21:50:03 +0300 Willem de Bruijn wrote: On Thu, Mar 19, 2015 at 2:08 PM, Alexander Drozdov al.droz...@gmail.com wrote: On Thu, 19 Mar 2015 11:29:32 -0400, Willem de Bruijn will...@google.com wrote:

Re: [PATCH 2/2] af_packet: pass checksum validation status to the user

2015-03-19 Thread Willem de Bruijn
On Thu, Mar 19, 2015 at 2:08 PM, Alexander Drozdov wrote: > On Thu, 19 Mar 2015 11:29:32 -0400, Willem de Bruijn > wrote: >> >> On Thu, Mar 19, 2015 at 4:01 AM, Alexander Drozdov >> wrote: >>> >>> Introduce TP_STATUS_CSUM_VALID tp_status flag to tell the >>> af_packet user that at least the

Re: [PATCH 2/2] af_packet: pass checksum validation status to the user

2015-03-19 Thread Alexander Drozdov
On Thu, 19 Mar 2015 11:29:32 -0400, Willem de Bruijn wrote: On Thu, Mar 19, 2015 at 4:01 AM, Alexander Drozdov wrote: Introduce TP_STATUS_CSUM_VALID tp_status flag to tell the af_packet user that at least the transport header checksum has been already validated. This changes the interface

Re: [PATCH 2/2] af_packet: pass checksum validation status to the user

2015-03-19 Thread Willem de Bruijn
On Thu, Mar 19, 2015 at 4:01 AM, Alexander Drozdov wrote: > Introduce TP_STATUS_CSUM_VALID tp_status flag to tell the > af_packet user that at least the transport header checksum > has been already validated. This changes the interface slightly. Processes should be treating this previously

[PATCH 2/2] af_packet: pass checksum validation status to the user

2015-03-19 Thread Alexander Drozdov
Introduce TP_STATUS_CSUM_VALID tp_status flag to tell the af_packet user that at least the transport header checksum has been already validated. For now, the flag may be set for incoming packets only. Signed-off-by: Alexander Drozdov --- include/uapi/linux/if_packet.h | 1 +

[PATCH 2/2] af_packet: pass checksum validation status to the user

2015-03-19 Thread Alexander Drozdov
Introduce TP_STATUS_CSUM_VALID tp_status flag to tell the af_packet user that at least the transport header checksum has been already validated. For now, the flag may be set for incoming packets only. Signed-off-by: Alexander Drozdov al.droz...@gmail.com --- include/uapi/linux/if_packet.h | 1 +

Re: [PATCH 2/2] af_packet: pass checksum validation status to the user

2015-03-19 Thread Alexander Drozdov
On Thu, 19 Mar 2015 11:29:32 -0400, Willem de Bruijn will...@google.com wrote: On Thu, Mar 19, 2015 at 4:01 AM, Alexander Drozdov al.droz...@gmail.com wrote: Introduce TP_STATUS_CSUM_VALID tp_status flag to tell the af_packet user that at least the transport header checksum has been already

Re: [PATCH 2/2] af_packet: pass checksum validation status to the user

2015-03-19 Thread Willem de Bruijn
On Thu, Mar 19, 2015 at 2:08 PM, Alexander Drozdov al.droz...@gmail.com wrote: On Thu, 19 Mar 2015 11:29:32 -0400, Willem de Bruijn will...@google.com wrote: On Thu, Mar 19, 2015 at 4:01 AM, Alexander Drozdov al.droz...@gmail.com wrote: Introduce TP_STATUS_CSUM_VALID tp_status flag to tell

Re: [PATCH 2/2] af_packet: pass checksum validation status to the user

2015-03-19 Thread Willem de Bruijn
On Thu, Mar 19, 2015 at 4:01 AM, Alexander Drozdov al.droz...@gmail.com wrote: Introduce TP_STATUS_CSUM_VALID tp_status flag to tell the af_packet user that at least the transport header checksum has been already validated. This changes the interface slightly. Processes should be treating this