Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945982AbbGaUOf (ORCPT ); Fri, 31 Jul 2015 16:14:35 -0400 Received: from mail-yk0-f180.google.com ([209.85.160.180]:32804 "EHLO mail-yk0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755619AbbGaUOb (ORCPT ); Fri, 31 Jul 2015 16:14:31 -0400 MIME-Version: 1.0 In-Reply-To: <1438356362.20479.16.camel@redhat.com> References: <1438279963-29563-1-git-send-email-joestringer@nicira.com> <1438279963-29563-6-git-send-email-joestringer@nicira.com> <1438356362.20479.16.camel@redhat.com> From: Joe Stringer Date: Fri, 31 Jul 2015 13:14:11 -0700 Message-ID: Subject: Re: [PATCH net-next 5/9] openvswitch: Add conntrack action To: Hannes Frederic Sowa Cc: Linux Netdev List , Linux Kernel , Pablo Neira Ayuso , Patrick McHardy , Justin Pettit , Pravin Shelar , Andy Zhou , Jesse Gross , Florian Westphal , Thomas Graf Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1018 Lines: 25 On 31 July 2015 at 08:26, Hannes Frederic Sowa wrote: > On Thu, 2015-07-30 at 11:12 -0700, Joe Stringer wrote: >> +static void do_output(struct datapath *dp, struct sk_buff *skb, int >> out_port, >> + struct sw_flow_key *key) >> { >> struct vport *vport = ovs_vport_rcu(dp, out_port); >> >> - if (likely(vport)) >> - ovs_vport_send(vport, skb); >> - else >> + if (likely(vport)) { >> + unsigned int mru = OVS_CB(skb)->mru; >> + struct dst_entry *orig_dst = dst_clone(skb_dst(skb)); > > I think you forgot to remove this? You're right that it's incorrect, however we do still need to ensure that the original skb's reference to the orig_dst is released. I'll tidy this up for v2. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/