From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borkmann Subject: Re: [PATCH v4 1/3] packet: make aligned size of struct tpacket{2,3}_hdr clear Date: Tue, 17 Dec 2013 15:02:20 +0100 Message-ID: <52B0596C.8000901@redhat.com> References: <87fvpr7fdv.wl%atzm@stratosphere.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, Stephen Hemminger , Ben Hutchings , David Miller , David Laight To: Atzm Watanabe Return-path: Received: from mx1.redhat.com ([209.132.183.28]:27380 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752958Ab3LQOCj (ORCPT ); Tue, 17 Dec 2013 09:02:39 -0500 In-Reply-To: <87fvpr7fdv.wl%atzm@stratosphere.co.jp> Sender: netdev-owner@vger.kernel.org List-ID: On 12/17/2013 02:53 PM, Atzm Watanabe wrote: > struct tpacket{2,3}_hdr is aligned to a multiple of TPACKET_ALIGNMENT. > We may add members to them until current aligned size without forcing > userspace to call getsockopt(..., PACKET_HDRLEN, ...). > > Signed-off-by: Atzm Watanabe Acked-by: Daniel Borkmann