ofproto: Ignore generation ID for role change to "equal".
authorBen Pfaff <blp@nicira.com>
Mon, 25 May 2015 21:14:05 +0000 (14:14 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 29 Jul 2015 15:07:53 +0000 (08:07 -0700)
commitaa379b44afa72232e5d7176d5e95b2950bc5dee5
tree34aa5206417523b155faa27835bc6b56a42c598b
parent378af564556dafeeeb7e44e588538a9059dae661
ofproto: Ignore generation ID for role change to "equal".

The OpenFlow specification says that only role changes to slave or master
check the generation ID, so this is a bug fix.

OpenFlow 1.2 section A.3.9 phrases the requirement this way:

    Additionally, if the role value in the message is OFPCR_ROLE_MASTER
    or OFPCR_ROLE_SLAVE, the switch must validate generation_id to check
    for stale messages.

Found by OFTest.

Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto.c