> /* > *---------------------------------------------------------------------------- > - * _MapFlowTunKeyToNlKey -- > - * Maps OvsIPv4TunnelKey to OVS_TUNNEL_KEY_ATTR_ID attribute. > + * MapFlowTunKeyToNlKey -- > + * Maps OvsIPv4TunnelKey to OVS_TUNNEL_KEY_ATTR_ID attribute. > *---------------------------------------------------------------------------- > */ > -static NTSTATUS > -_MapFlowTunKeyToNlKey(PNL_BUFFER nlBuf, OvsIPv4TunnelKey *tunKey) > +NTSTATUS > +MapFlowTunKeyToNlKey(PNL_BUFFER nlBuf, > + OvsIPv4TunnelKey *tunKey, > + UINT16 tunKeyType) > { > NTSTATUS rc = STATUS_SUCCESS; > UINT32 offset = 0; > > - offset = NlMsgStartNested(nlBuf, OVS_KEY_ATTR_TUNNEL); > + offset = NlMsgStartNested(nlBuf, tunKeyType); > if (!offset) { > /* Starting the nested attribute failed. */ > rc = STATUS_UNSUCCESSFUL; > @@ -2302,4 +2305,43 @@ unlock: > return status; > } > > +UINT32 > +OvsTunKeyAttrSize(void)
Should these functions not be the other way round? ie. OvsFlowKeyAttrSize() includes the tunKey as well, rather than OvsTunKeyAttrSize() including OvsFlowKeyAttrSize()? Looks good otherwise. Acked-by: Nithin Raju <nit...@vmware.com> _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev