af_packet: pass checksum validation status to the user
authorAlexander Drozdov <al.drozdov@gmail.com>
Mon, 23 Mar 2015 06:11:13 +0000 (09:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2015 02:01:28 +0000 (22:01 -0400)
commit682f048bd49449f4ab978664a7f69a44a74e3caa
tree4b623e8ddd2e4f874947e3c9f128591661dd10e8
parent68c2e5de360411674d9821ee2b46f5d8ee965161
af_packet: pass checksum validation status to the user

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.drozdov@gmail.com>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/packet_mmap.txt
include/uapi/linux/if_packet.h
net/packet/af_packet.c