Subject: Re: [PATCH RFC 2/2] ipv6: Add support for IPsec virtual tunnel interfaces

From: Steffen Klassert <[email-masked]>
Date: Fri, 23 Aug 2013 08:12:15 +0200

On Thu, Aug 22, 2013 at 03:47:00PM +0800, Fan Du wrote:
> 
> 
> On 2013年08月19日 14:27, Steffen Klassert wrote:
> >+
> >+	skb_dst_drop(skb);
> >+	skb_dst_set_noref(skb, dst);
> >+
> >+	ip6tunnel_xmit(skb, dev);
> >+	if (ndst)
> >+		ip6_tnl_dst_store(t, ndst);
> >+	return 0;
> >+tx_err_link_failure:
> >+	stats->tx_carrier_errors++;
> >+	dst_link_failure(skb);
> >+tx_err_dst_release:
> 
> Maybe it's necessary to count stats->tx_errors as well.

We count it directly after an error return of this function.