[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEP_g=9kx+KC8sQKmb5kZ588aOjbqjWEwSXFyrC7jxMW-0bV+w@mail.gmail.com>
Date: Tue, 1 Oct 2013 17:45:15 -0700
From: Jesse Gross <jesse@...ira.com>
To: Simon Horman <horms@...ge.net.au>
Cc: "dev@...nvswitch.org" <dev@...nvswitch.org>,
netdev <netdev@...r.kernel.org>, Ben Pfaff <blp@...ira.com>,
Pravin B Shelar <pshelar@...ira.com>,
Ravi K <rkerur@...il.com>,
Isaku Yamahata <yamahata@...inux.co.jp>,
Joe Stringer <joe@...d.net.nz>
Subject: Re: [PATCH v2.41 5/5] datapath: Add basic MPLS support to kernel
On Tue, Oct 1, 2013 at 5:40 PM, Simon Horman <horms@...ge.net.au> wrote:
> On Tue, Oct 01, 2013 at 04:02:17PM -0700, Jesse Gross wrote:
>> On Mon, Sep 30, 2013 at 11:47 PM, Simon Horman <horms@...ge.net.au> wrote:
>> > @@ -545,6 +662,14 @@ static int do_execute_actions(struct datapath *dp, struct sk_buff *skb,
>> > output_userspace(dp, skb, a);
>> > break;
>> >
>> > + case OVS_ACTION_ATTR_PUSH_MPLS:
>> > + err = push_mpls(skb, nla_data(a));
>> > + break;
>> > +
>> > + case OVS_ACTION_ATTR_POP_MPLS:
>> > + err = pop_mpls(skb, nla_get_be16(a));
>> > + break;
>>
>> I think we need something similar to POP_VLAN here - in the event of
>> an error the skb will have already been freed.
>
> Thanks, though I think you mean that PUSH_MPLS should be similar to
> PUSH_VLAN. I don't think that either pop_mpls() or pop_vlan() free the
> skb on error.
Yes, sorry, that's what I meant.
--
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