Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-09-08 Thread Ilya Maximets
On 8/16/21 6:21 AM, Tony van der Peet wrote: > When a PACKET_OUT has output port of OFPP_TABLE, and the rule > table includes a meter and this causes the packet to be deleted, > execute with a clone of the packet, restoring the original packet > if it is changed by the execution. > > Add tests to

[ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-08-15 Thread Tony van der Peet
When a PACKET_OUT has output port of OFPP_TABLE, and the rule table includes a meter and this causes the packet to be deleted, execute with a clone of the packet, restoring the original packet if it is changed by the execution. Add tests to verify the original issue is fixed, and that the fix

Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-08-15 Thread 0-day Robot
Bleep bloop. Greetings Tony van der Peet, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Unexpected sign-offs from developers who are not authors or co-authors or

[ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-08-15 Thread Tony van der Peet
When a PACKET_OUT has output port of OFPP_TABLE, and the rule table includes a meter and this causes the packet to be deleted, execute with a clone of the packet, restoring the original packet if it is changed by the execution. Add tests to verify the original issue is fixed, and that the fix

Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-08-13 Thread Ilya Maximets
is kind of behavior in OVS. > > > > For the reference, the packet-out generated by OVN controller had a few > > set() actions and the resubmit() to a different table. And this > > table had rules leading to packet output to a tunnel port, resulting >

Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-08-12 Thread Tony van der Peet
gt; table had rules leading to packet output to a tunnel port, resulting > > in a tunnel push + output datapath actions. > > > >> Cheers > >> Tony > >> > >> From: Aaron Conole > >> Sent: Saturday,

Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-08-11 Thread Ilya Maximets
rules leading to packet output to a tunnel port, resulting > in a tunnel push + output datapath actions. > >> Cheers >> Tony >> >> From: Aaron Conole >> Sent: Saturday, 19 June 2021 2:50 a.m. >> To: Ilya Maximets >> Cc: Ben Pfaff; Tony van der Peet; d...@openv

Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-06-21 Thread Ilya Maximets
apath actions. > Cheers > Tony > > From: Aaron Conole > Sent: Saturday, 19 June 2021 2:50 a.m. > To: Ilya Maximets > Cc: Ben Pfaff; Tony van der Peet; d...@openvswitch.org; Tony van der Peet > Subject: Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash w

Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-06-18 Thread Tony van der Peet
From: Aaron Conole Sent: Saturday, 19 June 2021 2:50 a.m. To: Ilya Maximets Cc: Ben Pfaff; Tony van der Peet; d...@openvswitch.org; Tony van der Peet Subject: Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered Ilya Maximets writes: > On 6/17/21 11

Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-06-18 Thread Aaron Conole
Ilya Maximets writes: > On 6/17/21 11:59 PM, Ben Pfaff wrote: >> All these flags for stealing, allowing stealing, blah blah, are just >> ways to do some kind of dumb reference counting without actually have a >> reference count. When it gets super complex like this, maybe >> introducing a

Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-06-18 Thread Ilya Maximets
On 6/17/21 11:59 PM, Ben Pfaff wrote: > All these flags for stealing, allowing stealing, blah blah, are just > ways to do some kind of dumb reference counting without actually have a > reference count. When it gets super complex like this, maybe > introducing a reference count is the way to go.

Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-06-17 Thread Ben Pfaff
All these flags for stealing, allowing stealing, blah blah, are just ways to do some kind of dumb reference counting without actually have a reference count. When it gets super complex like this, maybe introducing a reference count is the way to go. It would be a bigger change, but perhaps more

Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-06-17 Thread Ilya Maximets
On 6/17/21 7:47 PM, Ilya Maximets wrote: > On 6/16/21 11:54 PM, Tony van der Peet wrote: >> Thanks Ilya. For what it's worth, besides running the OVS unit tests, I put >> this new code through our (enhanced) version of oftest (500 test cases) >> including a couple I wrote just for this

Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-06-17 Thread Ilya Maximets
On 6/16/21 11:54 PM, Tony van der Peet wrote: > Thanks Ilya. For what it's worth, besides running the OVS unit tests, I put > this new code through our (enhanced) version of oftest (500 test cases) > including a couple I wrote just for this situation. > > Tony > > On Thu, Jun 17, 2021 at 8:05

Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-06-16 Thread Tony van der Peet
Thanks Ilya. For what it's worth, besides running the OVS unit tests, I put this new code through our (enhanced) version of oftest (500 test cases) including a couple I wrote just for this situation. Tony On Thu, Jun 17, 2021 at 8:05 AM Ilya Maximets wrote: > On 6/16/21 2:04 AM, Tony van der

Re: [ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-06-16 Thread Ilya Maximets
On 6/16/21 2:04 AM, Tony van der Peet wrote: > From: Tony van der Peet > > When a PACKET_OUT has output port of OFPP_TABLE, and the rule > table includes a meter and this causes the packet to be deleted, > stop the packet from being deleted twice by cloning it and setting > it up to be stolen in

[ovs-dev] [PATCH] dpif-netdev: Fix crash when PACKET_OUT is metered

2021-06-16 Thread Tony van der Peet
From: Tony van der Peet When a PACKET_OUT has output port of OFPP_TABLE, and the rule table includes a meter and this causes the packet to be deleted, stop the packet from being deleted twice by cloning it and setting it up to be stolen in execution. Add a test to verify this condition.