From ee25964a60c6b2c6e60a4c5fbfc9e90cf304f970 Mon Sep 17 00:00:00 2001 From: Sorin Vinturis Date: Fri, 25 Mar 2016 14:49:27 +0000 Subject: datapath-windows: Added recirculation support. Recirculation support for the OVS extension. Tested using PING and iperf with Driver Verifier enabled. Signed-off-by: Sorin Vinturis Co-authored-by: Alin Gabriel Serdean Reported-by: Sorin Vinturis Reported-at: https://github.com/openvswitch/ovs-issues/issues/104 Acked-by: Nithin Raju Signed-off-by: Ben Pfaff --- datapath-windows/ovsext/Netlink/Netlink.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'datapath-windows/ovsext/Netlink') diff --git a/datapath-windows/ovsext/Netlink/Netlink.h b/datapath-windows/ovsext/Netlink/Netlink.h index 99665fb92..8f6a5bea5 100644 --- a/datapath-windows/ovsext/Netlink/Netlink.h +++ b/datapath-windows/ovsext/Netlink/Netlink.h @@ -173,6 +173,17 @@ static __inline NlAttrTotalSize(UINT32 payloadSize) return NLA_ALIGN(NlAttrSize(payloadSize)); } +/* + * --------------------------------------------------------------------------- + * Returns true if the last attribute is reached. + * --------------------------------------------------------------------------- + */ +BOOLEAN +static __inline NlAttrIsLast(const PNL_ATTR nla, int rem) +{ + return nla->nlaLen == rem; +} + /* Netlink attribute validation */ BOOLEAN NlAttrValidate(const PNL_ATTR, const PNL_POLICY); -- cgit v1.2.1