[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140913.170824.959567788304681370.davem@davemloft.net>
Date: Sat, 13 Sep 2014 17:08:24 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: hannes@...essinduktion.org
Cc: netdev@...r.kernel.org, eric.dumazet@...il.com,
markos.chandras@...tec.com, schwidefsky@...ibm.com,
dborkman@...hat.com, alexei.starovoitov@...il.com,
kda@...ux-powerpc.org
Subject: Re: [PATCH net-next v2] net: filter: constify detection of
pkt_type_offset
From: Hannes Frederic Sowa <hannes@...essinduktion.org>
Date: Fri, 12 Sep 2014 14:04:43 +0200
> Currently we have 2 pkt_type_offset functions doing the same thing and
> spread across the architecture files. Remove those and replace them
> with a PKT_TYPE_OFFSET macro helper which gets the constant value from a
> zero sized sk_buff member right in front of the bitfield with offsetof.
> This new offset marker does not change size of struct sk_buff.
>
> Cc: Eric Dumazet <eric.dumazet@...il.com>
> Cc: Markos Chandras <markos.chandras@...tec.com>
> Cc: Martin Schwidefsky <schwidefsky@...ibm.com>
> Cc: Daniel Borkmann <dborkman@...hat.com>
> Cc: Alexei Starovoitov <alexei.starovoitov@...il.com>
> Signed-off-by: Denis Kirjanov <kda@...ux-powerpc.org>
> Signed-off-by: Hannes Frederic Sowa <hannes@...essinduktion.org>
> ---
>
> v2) Incorporated Daniel's feedback. I first misinterpreted the feedback
> as something not related to pkt_type_offset.
Applied, thanks.
--
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