]> git.baikalelectronics.ru Git - kernel.git/commit
packet: fill the gap of TPACKET_ALIGNMENT with zeros
authorAtzm Watanabe <atzm@stratosphere.co.jp>
Tue, 17 Dec 2013 13:53:36 +0000 (22:53 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2013 05:36:16 +0000 (00:36 -0500)
commit92a8e0a39046815033e1e790e50ad6b1c27e93be
treee7caf4bc1439ce04ac392d94dd71c13aaf90f0e4
parentfbb8e79ae63b3f5af7b8d1258156a938d84cafd6
packet: fill the gap of TPACKET_ALIGNMENT with zeros

struct tpacket{2,3}_hdr is aligned to a multiple of TPACKET_ALIGNMENT.
Explicitly defining and zeroing the gap of this makes additional changes
easier.

Signed-off-by: Atzm Watanabe <atzm@stratosphere.co.jp>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_packet.h
net/packet/af_packet.c