mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
openvswitch: Userspace tunneling.
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@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Thomas Graf <tgraf@noironetworks.com> Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -254,4 +254,6 @@ size_t odp_put_userspace_action(uint32_t pid,
|
||||
void odp_put_tunnel_action(const struct flow_tnl *tunnel,
|
||||
struct ofpbuf *odp_actions);
|
||||
|
||||
void odp_put_tnl_push_action(struct ofpbuf *odp_actions,
|
||||
struct ovs_action_push_tnl *data);
|
||||
#endif /* odp-util.h */
|
||||
|
Reference in New Issue
Block a user