From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A6408A0519; Mon, 22 Jun 2020 17:07:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6E44B1D8CA; Mon, 22 Jun 2020 17:07:54 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80082.outbound.protection.outlook.com [40.107.8.82]) by dpdk.org (Postfix) with ESMTP id 008E71D739 for ; Mon, 22 Jun 2020 17:07:52 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l+v+Ae7fwt6/FDwH4SjYctnrUn1pLGrR07xwAnIXF3gjmCplXPjfSntzktKlqSYLrcyFTpfjEBJqwKVxwr0GNiHaWSaP4X1o9mMstJyImnk6rowaPoLEd0uU+LYqBuJAEfLt36DwXg//QO8kqa3hkLbOUJ01wsN5L/38AgKXpGmG8B8StxDLz2cDoMKa7veZNQnBi/F3gB+L/cUaU0a+szrxxHRkoi4aypjsE5KBF6xD8cSCGgT8AUcLMrR5rLlLt1z2aPd4mMQgPfC8W0wKipYXTxa8Q9Sa2CS3GC7oVLt0Tg4n9uyzmpb2KjWcJAPXOa3Wm95XWpGvgko8gDLoGw== 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=isHkUMYF6kJVfUrOxb0B09tK66c+Cs/dRD7+kG65sP4=; b=lyAVqhYBFtUTPTAS05u72WMd/4Js8yeAAjmqpfQbSW5Uot2GjKneLc88Xb/K/xQn78/cLgBcPXW5FwzRqkQywQk9wh5v8P5WC5VhOu71Sk5khMljszBnEGo3LTka6y1bOIfRM0CjCv1+gLX3QpufI649F6ZCafRfwFIUNZydZUPsIrwsh4LAGA20o/4n1MzaASAw92d9ZT/Shb4zy0Qm3FVPEjHDehSdUXyjLodtSPjbpxK0qFGM820W+yxxWEsvW/Vb04IXQf0Xk9dx6tBcZcpBsSvEcJPFHLn9LFXpRnXxDhWEaUGC7uejPCUpZ51oktcroqV004Ynk8rrxI64KQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=isHkUMYF6kJVfUrOxb0B09tK66c+Cs/dRD7+kG65sP4=; b=n0v+efpTqbKi9bKHZB9Xix7I6QQnYFIHMutThrFSVAb/FM6Zv2ZlHGpLHzviNxPwh5MYuLQKjk7lxVtmO3VUMHyBWFmwkUppe/xImrmGsXdpILKad1JDgghA1VuCJQn4g9rCV1xKj9d5GDbypil8vuGPRF1bXLq6D31LyOJ5Jv0= Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (2603:10a6:20b:15b::17) by AM0PR05MB6628.eurprd05.prod.outlook.com (2603:10a6:20b:15b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.21; Mon, 22 Jun 2020 15:07:51 +0000 Received: from AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::ecd3:6008:3784:4012]) by AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::ecd3:6008:3784:4012%5]) with mapi id 15.20.3109.027; Mon, 22 Jun 2020 15:07:51 +0000 From: Raslan Darawsheh To: Ori Kam , Matan Azrad , Slava Ovsiienko , Shahaf Shuler CC: "dev@dpdk.org" , Ori Kam , Ophir Munk Thread-Topic: [PATCH v2 1/2] net/mlx5: move getter functions from net to common Thread-Index: AQHWRguLJf5511VK40ypLk2JUIHFiqjkwZew Date: Mon, 22 Jun 2020 15:07:51 +0000 Message-ID: References: <1592462442-24191-1-git-send-email-orika@mellanox.com> <1592551809-43424-1-git-send-email-orika@mellanox.com> In-Reply-To: <1592551809-43424-1-git-send-email-orika@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [84.242.49.134] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: a2a3afb6-df8a-48ae-dbd3-08d816be08ab x-ms-traffictypediagnostic: AM0PR05MB6628: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:291; x-forefront-prvs: 0442E569BC x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: z0dwpcdJjTwpy29NwF4HanEMWAcC1xGhlx7mgP0omszrxvlOCZXDQij7GMSXPlCu6LgNnrpU9ZGsEZqIqrim4SQ6DJNlVZklY3Hej20wDh4HgwZfiCr2shHPQlFw1PrlXoKR/ioNxVWXVCCk0Qsr9l3kDCFF3CKnMs2UoH9mIu3S3q7XKGUkDTfeZ3RmhBMfMASUVNMsUaxRM+k2X7VM49oN2He/zbYHvFf43Dr2C01lEHWF7b/NBK2LEhuwnXBnGJ28gzqRveOGm7QoIvejKyaIi6enlBaIbK1BVpsfEYDKcNfUFOgdUsILj2i+2O4I x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB6707.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(366004)(136003)(396003)(346002)(376002)(7696005)(54906003)(110136005)(9686003)(55016002)(478600001)(186003)(53546011)(6506007)(33656002)(316002)(6636002)(26005)(2906002)(86362001)(66446008)(66476007)(66946007)(5660300002)(83380400001)(52536014)(64756008)(66556008)(107886003)(8936002)(8676002)(76116006)(71200400001)(4326008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: DOy3luxQR5mSjRYspEyIlcaGQyCctstMWPj2axpoWCHHrwmujpy+aH+rWwgQ4/I9ah1kMiYZodR1gm+d0Jn/CHi694yLxPsuzXgqgxNG2RPwYv2TAqw4nv9GhC/I5w61BncTjWIax+I8z4/PCfTIjysRJyGmQt619poNLvGqoLoL6jTJ3+uLx56TGg2Q/AX+Rc/0nn5CIFabgmP3XuHPGDM9OIECuh2MmwvvcV8zyXACg8Jlxv2dCVK5Qsji1JzzgoG5sYDWIuHuMyWfC3KxtAw0BQFqYtzvv0RuC7FT8fS0c0g+2D3+p10PoPIw2f4azqkC0OT6tWSOoUS0qBz94mEF0bZzE5nlwsr+NtDcN19H8wM15kB4649Sz5+cUa7NAqYAhBrYIq++1zKRViSCxA1LTJMe5nj6Lj69PZAFx/6OmS/Wuoxa7U3zrLyOZ5X4uXY+FP16djoZbVghTCT2En/s+OF2J3d3OvwXNuTXmHPK/3p/GUlQiXU44JGA/fZP Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: a2a3afb6-df8a-48ae-dbd3-08d816be08ab X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jun 2020 15:07:51.6300 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: aljDl1EHwJiF1lrwe6zfH5unN+AH2/vzT2CPoLp06myw4yvcfDOCdTaSJxk08KWU2mki5p9blbbxoRKg0B68+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB6628 Subject: Re: [dpdk-dev] [PATCH v2 1/2] net/mlx5: move getter functions from net to common 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, > -----Original Message----- > From: Ori Kam > Sent: Friday, June 19, 2020 10:30 AM > To: Matan Azrad ; Slava Ovsiienko > ; Shahaf Shuler > Cc: dev@dpdk.org; Ori Kam ; Raslan Darawsheh > ; Ophir Munk > Subject: [PATCH v2 1/2] net/mlx5: move getter functions from net to > common >=20 > From: Ophir Munk >=20 > Getter functions such as: 'mlx5_os_get_ctx_device_name', > 'mlx5_os_get_ctx_device_path', 'mlx5_os_get_dev_device_name', > 'mlx5_os_get_umem_id' are implemented under net directory. To enable > additional devices (e.g. regex, vdpa) to access these getter functions > they are moved under common directory. >=20 > As part of this commit string sizes DEV_SYSFS_NAME_MAX and > DEV_SYSFS_PATH_MAX are increased by 1 to make sure that the destination > string size in strncpy() function is bigger than the source string size. > This update will avoid GCC version 8 error -Werror=3Dstringop-truncation. >=20 > Signed-off-by: Ophir Munk > Acked-by: Matan Azrad > --- > v2: > * avoid GCC version 8 error. > --- Series rebased and applied to next-net-mlx, Kindest regards, Raslan Darawsheh