From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CFFA0A0C41; Thu, 30 Sep 2021 11:00:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 539C440DDA; Thu, 30 Sep 2021 11:00:41 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 8B9884067E for ; Thu, 30 Sep 2021 11:00:39 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18U2Z5h7027849; Thu, 30 Sep 2021 02:00:38 -0700 Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam07lp2046.outbound.protection.outlook.com [104.47.51.46]) by mx0a-0016f401.pphosted.com with ESMTP id 3bd47dsf3w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Sep 2021 02:00:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B376DJgPpki4fDSdJntccZxNqoSmkW/hFHtEKxyNNzX+K5/SH4F5UeQohTQmAX+wBcOLXGJwrd735T2nXGT8WvIzgqyOtcIRU8jrP41BM2CByZqdKU0xhxZYvg8dKtm10f7nBaU0lc3Klxv5T9ipjkZOSMIpgZSxW9TNxEfBVn2EqdRUj3MAAapCj7KFdnpER2QdC/3DRMzo8/A0ig6+/ixg4Nw9AvAwfx+t5Jt80ewpam1SDlP0mllwKt0a4DEG63O9bXcsCchGNeoLki1DMhcGnBWs4RD2/gFYuMd4GvNjhNDAgooqAkWyrahAp0bjz9XJZySh9Yz/vqL0cYxv/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=2FAChwHeg+USgwrZnqu3b5sl2Jg5w2qmpd/MbnpFSHY=; b=iuUAtqz+hgIxtC5YwPiV78AA1r2Y/pIBg8QdDwlqwCq/oSe2peJxRHioWxE08DloVJTIfUhI0KmLF/7Yc8KTJwZnVkvvB377po4Yvxlv8IZ9+3R6GeFiO4v50Yz3oPaJ8bGnGAFBwzn2LT8zrv4cBIikTUdxeJOUca3WccpjroP7gu1Grjz4hcvMDY01PrUz48YelRJ5ng+ZlB0cWzFcwI9ChlAT3ZnfG6BS9MjKzvdhrMh23LPuqlWZAouyE20qBgjVt3hMw4wjSBMSs81HqfKDllHhBj5vkzoWjO2xB3TixxbV/TtwwJnS0hMiVS7TjD1Z00HBdeELCBHxMRk6Jw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2FAChwHeg+USgwrZnqu3b5sl2Jg5w2qmpd/MbnpFSHY=; b=cYjNxNcPIDLOMI975uRSZSA5/3DgEL6QqUFukG+ZuGPtdBknhMFGvffmyji4DnPnz4wh7WJSh+Thsu4l32EVFRXhxrj4+T7xc/8vfIZMiqUwlWg9eHbK+Bmp96wL/sPkh/IdqSf596x/QHOlvMFeYYFq7UdfShTUQMeOkqhXF5w= Received: from CO1PR18MB4714.namprd18.prod.outlook.com (2603:10b6:303:e9::18) by CO1PR18MB4572.namprd18.prod.outlook.com (2603:10b6:303:ff::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15; Thu, 30 Sep 2021 09:00:35 +0000 Received: from CO1PR18MB4714.namprd18.prod.outlook.com ([fe80::8c05:ddeb:f02:7b5c]) by CO1PR18MB4714.namprd18.prod.outlook.com ([fe80::8c05:ddeb:f02:7b5c%9]) with mapi id 15.20.4544.021; Thu, 30 Sep 2021 09:00:35 +0000 From: Gowrishankar Muthukrishnan To: "Power, Ciara" , "dev@dpdk.org" CC: "Richardson, Bruce" Thread-Topic: [v2] telemetry: fix json output buffer size Thread-Index: AQHXrtg6MmPSd4ObGUu60JBuDu7u+auvyKWAgAFW1WCACzKDAIAAAs8g Date: Thu, 30 Sep 2021 09:00:35 +0000 Message-ID: References: <5a95b25b81e7ee57edfdcea73b9266bc8dae8d77.1631120194.git.gmuthukrishn@marvell.com> <20210921110243.1919933-1-gmuthukrishn@marvell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 015390db-3067-4886-7942-08d983f0c3f7 x-ms-traffictypediagnostic: CO1PR18MB4572: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: w4OG9bGf45MSJHztoPvu5qheYYA2zRLS63qRqI4dOlzzRqE3IhwI6k0Wqku5JsWMb+1GeN1MPB7A9/cdZ1oYiMWBWflGo3KUrGd4mrMaNyZy/cCrdpGrRmpb9GMZmBZ3Wb4oGRM8UMGY2MB8uu0uvDeRlqJ5fkPxURxC9I8ELk0InZjNUCtYl7RpWGwLxXkUZ1vyo9QAGcjZHw+yLSIqDQiO49iGOU+M+VeCcPZyoaLVzPHDUkB5S9njVxC0jM8XaaM+g8HFkz6K0utjAFscJxCrLsLtRI9NPGsEGzpFII7JPWS51dwgvTmKQa1gCH5lqgR7PErB4b70vhWysx6Zp6yjkLwIuI8VLObdjsSHV36eir994sC93kR+nGGhtQbFLJJ9KHsKT4DzA3/RW+rxo6razLKKbKZTzYC199uR7V+3Kzq3wgwP2DbX0km4NN/UvIfrmhv8LFLa9z+j/o5v5qUGVpge2ChTb49k2XssSypngEaWYGsYrQGobUWJhvWVcr3y2HcoQ7iRbB/bZJGGKrsDCQmxAT3elcodxMYgf/c7CyvAaxUwnl45QAWC0SmcFkSxBYb4+6xPb2QVkMffWmHzgWzewuiYCFzBS3nHHQFG2wniTQlINeWO0nPCSbHimCuOOwu2sqMtUvM4Abu70fkx/1VECEG/NcKDJEqYOwymSW6AdLKzt3UNZmdhf+ohpB45HyJ9Hb1aoIiBSYlNNw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO1PR18MB4714.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(2906002)(508600001)(122000001)(38100700002)(52536014)(110136005)(71200400001)(316002)(4326008)(64756008)(66556008)(66476007)(55016002)(7696005)(186003)(83380400001)(76116006)(86362001)(66946007)(4744005)(9686003)(6506007)(66446008)(8936002)(38070700005)(33656002)(5660300002)(26005)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1Yr8SbPUPY2Z+2tGg9+4mhfZhkaF8awhllzzxvjloJnI25wj7ZM3YFl8XdOj?= =?us-ascii?Q?rf2E4UQ/gHyB6HnfAVnORY0AdkjCXvkA4JAFydbg52RrNYq6CzrZvhs2/+lm?= =?us-ascii?Q?diq5Ta4zMDsJwaqMviMVXtmdncJTmeClvqxhJP0uuJg2ZJUk8bY5PQ4x3Utb?= =?us-ascii?Q?yhnVrRHyCf7HJwDlI8nJj4R3P8gJV9YdVq2E9Nf51vALDxZBn3pDw4dPVi6y?= =?us-ascii?Q?mC6etXeRY2pMKmhL/HTurxhfFvJ15+BO+P4cMl3h09HtssRzScVBpFJeZqEq?= =?us-ascii?Q?DlWnpPBA4xzh1Z/VJ4Fwrrlj6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JSDD8WZTkiVgTe2KjcxnrW4Jll7G1Vwk4UjRqd3divmK+kpysSfGchuBlhuN?= =?us-ascii?Q?dCDmr9baP3LQkRMo2OjpMkDdH+NwJH91ln4O/fjeHwWS+xTvhIxzU3rcfmjw?= =?us-ascii?Q?fo18R3Z1bAO6o5BWRidcxOdy?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR18MB4714.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 015390db-3067-4886-7942-08d983f0c3f7 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Sep 2021 09:00:35.1586 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: od449RUbgQIhU1zt2Hf7vIKbdPtkGrBgTAq0sIDevUAkpqvvT+U5oVC93Z97Fu26dLL2w3u0cmMSjkqThizh/LV6zqky2EEMw5JQyWUjKIQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR18MB4572 X-Proofpoint-GUID: NYEWvoMoiSblF1W9_ZhVmK70Mluz_i72 X-Proofpoint-ORIG-GUID: NYEWvoMoiSblF1W9_ZhVmK70Mluz_i72 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-30_02,2021-09-29_01,2020-04-07_01 Subject: Re: [dpdk-dev] [v2] telemetry: fix json output buffer size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > >Also, I propose if we can have platform defined upper limits (esp > >MAX_CMD_LEN, MAX_SINGLE_STRING_LEN etc) so that, we need not revisit > >lib/telemetry for platform needs (and I don't think one size fits all > >platform, may be excess too). > >Thoughts ? >=20 > I am not sure why it is needed to have limits defined per platform - can = you > explain further about why it is necessary? >=20 Mainly, for the endpoint in driver. In case, if the endpoint data is bigger= than MAX_SINGLE_STRING_LEN at the worst case, endpoint will not work correctly. Thanks, Gowrishankar