Re: [ovs-dev] [PATCH ovn] Fix the travis CI compilation error seen for osx job

2020-01-10 Thread Numan Siddique
On Fri, Jan 10, 2020 at 6:44 PM Lorenzo Bianconi
 wrote:
>
> On Fri, Jan 10, 2020 at 1:25 PM  wrote:
> >
> > From: Numan Siddique 
> >
> > After the commit [1], travis CI job for osx [2] is failing with the below
> > error:
> >
> > *
> > In file included from lib/actions.c:25:
> > ./lib/ovn-l7.h:246:9: error: 'ND_OPT_ROUTE_INFO' macro redefined 
> > [-Werror,-Wmacro-redefined]
> > ^
> > /usr/include/netinet/icmp6.h:329:9: note: previous definition is here
> > *
> >
>
> Acked-by: Lorenzo Bianconi 

Thanks Lorenzo. I applied this patch to master.

Numan

>
> > This patch renames the macro ND_OPT_ROUTE_INFO to ND_OPT_ROUTE_INFO_TYPE as 
> > this macro
> > is used to set the Route Information Option Type.
> >
> > [1] - 9f7f466af("Add support for Route Info Option in RA - RFC 4191")
> > [2] - 
> > https://travis-ci.org/ovn-org/ovn/jobs/634833728?utm_medium=notification&utm_source=github_status
> >
> > Fixes- 9f7f466af("Add support for Route Info Option in RA - RFC 4191")
> > CC: Lorenzo Bianconi 
> > Signed-off-by: Numan Siddique 
> > ---
> >  controller/pinctrl.c | 2 +-
> >  lib/ovn-l7.h | 4 ++--
> >  2 files changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/controller/pinctrl.c b/controller/pinctrl.c
> > index c4752c673..452ca8a1c 100644
> > --- a/controller/pinctrl.c
> > +++ b/controller/pinctrl.c
> > @@ -2486,7 +2486,7 @@ packet_put_ra_route_info_opt(struct dp_packet *b, 
> > ovs_be32 lifetime,
> >  for (t1 = strtok_r(t0, "-", &r1), index = 0; t1;
> >   t1 = strtok_r(NULL, "-", &r1), index++) {
> >
> > -nd_rinfo.type = ND_OPT_ROUTE_INFO;
> > +nd_rinfo.type = ND_OPT_ROUTE_INFO_TYPE;
> >  nd_rinfo.route_lifetime = lifetime;
> >
> >  switch (index) {
> > diff --git a/lib/ovn-l7.h b/lib/ovn-l7.h
> > index ae6dbfdfb..375b77014 100644
> > --- a/lib/ovn-l7.h
> > +++ b/lib/ovn-l7.h
> > @@ -243,10 +243,10 @@ struct ovs_nd_dnssl {
> >  BUILD_ASSERT_DECL(ND_DNSSL_OPT_LEN == sizeof(struct ovs_nd_dnssl));
> >
> >  /* Route Information option RFC 4191 */
> > -#define ND_OPT_ROUTE_INFO   24
> > +#define ND_OPT_ROUTE_INFO_TYPE   24
> >  #define ND_ROUTE_INFO_OPT_LEN8
> >  struct ovs_nd_route_info {
> > -u_int8_t type;  /* ND_OPT_ROUTE_INFO */
> > +u_int8_t type;  /* ND_OPT_ROUTE_INFO_TYPE */
> >  u_int8_t len;   /* 1, 2 or 3 */
> >  u_int8_t prefix_len;
> >  u_int8_t flags;
> > --
> > 2.24.1
> >
>
> ___
> dev mailing list
> d...@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>
___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev


Re: [ovs-dev] [PATCH ovn] Fix the travis CI compilation error seen for osx job

2020-01-10 Thread Lorenzo Bianconi
On Fri, Jan 10, 2020 at 1:25 PM  wrote:
>
> From: Numan Siddique 
>
> After the commit [1], travis CI job for osx [2] is failing with the below
> error:
>
> *
> In file included from lib/actions.c:25:
> ./lib/ovn-l7.h:246:9: error: 'ND_OPT_ROUTE_INFO' macro redefined 
> [-Werror,-Wmacro-redefined]
> ^
> /usr/include/netinet/icmp6.h:329:9: note: previous definition is here
> *
>

Acked-by: Lorenzo Bianconi 

> This patch renames the macro ND_OPT_ROUTE_INFO to ND_OPT_ROUTE_INFO_TYPE as 
> this macro
> is used to set the Route Information Option Type.
>
> [1] - 9f7f466af("Add support for Route Info Option in RA - RFC 4191")
> [2] - 
> https://travis-ci.org/ovn-org/ovn/jobs/634833728?utm_medium=notification&utm_source=github_status
>
> Fixes- 9f7f466af("Add support for Route Info Option in RA - RFC 4191")
> CC: Lorenzo Bianconi 
> Signed-off-by: Numan Siddique 
> ---
>  controller/pinctrl.c | 2 +-
>  lib/ovn-l7.h | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/controller/pinctrl.c b/controller/pinctrl.c
> index c4752c673..452ca8a1c 100644
> --- a/controller/pinctrl.c
> +++ b/controller/pinctrl.c
> @@ -2486,7 +2486,7 @@ packet_put_ra_route_info_opt(struct dp_packet *b, 
> ovs_be32 lifetime,
>  for (t1 = strtok_r(t0, "-", &r1), index = 0; t1;
>   t1 = strtok_r(NULL, "-", &r1), index++) {
>
> -nd_rinfo.type = ND_OPT_ROUTE_INFO;
> +nd_rinfo.type = ND_OPT_ROUTE_INFO_TYPE;
>  nd_rinfo.route_lifetime = lifetime;
>
>  switch (index) {
> diff --git a/lib/ovn-l7.h b/lib/ovn-l7.h
> index ae6dbfdfb..375b77014 100644
> --- a/lib/ovn-l7.h
> +++ b/lib/ovn-l7.h
> @@ -243,10 +243,10 @@ struct ovs_nd_dnssl {
>  BUILD_ASSERT_DECL(ND_DNSSL_OPT_LEN == sizeof(struct ovs_nd_dnssl));
>
>  /* Route Information option RFC 4191 */
> -#define ND_OPT_ROUTE_INFO   24
> +#define ND_OPT_ROUTE_INFO_TYPE   24
>  #define ND_ROUTE_INFO_OPT_LEN8
>  struct ovs_nd_route_info {
> -u_int8_t type;  /* ND_OPT_ROUTE_INFO */
> +u_int8_t type;  /* ND_OPT_ROUTE_INFO_TYPE */
>  u_int8_t len;   /* 1, 2 or 3 */
>  u_int8_t prefix_len;
>  u_int8_t flags;
> --
> 2.24.1
>

___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev


[ovs-dev] [PATCH ovn] Fix the travis CI compilation error seen for osx job

2020-01-10 Thread numans
From: Numan Siddique 

After the commit [1], travis CI job for osx [2] is failing with the below
error:

*
In file included from lib/actions.c:25:
./lib/ovn-l7.h:246:9: error: 'ND_OPT_ROUTE_INFO' macro redefined 
[-Werror,-Wmacro-redefined]
^
/usr/include/netinet/icmp6.h:329:9: note: previous definition is here
*

This patch renames the macro ND_OPT_ROUTE_INFO to ND_OPT_ROUTE_INFO_TYPE as 
this macro
is used to set the Route Information Option Type.

[1] - 9f7f466af("Add support for Route Info Option in RA - RFC 4191")
[2] - 
https://travis-ci.org/ovn-org/ovn/jobs/634833728?utm_medium=notification&utm_source=github_status

Fixes- 9f7f466af("Add support for Route Info Option in RA - RFC 4191")
CC: Lorenzo Bianconi 
Signed-off-by: Numan Siddique 
---
 controller/pinctrl.c | 2 +-
 lib/ovn-l7.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/controller/pinctrl.c b/controller/pinctrl.c
index c4752c673..452ca8a1c 100644
--- a/controller/pinctrl.c
+++ b/controller/pinctrl.c
@@ -2486,7 +2486,7 @@ packet_put_ra_route_info_opt(struct dp_packet *b, 
ovs_be32 lifetime,
 for (t1 = strtok_r(t0, "-", &r1), index = 0; t1;
  t1 = strtok_r(NULL, "-", &r1), index++) {
 
-nd_rinfo.type = ND_OPT_ROUTE_INFO;
+nd_rinfo.type = ND_OPT_ROUTE_INFO_TYPE;
 nd_rinfo.route_lifetime = lifetime;
 
 switch (index) {
diff --git a/lib/ovn-l7.h b/lib/ovn-l7.h
index ae6dbfdfb..375b77014 100644
--- a/lib/ovn-l7.h
+++ b/lib/ovn-l7.h
@@ -243,10 +243,10 @@ struct ovs_nd_dnssl {
 BUILD_ASSERT_DECL(ND_DNSSL_OPT_LEN == sizeof(struct ovs_nd_dnssl));
 
 /* Route Information option RFC 4191 */
-#define ND_OPT_ROUTE_INFO   24
+#define ND_OPT_ROUTE_INFO_TYPE   24
 #define ND_ROUTE_INFO_OPT_LEN8
 struct ovs_nd_route_info {
-u_int8_t type;  /* ND_OPT_ROUTE_INFO */
+u_int8_t type;  /* ND_OPT_ROUTE_INFO_TYPE */
 u_int8_t len;   /* 1, 2 or 3 */
 u_int8_t prefix_len;
 u_int8_t flags;
-- 
2.24.1

___
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev