On Sep 24, 2014, at 11:57 PM, Ankur Sharma <ankursha...@vmware.com>
 wrote:

> Added NlFillOvsMsg API in Netlink.c This API will be used to populate
> netlink message headers.
> 
> Signed-off-by: Ankur Sharma <ankursha...@vmware.com>
> Acked-by: Alin Gabriel Serdean <aserd...@cloudbasesolutions.com>
> Acked-by: Eitan Eliahu <elia...@vmware.com>
> ---
> datapath-windows/ovsext/Netlink/Netlink.c | 38 +++++++++++++++++++++++++++++++
> datapath-windows/ovsext/Netlink/Netlink.h |  6 +++++
> 2 files changed, 44 insertions(+)
> 
> diff --git a/datapath-windows/ovsext/Netlink/Netlink.c 
> b/datapath-windows/ovsext/Netlink/Netlink.c
> index c286c2f..a2829a5 100644
> --- a/datapath-windows/ovsext/Netlink/Netlink.c
> +++ b/datapath-windows/ovsext/Netlink/Netlink.c
> @@ -34,6 +34,44 @@
> 
> /*
>  * ---------------------------------------------------------------------------
> + * Prepare netlink message headers. Attributes should be added by caller.
> + * 
> ---------------------------------------------------------------------------
> + */
> +NTSTATUS
> +NlFillOvsMsg(POVS_MESSAGE msgOut, PNL_BUFFER nlBuf,
> +             UINT16 nlmsgType, UINT16 nlmsgFlags,
> +             UINT32 nlmsgSeq, UINT32 nlmsgPid,
> +             UINT8 genlCmd, UINT8 genlVer, UINT32 dpNo)

We don't need msgOut and nlBuf both as parameters. One of them will suffice.
You can declare a local variable msgOut = NlBufAt(nlBuf, 0, sizeof *msgOut);

LG otherwise.

Acked-by: Nithin Raju <nit...@vmware.com>

-- Nithin
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to