ofproto-dpif: Avoid creating OpenFlow ports for duplicate tunnels.
authorBen Pfaff <blp@nicira.com>
Fri, 5 Jun 2015 15:13:28 +0000 (08:13 -0700)
committerBen Pfaff <blp@nicira.com>
Sat, 6 Jun 2015 04:18:31 +0000 (21:18 -0700)
commitea0797c929dc663ed443f07cd0bfc9d788d11367
treed27a67f0bda311eb55327a10d9f42fe4d0ec8b4d
parent332eafce794d8c6d10474d3c802ef886a05a453c
ofproto-dpif: Avoid creating OpenFlow ports for duplicate tunnels.

Until now, when two tunnels had an identical configuration, both of them
were assigned OpenFlow ports, but only one of those OpenFlow ports was
functional.  With this commit, only one of the two (or more) identically
configured tunnels will be assigned an OpenFlow port number.

Reported-by: Keith Holleman <hollemanietf@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Co-authored-by: Andy Zhou <azhou@nicira.com>
Signed-off-by: Andy Zhou <azhou@nicira.com>
AUTHORS
ofproto/ofproto-dpif.c
ofproto/tunnel.c
ofproto/tunnel.h