Skip to content
Snippets Groups Projects
Commit 85dc95b9 authored by abat's avatar abat
Browse files

Merge into master from pull request #146:

Change domain based hash to switch based hash (https://github.com/floodlight/floodlight/pull/146)
parents 1639f2ee 0d7a6a2f
No related branches found
No related tags found
No related merge requests found
......@@ -446,8 +446,7 @@ public abstract class ForwardingBase implements
IFloodlightProviderService.CONTEXT_PI_PAYLOAD);
Long broadcastHash;
broadcastHash = topology.getL2DomainId(sw.getId()) * prime
+ eth.hashCode();
broadcastHash = sw.getId() * prime + eth.hashCode();
if (broadcastCache.update(broadcastHash)) {
sw.updateBroadcastCache(broadcastHash, pi.getInPort());
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment