[ovs-dev] [PATCH v3] datapath-windows: Add define for last module number

Guru Shetty guru at ovn.org
Tue Sep 20 14:40:22 UTC 2016


On 19 September 2016 at 16:16, Shashank Ram <rams at vmware.com> wrote:

> Adds a define for the last defined module number.
>
> Change-Id: I1ea9230317a849e911900cf69e96ed85a65d3a8c
> Signed-off-by: Shashank Ram <rams at vmware.com>
>

I removed the Change-Id, added you to AUTHORS and applied this to master
and 2.6

Thanks!


> ---
>  datapath-windows/ovsext/Debug.c | 1 +
>  datapath-windows/ovsext/Debug.h | 4 ++--
>  2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/datapath-windows/ovsext/Debug.c b/datapath-windows/ovsext/
> Debug.c
> index a96d38d..c3d14ae 100644
> --- a/datapath-windows/ovsext/Debug.c
> +++ b/datapath-windows/ovsext/Debug.c
> @@ -25,6 +25,7 @@
>
>  UINT32  ovsLogFlags = 0xffffffff;
>  UINT32  ovsLogLevel = OVS_DBG_DEFAULT;
> +BUILD_ASSERT(OVS_DBG_LAST < 31); /* 'ovsLogLevel' is 32 bits. */
>
>  #define OVS_LOG_BUFFER_SIZE 384
>
> diff --git a/datapath-windows/ovsext/Debug.h b/datapath-windows/ovsext/
> Debug.h
> index 935f858..cae6ac9 100644
> --- a/datapath-windows/ovsext/Debug.h
> +++ b/datapath-windows/ovsext/Debug.h
> @@ -43,8 +43,8 @@
>  #define OVS_DBG_CONTRK   BIT32(23)
>  #define OVS_DBG_GENEVE   BIT32(24)
>
> -#define OVS_DBG_RESERVED BIT32(31)
> -//Please add above OVS_DBG_RESERVED.
> +#define OVS_DBG_LAST     24  /* Set this to the last defined module
> number. */
> +/* Please add above OVS_DBG_LAST. */
>
>  #define OVS_DBG_ERROR    DPFLTR_ERROR_LEVEL
>  #define OVS_DBG_WARN     DPFLTR_WARNING_LEVEL
> --
> 2.9.3.windows.2
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>



More information about the dev mailing list