Only iterates configured subnets to determine if a packet is destined for the switch

We should not check subnets learnt from route service. It is not only expensive but also incorrect.
This patch should significantly reduce the CPU usage when controller needs to reply ping to the gateway IP.

Change-Id: Ic245f5f136cf547cb50cabff4927da00e7f03666
5 files changed
tree: 8f455e8b730492e475ac0f3f9e9493f2c267018e
  1. BUILD
  2. app/
  3. web/