From: Simon Horman Subject: Re: [PATCH ipsec v2 1/3] ipv6: wire up skb->encapsulation Date: Tue, 20 Aug 2013 11:49:36 +1000 Message-ID: <20130820014936.GC14038@verge.net.au> References: <20130818114652.GA10192@order.stressinduktion.org> <20130820003546.GA14038@verge.net.au> <20130820003651.GA3938@order.stressinduktion.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: netdev@vger.kernel.org, steffen.klassert@secunet.com, yoshfuji@linux-ipv6.org, nicolas.dichtel@6wind.com, edumazet@google.com Return-path: Received: from kirsty.vergenet.net ([202.4.237.240]:33119 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751239Ab3HTBrd (ORCPT ); Mon, 19 Aug 2013 21:47:33 -0400 Content-Disposition: inline In-Reply-To: <20130820003651.GA3938@order.stressinduktion.org> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Aug 20, 2013 at 02:36:51AM +0200, Hannes Frederic Sowa wrote: > On Tue, Aug 20, 2013 at 10:35:46AM +1000, Simon Horman wrote: > > On Sun, Aug 18, 2013 at 01:46:52PM +0200, Hannes Frederic Sowa wrote: > > > When pushing a new header before current one call skb_reset_inner_headers > > > to record the position of the inner headers in the various ipv6 tunnel > > > protocols. > > > > > > We later need this to correctly identify the addresses needed to send > > > back an error in the xfrm layer. > > > > > > This change is safe, because skb->protocol is always checked before > > > dereferencing data from the inner protocol. > > > > It seems that the intention is to only track the inner-most header > > due to the presence of if (likely(!skb->encapsulation)). Is this the > > intention? > > Ack. Do you see problems with this? Not if it is intended. Reviewed-by: Simon Horman