summaryrefslogtreecommitdiff
path: root/ofproto/tunnel.c
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@ovn.org>2016-05-17 17:35:33 -0700
committerPravin B Shelar <pshelar@ovn.org>2016-05-18 19:39:18 -0700
commit98e3f58e8982829c0dc582043f8bf193cd1875d6 (patch)
tree62a9b0075aff110aed91a971a3a863c7cc1067aa /ofproto/tunnel.c
parent1bc3f0ed2615aa2475e4c92339253a6092746ad4 (diff)
downloadopenvswitch-98e3f58e8982829c0dc582043f8bf193cd1875d6.tar.gz
tnl-ports: Handle STT ports.
STT uses TCP port so we need to filter traffic on basis of TCP port numbers. Signed-off-by: Pravin B Shelar <pshelar@ovn.org> Acked-by: Jesse Gross <jesse@kernel.org>
Diffstat (limited to 'ofproto/tunnel.c')
-rw-r--r--ofproto/tunnel.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ofproto/tunnel.c b/ofproto/tunnel.c
index e65a2e41f..cc04ca5c3 100644
--- a/ofproto/tunnel.c
+++ b/ofproto/tunnel.c
@@ -194,7 +194,11 @@ tnl_port_add__(const struct ofport_dpif *ofport, const struct netdev *netdev,
tnl_port_mod_log(tnl_port, "adding");
if (native_tnl) {
- tnl_port_map_insert(odp_port, cfg->dst_port, name);
+ const char *type;
+
+ type = netdev_get_type(netdev);
+ tnl_port_map_insert(odp_port, cfg->dst_port, name, type);
+
}
return true;
}
@@ -261,7 +265,7 @@ tnl_port_del__(const struct ofport_dpif *ofport) OVS_REQ_WRLOCK(rwlock)
netdev_get_tunnel_config(tnl_port->netdev);
struct hmap **map;
- tnl_port_map_delete(cfg->dst_port);
+ tnl_port_map_delete(cfg->dst_port, netdev_get_type(tnl_port->netdev));
tnl_port_mod_log(tnl_port, "removing");
map = tnl_match_map(&tnl_port->match);
hmap_remove(*map, &tnl_port->match_node);