From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 8459A1B135 for ; Sun, 30 Sep 2018 03:54:25 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Sep 2018 18:54:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,322,1534834800"; d="scan'208";a="94672998" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga001.fm.intel.com with ESMTP; 29 Sep 2018 18:54:12 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 29 Sep 2018 18:54:12 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 29 Sep 2018 18:54:11 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.140]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.220]) with mapi id 14.03.0319.002; Sun, 30 Sep 2018 09:54:09 +0800 From: "Yao, Lei A" To: "Hunt, David" , "dev@dpdk.org" CC: "Mcnamara, John" , "stephen@networkplumber.org" , "Burakov, Anatoly" Thread-Topic: [PATCH v5 07/10] examples/power: add json string handling Thread-Index: AQHUVbgC5ZcdxSMz1E6b1gUZAEX/s6UIFHpw Date: Sun, 30 Sep 2018 01:54:08 +0000 Message-ID: <2DBBFF226F7CF64BAFCA79B681719D953A570DDE@shsmsx102.ccr.corp.intel.com> References: <20180926134037.43606-1-david.hunt@intel.com> <20180926163727.47337-1-david.hunt@intel.com> <20180926163727.47337-8-david.hunt@intel.com> In-Reply-To: <20180926163727.47337-8-david.hunt@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzFlYzJmZDMtOWEyNS00OTgxLTk1MjktMDNmZTA3ZjJkYWJjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZjlIc0h5UGMxUUVoOGdFblVlcFwvMzFPd1NmYnR0ZXFJcXV0SjR0T2NnN2c5NkJ0a1Mrak5hSlgwMEJjckprRXAifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v5 07/10] examples/power: add json string handling X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Sep 2018 01:54:26 -0000 > +#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 =3D 0; > + pkt->t_boost_status.tbEnabled =3D false; > + pkt->workload =3D LOW; > + pkt->policy_to_use =3D TIME; > + pkt->command =3D PKT_POLICY; > + pkt->core_type =3D CORE_TYPE_PHYSICAL; > + Hi, Dave For the workload policy , it's set to LOW by default, but we can't change it again using JSON file channel. Is it=20 by design? =20