ofproto: Optimize the case of a repeated learn action execution.
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 7 Feb 2014 19:34:02 +0000 (11:34 -0800)
committerJarno Rajahalme <jrajahalme@nicira.com>
Wed, 12 Feb 2014 21:58:47 +0000 (13:58 -0800)
commitb90d6ee54a3dea81da58e6e10640fcd165dfb659
tree617c7fe4df7a139c3f5f8b6d406b787b1bd93482
parent7614e5d01c3b971c57d825111e412b1182cc04c8
ofproto: Optimize the case of a repeated learn action execution.

When the target flow exists already as intended, only the 'modified'
time needs to be updated.  Allow modification without taking the
'ofproto_mutex' by always using the 'rule->mutex' when accessing the
'modified' time.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-provider.h
ofproto/ofproto.c