[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1310960790.2286.39.camel@Joe-Laptop>
Date: Sun, 17 Jul 2011 20:46:30 -0700
From: Joe Perches <joe@...ches.com>
To: Chetan Loke <loke.chetan@...il.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org
Subject: Re: [PATCH net-next v3 af-packet 2/2] Enhance af-packet to provide
(near zero)lossless packet capture functionality.
On Sun, 2011-07-17 at 23:26 -0400, Chetan Loke wrote:
> diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
[]
> +#define V3_ALIGNMENT (8)
> +#define ALIGN_V3(x) (((x)+V3_ALIGNMENT-1)&~(V3_ALIGNMENT-1))
Maybe just use the kernel.h macro ALIGN()?
> +#define BLK_HDR_LEN (ALIGN_V3(sizeof(struct block_desc)))
So this becomes:
#define BLK_HDR_LEN ALIGN(sizeof(struct block_desc), V3_ALIGNMENT)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists