Re: [dpdk-dev] [PATCH v5 07/10] examples/power: add json string handling

2018-10-01 Thread Hunt, David
Hi Lei, On 30/9/2018 2:54 AM, Yao, Lei A wrote: +#ifdef USE_JANSSON +static int +parse_json_to_pkt(json_t *element, struct channel_packet *pkt) +{ + const char *key; + json_t *value; + int ret; + + memset(pkt, 0, sizeof(struct channel_packet)); + + pkt->nb_mac_to_m

Re: [dpdk-dev] [PATCH v5 07/10] examples/power: add json string handling

2018-09-29 Thread Yao, Lei A
> +#ifdef USE_JANSSON > +static int > +parse_json_to_pkt(json_t *element, struct channel_packet *pkt) > +{ > + const char *key; > + json_t *value; > + int ret; > + > + memset(pkt, 0, sizeof(struct channel_packet)); > + > + pkt->nb_mac_to_monitor = 0; > + pkt->t_boost_status.

[dpdk-dev] [PATCH v5 07/10] examples/power: add json string handling

2018-09-26 Thread David Hunt
Add JSON string handling to vm_power_manager for JSON strings received through the fifo. The format of the JSON strings are detailed in the next patch, the vm_power_manager user guide documentation updates. This patch introduces a new dependency on Jansson, a C library for encoding, decoding and m