datapath-windows: Add support for OVS_TUNNEL_KEY_ATTR_TP_DST
Add support for netlink attribute OVS_TUNNEL_KEY_ATTR_TP_DST get/set
flow functions.
Acked-by: Sairam Venugopal
@@ -1737,6 +1737,9 @@ OvsTunnelAttrToIPv4TunnelKey(PNL_ATTR attr,
case OVS_TUNNEL_KEY_ATTR_OAM:
tunKey->flags |= OVS_TNL_F_OAM;
break;
+ case OVS_TUNNEL_KEY_ATTR_TP_DST:
+ tunKey->dst_port = NlAttrGetBe16(a);
+ break;
case OVS_TUNNEL_KEY_ATTR_GENEVE_OPTS:
if (hasOpt) {
/* Duplicate options attribute is not allowed. */
@@ -1812,6 +1815,11 @@ MapTunAttrToFlowPut(PNL_ATTR *keyAttrs,
destKey->tunKey.flags |= OVS_TNL_F_OAM;
}
+ if (tunAttrs[OVS_TUNNEL_KEY_ATTR_TP_DST]) {
+ destKey->tunKey.dst_port =
+ NlAttrGetU16(tunAttrs[OVS_TUNNEL_KEY_ATTR_TP_DST]);
+ }
+
if (tunAttrs[OVS_TUNNEL_KEY_ATTR_GENEVE_OPTS]) {
NTSTATUS status = OvsTunnelAttrToGeneveOptions(
tunAttrs[OVS_TUNNEL_KEY_ATTR_GENEVE_OPTS],
