[ovs-dev] [PATCH v4] openvswitch: Userspace tunneling.

Pravin Shelar pshelar at nicira.com
Wed Nov 12 23:18:40 UTC 2014


On Wed, Nov 12, 2014 at 2:36 PM, Ben Pfaff <blp at nicira.com> wrote:
> On Wed, Nov 12, 2014 at 01:43:35PM -0800, Pravin B Shelar wrote:
>> Following patch adds support for userspace tunneling. Tunneling
>> needs three more component first is routing table which is configured by
>> caching kernel routes and second is ARP cache which build automatically
>> by snooping arp. And third is tunnel protocol table which list all
>> listening protocols which is populated by vswitchd as tunnel ports
>> are added. GRE and VXLAN protocol support is added in this patch.
>>
>> Tunneling works as follows:
>> On packet receive vswitchd check if this packet is targeted to tunnel
>> port. If it is then vswitchd inserts tunnel pop action which pops
>> header and sends packet to tunnel port.
>> On packet xmit rather than generating Set tunnel action it generate
>> tunnel push action which has tunnel header data. datapath can use
>> tunnel-push action data to generate header for each packet and
>> forward this packet to output port. Since tunnel-push action
>> contains most of packet header vswitchd needs to lookup routing
>> table and arp table to build this action.
>>
>> Signed-off-by: Pravin B Shelar <pshelar at nicira.com>
>> Acked-by: Jarno Rajahalme <jrajahalme at nicira.com>
>> Acked-by: Thomas Graf <tgraf at noironetworks.com>
>> -
>> Fixed according to comments from Jarno and Ben.
>> Added test cases.
>> Added documentation.
>
> All my comments from the last round were really minor.  I assume
> (without looking) that you fixed them, so:
> Acked-by: Ben Pfaff <blp at nicira.com>
>
> Thanks a lot for doing all this work!  It's a pretty exciting new
> feature area.

I pushed patch to master.

Thanks Ben, Jarno, Thomas for review.



More information about the dev mailing list