diff options
author | Sorin Vinturis <svinturis@cloudbasesolutions.com> | 2016-02-02 10:41:27 +0000 |
---|---|---|
committer | Gurucharan Shetty <guru@ovn.org> | 2016-02-02 08:23:47 -0800 |
commit | 5874d571188500ec7aa6d98c778347c6774c3a24 (patch) | |
tree | 11e86cc1ee6e6c36bfcce1e1f2e541d659f8a605 /datapath-windows/ovsext/PacketParser.h | |
parent | fa47c1145c5c69933466539f63efa91900b8c5b2 (diff) | |
download | openvswitch-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.h | 7 |
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_ */ |