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 24238A0A03; Tue, 19 Jan 2021 00:05:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D3AD3140D10; Tue, 19 Jan 2021 00:05:29 +0100 (CET) Received: from hqnvemgate25.nvidia.com (hqnvemgate25.nvidia.com [216.228.121.64]) by mails.dpdk.org (Postfix) with ESMTP id 66FAC140D0F for ; Tue, 19 Jan 2021 00:05:27 +0100 (CET) Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 18 Jan 2021 15:05:26 -0800 Received: from HQMAIL105.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Mon, 18 Jan 2021 15:05:26 -0800 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Mon, 18 Jan 2021 15:05:26 -0800 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 18 Jan 2021 23:05:26 +0000 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.43) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 18 Jan 2021 23:05:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kTT89+P+1qSKCoa4rtUuiwOgqtmjt76kvRE08itoKha5Z+BaWAxs62f+sl/aS8TJhO5QSpEC2TDloMHuS6USGJGjkl7AcGeaRHGmTwC6elzFXOg/BBXIhKcwprRDCU5uUBdR72zOyajA8ZHS9Yj3/RWOtcWjeSVuKYvRxYe1eZ8f9JRq2eXR+lpoAKSadWV38kg7ucuonU1Lx/4gxqfapEtlcl/OI+r67c4ggLGYlU8DPvIG2QtKbyD5cAUQH9UQZRGlmRH9IaEHSSo4DofqHHZqjgmj14s2TMVNmF4wRqQLOtO1S7wvDVHHXl/ohibfhUwN/hoPToO6RmgfjK9gXA== 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:X-MS-Exchange-SenderADCheck; bh=h5BsbR6hG2X4YWRzxSi4zAm316BWeGZ15MgqSZI7N78=; b=Q+HrLa0YsyA6NidfKYepOdt6KYbPzeOdNM2p7v34CR3bIdhd7YH3+TBQGeRZX40g/VfyubHvQJEOd9EGeWtntYfkvE9pbfQ3+x4HnYK8CibFuyp6Aat6ZlEsJgNOrBrYckwrQC6SxdlDAtkQNIel0OHZEpLcJVLG2DdV52qzDff0jCDx9G2FOaXPR/A3eqIeXMQncLA9ZtVBEZVqD3poboOTwcIEAQTL0Pv62Vth+/KsLZ8/8GJqqvLkOsUf019OwXv/2Uuj43WOjDoRdIpq+rb8FWOXFOmnaxdXPx4QrXArH0sTN2+MfTtEkDoDMA/55UnLApt6R+rSTIdwNEmVtA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from BY5PR12MB4324.namprd12.prod.outlook.com (2603:10b6:a03:209::10) by BYAPR12MB3558.namprd12.prod.outlook.com (2603:10b6:a03:aa::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6; Mon, 18 Jan 2021 23:05:23 +0000 Received: from BY5PR12MB4324.namprd12.prod.outlook.com ([fe80::8d03:2ada:5add:965d]) by BY5PR12MB4324.namprd12.prod.outlook.com ([fe80::8d03:2ada:5add:965d%3]) with mapi id 15.20.3763.014; Mon, 18 Jan 2021 23:05:23 +0000 From: "Xueming(Steven) Li" To: Slava Ovsiienko CC: "dev@dpdk.org" , Matan Azrad , "Shahaf Shuler" , NBU-Contact-Thomas Monjalon , Asaf Penso Thread-Topic: [PATCH v3 7/9] net/mlx5: save bonding member ports information Thread-Index: AQHW7Y0vN5Qca1aCl0KPlCrgprxAVKotj5mAgABxqqA= Date: Mon, 18 Jan 2021 23:05:23 +0000 Message-ID: References: <1608304614-13908-2-git-send-email-xuemingl@nvidia.com> <1610969353-31938-8-git-send-email-xuemingl@nvidia.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [180.162.33.127] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 00af0dd3-fde7-4734-b1b7-08d8bc05894e x-ms-traffictypediagnostic: BYAPR12MB3558: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:619; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DGe/+G9VcxQAyqSn/u5oqd87S3NVYyf8dbIAQhvZmeGfENiRzzGiIgVNSn92A5JJhilG4HH4zEMd3OuG6BDADiVOiB/tSv5G5WAG6UeNVrw5DoP2SX4jy0UgL0QzpPfgMGs6tO3JqF82rE038vofLrVsg6vPOga5UtLlGUa8L204RkmFL436aHeDko8/QNIZaIIp0I/GzNflX3qIw+rIIbSIJuuFx7i+Ugdg0Vmoj82npz8sdwjAy6ikA+CsXbrihNtq/BHiqkRxowZAOsQ9yM3ndDcQq9v7CSuh3MzFPDZJXE4Hm2aHc8sNpn493AUOmK/smcsAGoXQqc2zSKWX/EhBZ53qUfJSja2BNUoG04a/NmOXEYvfK2mpYQMyPSmn2gbVtgB90KW0HP7Rimtz7u7Cgyxj99zMcKsvCgYjoKumZKgh9jBvZE4buQBXV3EZaDa1h2q8zYTbKfrboWwdtVDCdgQt35Dniry0mYOPO+LMxweZLGEdru4S2jTXI9/faf35E9GN3sHSOIJQRUyBqQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR12MB4324.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(366004)(39860400002)(136003)(396003)(76116006)(316002)(26005)(66946007)(8676002)(52536014)(2906002)(186003)(8936002)(53546011)(6862004)(54906003)(107886003)(4326008)(478600001)(86362001)(5660300002)(83380400001)(66446008)(64756008)(66556008)(66476007)(9686003)(71200400001)(55016002)(7696005)(6636002)(6506007)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?yTQflPs2+Xd/hnLdsqNhy23p9s6wh+TvkVPrMl1nyv0l/ESM88Harl+W3GB8?= =?us-ascii?Q?zkYvaQnQZaRIlvA5gYChWLpHBPkVkNcc7BaR2GoGDkisgHgyGyKxG1tG7JeI?= =?us-ascii?Q?ATn8HF4VDAZUxhPTMvuAv5v2YKSzzVfTR+n6ywE6A/9LbVFLYZNaTpET6LXU?= =?us-ascii?Q?eU3N/D9qaMOP+/NBmJEhuXx3S15UTyUnNvkSUqYBjtd7fT+BsRD4opxoj7hf?= =?us-ascii?Q?OrPltiHIERcZzJgVcX2AhNBXKqlbvISfN4ibc+ditwfsN2Zv9veeFL1wIpdl?= =?us-ascii?Q?iLnGflwfSIxPd6cwvQ2eRzBLMOaHJHL9e7qjcz13GsLmmBNcIrEiJBih+OsY?= =?us-ascii?Q?i7Ov7PKWoNoKmhJWp2bhtxXRA7+byW4XcekSx02PJ8hgYNeAMPQfXRerVIYx?= =?us-ascii?Q?1uKiO1ZAu4VTxlI4KcrR6a5eEi42mFAOPZUqbaU/289oCmWCZsFx5CLOuKh2?= =?us-ascii?Q?7Su3UzqHllK3Aq+SQhZsUr/TND7egmbOu++AHMLlKjNx32/mJ3SI72FUN9RI?= =?us-ascii?Q?rlBd5PJFO+eceuARmzOogJey+gr3wb38ZXgT2czgaOFiWTqw8bifFlVgjquR?= =?us-ascii?Q?wZ3NC8n5czWNeIudOyitm8C6GtQQNrt7MUmOZID0eqdV1p1XU00mot33eOCT?= =?us-ascii?Q?3SgL5Hh23McvF/EqNVmnBqmntxcQ8Hhss7CkfikuQDra3U/xFYr/hKtd4pqT?= =?us-ascii?Q?cmKJcyzIEw+2W8N4Cx8Tp+a3MIFVs/BM2TndZEZSoOiboK/XyP8mxPiWdzbO?= =?us-ascii?Q?B8gjNGCOKvrrCVusHkfySfyYux8ahxQ9PzFbkl6h6hRB0CauSF4G1LHLFAsP?= =?us-ascii?Q?8lAAUFmU5cYHqIqhZm5Swqug8Kt1naLSPeSPg9uIaxI0BTWeIxzMzqWcmzvf?= =?us-ascii?Q?Qf5GUOH8aYV0emUTmqH3jDMh/Ke2S1ogG2LwKjyhzRFgPa92SY1kDvgVZiPD?= =?us-ascii?Q?tzqh6LlqeHbF7OnrNytM9bCJUA3Ul2RObQoMPV0YCMg=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4324.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 00af0dd3-fde7-4734-b1b7-08d8bc05894e X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2021 23:05:23.5497 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: db4yjFy99/s38NnCU4bNaQv+Ku62fPsVRywPpsnts+EYAHn4MsVC/3GIJTp2cEIOKGH90OOYVYZz7on2ITvpUw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB3558 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1611011126; bh=h5BsbR6hG2X4YWRzxSi4zAm316BWeGZ15MgqSZI7N78=; h=X-PGP-Universal:ARC-Seal:ARC-Message-Signature: ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic: Thread-Index:Date:Message-ID:References:In-Reply-To: Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-ms-exchange-transport-forked:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=JQx+Pv1ip5xZ3eCHQs66CnqywncEJNbAGuiwOsPhR3DrlIa/bZESPWGpHUIyEe2MF qndpMbpGVFWifcSySC83otK2ul16ZFYBJLPzTdPDMe9qX70nLTSVMbymw/XjtSDikV h9cz7Vn9aNy3XLfEGHc2GzP0hZ/XgKuY9F4QRRhisWXZsAq5cU96y6jKWA6CBDU+0C Me4ofI7yC8N4MFqDpVAlAqIuyfPND/wP4YgFVijBlSX0a94bT4vzdpMtMvRFlJYvGY +8aOpNbz8ETDqdqre9Y0u0gzPj1znM/5Cl7PCnu8Q9g6OhkkjaxpQvNO6uNwxzMJw8 SP/4KpRUGHc/w== Subject: Re: [dpdk-dev] [PATCH v3 7/9] net/mlx5: save bonding member ports information 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" Hi Slava, >-----Original Message----- >From: Slava Ovsiienko >Sent: Tuesday, January 19, 2021 12:17 AM >To: Xueming(Steven) Li >Cc: dev@dpdk.org; Matan Azrad ; Shahaf Shuler >; NBU-Contact-Thomas Monjalon >; Xueming(Steven) Li ; Asaf >Penso >Subject: RE: [PATCH v3 7/9] net/mlx5: save bonding member ports >information > >Hi, Xueming > >- this patch has the same headline as previous one >- typos: couters -> counters, collect -> collectS, save -> saveS My bad, this patch should combine with previous one. > >With best regards, Slava > >> -----Original Message----- >> From: Xueming Li >> Sent: Monday, January 18, 2021 13:29 >> To: Slava Ovsiienko >> Cc: dev@dpdk.org; Matan Azrad ; Shahaf Shuler >> ; NBU-Contact-Thomas Monjalon >> ; Xueming(Steven) Li ; Asaf >> Penso >> Subject: [PATCH v3 7/9] net/mlx5: save bonding member ports >> information >> >> Since kernel bonding interface doesn't provide counter summary of >> member ports, PMD has to aggregate couters from of member ports. >> >> This patch collect bonding member information and save to shared >> context data. >> >> Signed-off-by: Xueming Li >> Acked-by: Viacheslav Ovsiienko >> --- >> drivers/net/mlx5/mlx5.h | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h index >> 508f98f8cd..c15af1d794 100644 >> --- a/drivers/net/mlx5/mlx5.h >> +++ b/drivers/net/mlx5/mlx5.h >> @@ -662,12 +662,14 @@ struct mlx5_flex_parser_profiles { >> void *obj; /* Flex parser node object. */ >> }; >> >> +/* Max member ports per bonding device. */ #define >> MLX5_BOND_MAX_PORTS >> +2 >> + >> /* Bonding device information. */ >> struct mlx5_bond_info { >> int n_port; /* Number of bond member ports. */ >> uint32_t ifindex; >> char ifname[MLX5_NAMESIZE + 1]; >> -#define MLX5_BOND_MAX_PORTS 2 >> struct { >> char ifname[MLX5_NAMESIZE + 1]; >> uint32_t ifindex; >> -- >> 2.25.1