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

Ben Pfaff blp at nicira.com
Thu Nov 6 19:02:56 UTC 2014


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 <jrajahalme at nicira.com>

I don't think it has much practical effect since most of the callers
immediately cast the pointer to some other container type, but it does
seem a little nicer.

Acked-by: Ben Pfaff <blp at nicira.com>



More information about the dev mailing list