Make Channel an argument to handleSerializedLispBuffer() 64/47664/4
authorLorand Jakab <lojakab@cisco.com>
Thu, 27 Oct 2016 11:26:14 +0000 (14:26 +0300)
committerLori Jakab <lorand.jakab@gmail.com>
Fri, 28 Oct 2016 11:51:32 +0000 (11:51 +0000)
commit8674ef669eec3e30aa023fe2904e06df41aedbff
treee8cd76316e71ddc52be96c71fa5b309efc9b098a
parentfc56f87a95932a74afd606d20648b1e3dc0f3e03
Make Channel an argument to handleSerializedLispBuffer()

In preparation for multi-threading, this patch allows the sender channel
to be passed as an argument to handleSerializedLispBuffer() which puts
the packet on the wire.  Since the ChannelHandlerContext passed to
channelRead() has the original channel where the packet was received, we
can use it to send out the packet on the same channel, instead of using
just one channel for sending in LispSouthboundPlugin.

Change-Id: I1cd6205f8dc2e5431f73910ed1563773a1b12a1c
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
mappingservice/southbound/src/main/java/org/opendaylight/lispflowmapping/southbound/LispSouthboundPlugin.java
mappingservice/southbound/src/main/java/org/opendaylight/lispflowmapping/southbound/lisp/LispSouthboundHandler.java
mappingservice/southbound/src/test/java/org/opendaylight/lispflowmapping/southbound/lisp/MapRegisterCacheTestUtil.java