DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] mbuf: Initialize all fields in struct rte_mbuf_sched
@ 2019-01-24 14:36 Ed Czeck
  2019-01-24 20:34 ` Stephen Hemminger
  2019-01-27 23:38 ` Thomas Monjalon
  0 siblings, 2 replies; 3+ messages in thread
From: Ed Czeck @ 2019-01-24 14:36 UTC (permalink / raw)
  To: dev, thomas, olivier.matz; +Cc: reshma.pattan, Ed Czeck

g++ reports "error: missing initializer for member"
Fixes: 5d3f72100904 (mbuf: implement generic format for sched field)

Signed-off-by: Ed Czeck <ed.czeck@atomicrules.com>
---
 lib/librte_mbuf/rte_mbuf.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
index d716294..a7f6702 100644
--- a/lib/librte_mbuf/rte_mbuf.h
+++ b/lib/librte_mbuf/rte_mbuf.h
@@ -2464,6 +2464,7 @@ rte_mbuf_sched_set(struct rte_mbuf *m, uint32_t queue_id,
 				.queue_id = queue_id,
 				.traffic_class = traffic_class,
 				.color = color,
+				.reserved = 0,
 			};
 }
 
-- 
2.7.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] mbuf: Initialize all fields in struct rte_mbuf_sched
  2019-01-24 14:36 [dpdk-dev] [PATCH] mbuf: Initialize all fields in struct rte_mbuf_sched Ed Czeck
@ 2019-01-24 20:34 ` Stephen Hemminger
  2019-01-27 23:38 ` Thomas Monjalon
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2019-01-24 20:34 UTC (permalink / raw)
  To: Ed Czeck; +Cc: dev, thomas, olivier.matz, reshma.pattan

On Thu, 24 Jan 2019 09:36:37 -0500
Ed Czeck <ed.czeck@atomicrules.com> wrote:

> g++ reports "error: missing initializer for member"
> Fixes: 5d3f72100904 (mbuf: implement generic format for sched field)
> 
> Signed-off-by: Ed Czeck <ed.czeck@atomicrules.com>
> ---
>  lib/librte_mbuf/rte_mbuf.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
> index d716294..a7f6702 100644
> --- a/lib/librte_mbuf/rte_mbuf.h
> +++ b/lib/librte_mbuf/rte_mbuf.h
> @@ -2464,6 +2464,7 @@ rte_mbuf_sched_set(struct rte_mbuf *m, uint32_t queue_id,
>  				.queue_id = queue_id,
>  				.traffic_class = traffic_class,
>  				.color = color,
> +				.reserved = 0,
>  			};
>  }
>  

This only happens because C++ is picker than C.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] mbuf: Initialize all fields in struct rte_mbuf_sched
  2019-01-24 14:36 [dpdk-dev] [PATCH] mbuf: Initialize all fields in struct rte_mbuf_sched Ed Czeck
  2019-01-24 20:34 ` Stephen Hemminger
@ 2019-01-27 23:38 ` Thomas Monjalon
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2019-01-27 23:38 UTC (permalink / raw)
  To: Ed Czeck; +Cc: dev, olivier.matz, reshma.pattan

24/01/2019 15:36, Ed Czeck:
> g++ reports "error: missing initializer for member"
> Fixes: 5d3f72100904 (mbuf: implement generic format for sched field)
> 
> Signed-off-by: Ed Czeck <ed.czeck@atomicrules.com>

Applied, thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-27 23:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-24 14:36 [dpdk-dev] [PATCH] mbuf: Initialize all fields in struct rte_mbuf_sched Ed Czeck
2019-01-24 20:34 ` Stephen Hemminger
2019-01-27 23:38 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).