Re: [ovs-dev] [PATCH v2 1/5] classifier: Constify RCU pointers.

2014-11-06 Thread Jarno Rajahalme
Thanks for the review! Pushed with the change that classifier_remove takes a const struct cls_rule pointer as an argument. Jarno On Nov 6, 2014, at 11:58 AM, Ben Pfaff wrote: > On Thu, Nov 06, 2014 at 11:29:26AM -0800, Jarno Rajahalme wrote: >> >> On Nov 6, 2014, at 11:08 AM, Ben Pfaff wr

Re: [ovs-dev] [PATCH v2 1/5] classifier: Constify RCU pointers.

2014-11-06 Thread Ben Pfaff
On Thu, Nov 06, 2014 at 11:29:26AM -0800, Jarno Rajahalme wrote: > > On Nov 6, 2014, at 11:08 AM, Ben Pfaff wrote: > > > On Thu, Nov 06, 2014 at 11:06:59AM -0800, Ben Pfaff wrote: > >> On Thu, Nov 06, 2014 at 11:02:56AM -0800, Ben Pfaff wrote: > >>> On Mon, Nov 03, 2014 at 11:39:00AM -0800, Jarn

Re: [ovs-dev] [PATCH v2 1/5] classifier: Constify RCU pointers.

2014-11-06 Thread Jarno Rajahalme
On Nov 6, 2014, at 11:08 AM, Ben Pfaff wrote: > On Thu, Nov 06, 2014 at 11:06:59AM -0800, Ben Pfaff wrote: >> On Thu, Nov 06, 2014 at 11:02:56AM -0800, Ben Pfaff wrote: >>> On Mon, Nov 03, 2014 at 11:39:00AM -0800, Jarno Rajahalme wrote: Returning const struct cls_rule pointers from the cla

Re: [ovs-dev] [PATCH v2 1/5] classifier: Constify RCU pointers.

2014-11-06 Thread Ben Pfaff
On Thu, Nov 06, 2014 at 11:06:59AM -0800, Ben Pfaff wrote: > On Thu, Nov 06, 2014 at 11:02:56AM -0800, Ben Pfaff wrote: > > On Mon, Nov 03, 2014 at 11:39:00AM -0800, Jarno Rajahalme wrote: > > > Returning const struct cls_rule pointers from the classifier API helps > > > callers to remember that th

Re: [ovs-dev] [PATCH v2 1/5] classifier: Constify RCU pointers.

2014-11-06 Thread Ben Pfaff
On Thu, Nov 06, 2014 at 11:02:56AM -0800, Ben Pfaff wrote: > On Mon, Nov 03, 2014 at 11:39:00AM -0800, Jarno Rajahalme wrote: > > Returning const struct cls_rule pointers from the classifier API helps > > callers to remember that they should not modify the rules returned. > > > > Signed-off-by: Ja

Re: [ovs-dev] [PATCH v2 1/5] classifier: Constify RCU pointers.

2014-11-06 Thread Ben Pfaff
On Mon, Nov 03, 2014 at 11:39:00AM -0800, Jarno Rajahalme wrote: > Returning const struct cls_rule pointers from the classifier API helps > callers to remember that they should not modify the rules returned. > > Signed-off-by: Jarno Rajahalme I don't think it has much practical effect since most

[ovs-dev] [PATCH v2 1/5] classifier: Constify RCU pointers.

2014-11-03 Thread Jarno Rajahalme
Returning const struct cls_rule pointers from the classifier API helps callers to remember that they should not modify the rules returned. Signed-off-by: Jarno Rajahalme --- lib/classifier.c| 103 ++- lib/classifier.h| 25 ++-