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 4125FA0A03; Mon, 18 Jan 2021 17:17:05 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0A321140D36; Mon, 18 Jan 2021 17:17:05 +0100 (CET) Received: from hqnvemgate24.nvidia.com (hqnvemgate24.nvidia.com [216.228.121.143]) by mails.dpdk.org (Postfix) with ESMTP id B50D0140CE6 for ; Mon, 18 Jan 2021 17:17:03 +0100 (CET) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Mon, 18 Jan 2021 08:17:02 -0800 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 18 Jan 2021 16:17:02 +0000 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.171) 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 16:17:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iGICgpBi90+qSopI69QKh4f5wkLqYjN4qUJJU1amHSnxa880WXwSOinNBH77NXI7fvD+3YMwoqihvVqxZYDtCuGn6zv4aAhg/h24ICVoK+6Zv+Nqp6oBepqhQIw6hyWb/7a1BAGoIwYdlrx5Plwe/B9b5z9o9PCMPCj2RgXbvf4QydOSLR5khtkj08uCRLl/Y/d5VJsh5Fw0wRymingNqwO/5Evkq0FfEFniDUhnt/1u5FtKBadZ1g0UcxgZyIRrpCYq5aacGrL3rlF2mbOsryOEUJhZY+65reaH/oZd8kvZo+3Kc+J/H6oFRbEKg2b8GJeisgZGGKyi+DAsNIK2Cg== 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=715ykOqX+3fhOIvHQ1KUlPBZAa2cPHc7d9Q9ueynUPY=; b=Gd7w4fs8BEv4u399l4nrNTp3PNPkQFl5gg816RWWRxyHwj/XoTGEXOZuiQGfFwcdC4PArodDWRrQGL/z3LhvSZsCtOgLuSV/xIYu8MAbGG184DDKcW7PoqEbbOZZXI5wsI2/Ow8Lyru6Rf5f4Z62/M7tI9cqnbrgkfCgJamqZozoc5D4oTfVBbDoTzU0NGjz4h+KUD8BUZDmeC6GXPd2/v3VZdD/4JiN6KczsUh1qHMduWfC51uEbtzO5Yyzz249Mdiey+UODG9q+eQWnHb1vt8k6tqaJqzuHxvELxom1wSLcX14zcEu9R0Rnpi9/Of13QLebhnGgrF4TjWUIyEnCw== 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 DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM5PR1201MB0171.namprd12.prod.outlook.com (2603:10b6:4:56::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.14; Mon, 18 Jan 2021 16:17:01 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::e4a9:f9a1:d873:d07a]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::e4a9:f9a1:d873:d07a%5]) with mapi id 15.20.3763.014; Mon, 18 Jan 2021 16:17:01 +0000 From: Slava Ovsiienko To: "Xueming(Steven) Li" CC: "dev@dpdk.org" , Matan Azrad , "Shahaf Shuler" , NBU-Contact-Thomas Monjalon , "Xueming(Steven) Li" , Asaf Penso Thread-Topic: [PATCH v3 7/9] net/mlx5: save bonding member ports information Thread-Index: AQHW7Y0u8U7R6+U7MEmwRnd0Q1T9K6otjz9g Date: Mon, 18 Jan 2021 16:17:01 +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: <1610969353-31938-8-git-send-email-xuemingl@nvidia.com> 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: [188.163.75.192] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: efb753b3-82cf-4c55-7570-08d8bbcc7ca8 x-ms-traffictypediagnostic: DM5PR1201MB0171: 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:2150; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xQzjzEkT1gEKbsSIncv1hsmuJnV1hFyDdqK526zXdkz/OECBAWYhE7zOnDQzE1Vk8VgyppGk0vZxSLTJEmdxu9P66tSJmZVCNLls4i/wwwiDziTPrPubLElmYQmlLLu6+uTQbcoybpVT8fQ1ElP+BLwyHSnY9UJJbV1LiLKW1kJYG6jHz6BTBdIwhQDN1OjkA3OARIjjM6d+F9CUdkMi6ZjoROQKkM2wvBBJy47i1VyHMydFyaf/e7gB6FLn30KxY1I5XWBODUAvlmv9y+0B1w1ql35uRQ4fHtYuHT6q5R7u7t6KpyerYO/AxA8xgrPmmq0NUSiUaRdzXHe+oSHrJ5UUFISilhP1Jv6ULu2gFNNYI4aoSuTp3s4nKlFcUVaDd/HR8qF4+HcJS6kGcKIlLg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(39860400002)(396003)(376002)(346002)(136003)(316002)(8676002)(26005)(54906003)(7696005)(5660300002)(55236004)(52536014)(66946007)(66476007)(66556008)(186003)(64756008)(33656002)(478600001)(2906002)(6636002)(53546011)(86362001)(9686003)(4326008)(66446008)(76116006)(83380400001)(71200400001)(55016002)(6506007)(8936002)(6862004)(107886003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?MLvf1LEF97mAZVmN75+UhOsTLh8Xz1HuboOcxMiWJNPuH8BmU7v5VSThB9Ib?= =?us-ascii?Q?DoVEMusV0e9wUeh73sLpYjHi3SWRrOdUhMkW3xB5MZhvx9L7lQvHz8itUbKU?= =?us-ascii?Q?NxwIz/teqw7Lsu/bZ1vYhlk7hPO//CgeTWCJNsRZj24ElOTkqXjp0ymoubvX?= =?us-ascii?Q?ObQmqQjRfS6EnShOfQlBAnjWYGFkVA55fULwltVVIkHwdIxiOVLmIFWa1lKC?= =?us-ascii?Q?YTJmYN5oBMUP2MjqBsK6+/Dl0QKCAroLJC9RRrAIRLEo3yqCcTz0ygPWGST2?= =?us-ascii?Q?4XBnkEjWdopmqzyVacVsp8QeGDlV8fQ4j4z66xPdU6tZtXOAEtEu5el7YfLH?= =?us-ascii?Q?dOn3loDPeCZJgeApjd5Ogc5x1dr4BWqO2GxT2vZM8x5EtWwpA6wVQngSRJBb?= =?us-ascii?Q?+3WDZ5yNvVMKM0WFKYj1tToye7cDNJ5zYgbkDHzgbf4jQPdQq3DnSHiAXCPS?= =?us-ascii?Q?J5uXquPzDUtD1GNSbhFV94WozDYvw6QJGI+JKZOCC2Z4JizPUhIxLARMiZhV?= =?us-ascii?Q?W7Dmo1TV3nAYeP8at5MXuRNJv3584NYrL/wypxJ+gCD4kLm/TQGnOy/cMB/V?= =?us-ascii?Q?e4Rh5LG4lkZxDic1/QT6CwL7M0m+i/dCsfIdkLmb61798V8fMhDxXmYmuS5r?= =?us-ascii?Q?Cs+bqwDN975TQ1Z88vgAE6bolMNDr0BDN3ITDg33IYSPzdQhlwGzr76e4wCi?= =?us-ascii?Q?F++8n82hyrj5xB4YAbfUEDtmMgmlePVH61AahtVLAN91d2rO4vWrRLyn9yn3?= =?us-ascii?Q?D/jkT1HBJ78XYM1ZTTGcsBMIcKTYYg7EjvsRZCwRL/Spy4YRfs8VanL8nMEp?= =?us-ascii?Q?CBLEJY8Fb1tIeGL3G0A0qA7VqpMmtrinY4vdgRzQgrtVdmd9xprAd38hBFzq?= =?us-ascii?Q?4g0zKicovTWuih8Drbh5ijDsaB8poLblODGj6NDHSDFlMvdq7b2TopyadE6H?= =?us-ascii?Q?TjJZv4qkbrV/G6SS93B7PHq89nUQQc6lB6privlMktU=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: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: efb753b3-82cf-4c55-7570-08d8bbcc7ca8 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2021 16:17:01.0943 (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: sphmszCeq4vLUyEArAGGLuzqrTD2CuASbCgehnXS5Kbsx8/uRUFC6701szv7Iw0BPkb1xy1Z5Euk+zYymsXLuA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0171 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1610986623; bh=715ykOqX+3fhOIvHQ1KUlPBZAa2cPHc7d9Q9ueynUPY=; h=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=dEvyDPZ9TqZ7dRnmEm6AUgEZdIIIClJ9TL8e55nxNTG+245Nz6MCfYw3JLHq1j71Z wTr3bnBztMPIytAhJPdyiWA77pC9BWbhu43KK7KJCfA8rsqNc/lyeeMWr1xcPtGjgj i0tj6rbQtgW8SHXnT7mShuGoh1xYNni2r9IkP5A2sD0HlTt7Hxkdb6dezkd60qS2mZ KWsS0MZSmI4Tydntt6BJpnAd4mPViaIyHhTec9p0mSKc1D9qj1A3ThX/tPeLrq3eYy 1NiGu0UMHnlahg53h1sJcDErZ9ks4U8BLWRzz01D2umMfKmjMsWKzKzm1r1oUmbvRk 2/NYjN/w2UUyA== 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, Xueming - this patch has the same headline as previous one - typos: couters -> counters, collect -> collectS, save -> saveS 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 >=20 > Since kernel bonding interface doesn't provide counter summary of member > ports, PMD has to aggregate couters from of member ports. >=20 > This patch collect bonding member information and save to shared context > data. >=20 > Signed-off-by: Xueming Li > Acked-by: Viacheslav Ovsiienko > --- > drivers/net/mlx5/mlx5.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > 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. */ > }; >=20 > +/* 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