summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/PacketParser.h
diff options
context:
space:
mode:
authorSorin Vinturis <svinturis@cloudbasesolutions.com>2016-02-02 10:41:27 +0000
committerGurucharan Shetty <guru@ovn.org>2016-02-02 08:23:47 -0800
commit5874d571188500ec7aa6d98c778347c6774c3a24 (patch)
tree11e86cc1ee6e6c36bfcce1e1f2e541d659f8a605 /datapath-windows/ovsext/PacketParser.h
parentfa47c1145c5c69933466539f63efa91900b8c5b2 (diff)
downloadopenvswitch-5874d571188500ec7aa6d98c778347c6774c3a24.tar.gz
datapath-windows: Support for OVS_KEY_ATTR_MPLS attribute
This patch adds OVS_KEY_ATTR_MPLS to the OVS flow mechanism. Tested using ping. Tested using iperf (TCP and UDP). Tested using DriverVerifier. Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com> Acked-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Diffstat (limited to 'datapath-windows/ovsext/PacketParser.h')
-rw-r--r--datapath-windows/ovsext/PacketParser.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/datapath-windows/ovsext/PacketParser.h b/datapath-windows/ovsext/PacketParser.h
index 7b8e656ed..47d227f59 100644
--- a/datapath-windows/ovsext/PacketParser.h
+++ b/datapath-windows/ovsext/PacketParser.h
@@ -151,4 +151,11 @@ OvsGetIcmp(const NET_BUFFER_LIST *packet,
return OvsGetPacketBytes(packet, sizeof *storage, ofs, storage);
}
+static const MPLSHdr *
+OvsGetMpls(const NET_BUFFER_LIST *packet,
+ UINT32 ofs,
+ MPLSHdr *storage)
+{
+ return OvsGetPacketBytes(packet, sizeof *storage, ofs, storage);
+}
#endif /* __PACKET_PARSER_H_ */