Optimize iface search in transmitRouterAdvertisement 65/42965/3
authorSridhar Gaddam <sgaddam@redhat.com>
Tue, 2 Aug 2016 11:48:12 +0000 (17:18 +0530)
committerSridhar Gaddam <sgaddam@redhat.com>
Fri, 12 Aug 2016 11:48:13 +0000 (17:18 +0530)
commitb19209a91d93cdc8bd73e12586a17682ed131c39
tree6c190f60aa67b6813467e79077b9d9c4aa99ce21
parent1f82e6d52086a61671f3f33879d3b73abaf8ace2
Optimize iface search in transmitRouterAdvertisement

Currently the periodic router advt timer is iterating over
all the virtual ports to figure out the ports on the network
where the RA has to be sent out. This patch optimizes the
search by using the local cache of (dpnIds <--> List[ofPorts])
maintained per network.

Change-Id: I6e64064c72b0586aa8f4b42b66ef49d2fc7ed46f
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
vpnservice/ipv6service/impl/src/main/java/org/opendaylight/netvirt/ipv6service/IfMgr.java
vpnservice/ipv6service/impl/src/main/java/org/opendaylight/netvirt/ipv6service/Ipv6PktHandler.java
vpnservice/ipv6service/impl/src/main/java/org/opendaylight/netvirt/ipv6service/Ipv6RouterAdvt.java
vpnservice/ipv6service/impl/src/main/java/org/opendaylight/netvirt/ipv6service/VirtualNetwork.java