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 7D3C0A2EEB for ; Tue, 10 Sep 2019 08:11:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4C48B1EB5A; Tue, 10 Sep 2019 08:11:46 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60067.outbound.protection.outlook.com [40.107.6.67]) by dpdk.org (Postfix) with ESMTP id 7220F1EB48 for ; Tue, 10 Sep 2019 08:11:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PUQ0bJ2lknA2FZI1ut2fxMc1uUs2WWV7zPtbpcCs/9sHCuY9O1w0uU8Xx1+v3g88lhA8H6rIq95rLIo/2YBEiDmgjgi4yniKNVcsLhWnIioutG3CxrTwKff8MhxXxFHA0AbRbZ962B8mtLppt6geTtcytzcAoYz9BXHi7Lrs46N3pttZq/jmQ3w8RkXZQyz9QFFPLmp7TZEYuDsvJhH9hXs/AkzZILGsKE4n9qaPutax+oIYrqWk0VsYWoxCzN0zUWSXJj/ksXgOQ87L4WIo92odsB8qcfsjER3PjYC6uluRgnxkGV1Mn2S8pt4g3sV5nxpiMOErAA2FJoBKmbvr2A== 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=1biSelEMrVBR7UBxaeHXbHw9hTYV0evp3wNhE4ZBRWQ=; b=n0r/oDvIOtNeq/HbeS9oJI6f6HG9Zft0E70PlTZ2JZH3a9czjWgzVC+szctv4/HbEOisKJDrYN/VbooWsdvuL2M/50ekZ0iorjJcHgS1BTh6EkKaJ2J8VWN/YcwLhcw4zp6QQbuw+uqM9kLIFGli+uY4gLtagLQLCEnUkJsGo6GSg2WjwVS74tTS7eRRyYxwpp7u+LDifVWF86fkAog4+dpZ2kU/+o5zXKyxSFSrrxrDCruiBJn+3EvPk2iEgfjjkFvNNO2btV3PB/2blXw8fcHrHqM7b1BYMo3ApBhQfs281VHlx5MWcIo+xosygQyJ7qU8Nf4ljKJMkyemNvbBCA== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1biSelEMrVBR7UBxaeHXbHw9hTYV0evp3wNhE4ZBRWQ=; b=UvuuotG5UjhIZCUyK9/8bkJrs86AOwqgNUE7AcxmbVzZSINfZbOBxPWOnbx0IhWbCXj3RjF6iXh2BMd6cZuuFDhe4Yuabb/uNlppeZtEm0WyQNLK0DmLA1wPvhGi1hRnz5As3+yOSlj5eHTNvmvV5LyEr1dv7W1GtSv1+vRQUNU= Received: from VI1PR05MB3278.eurprd05.prod.outlook.com (10.170.238.23) by VI1PR05MB5807.eurprd05.prod.outlook.com (20.178.122.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.20; Tue, 10 Sep 2019 06:11:44 +0000 Received: from VI1PR05MB3278.eurprd05.prod.outlook.com ([fe80::d4c:75b4:c928:3890]) by VI1PR05MB3278.eurprd05.prod.outlook.com ([fe80::d4c:75b4:c928:3890%7]) with mapi id 15.20.2241.018; Tue, 10 Sep 2019 06:11:44 +0000 From: Slava Ovsiienko To: Dekel Peled , Thomas Monjalon , "ferruh.yigit@intel.com" , "arybchenko@solarflare.com" , Shahaf Shuler CC: Ori Kam , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] ethdev: port kernel definitions for module EEPROM Thread-Index: AQHVZv9Xu2tprx9G1UWADaDfDaot8qckbzMQ Date: Tue, 10 Sep 2019 06:11:44 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=viacheslavo@mellanox.com; x-originating-ip: [95.67.35.250] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d9c62155-ad58-40c2-5976-08d735b5c158 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:VI1PR05MB5807; x-ms-traffictypediagnostic: VI1PR05MB5807:|VI1PR05MB5807: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 01565FED4C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(136003)(346002)(366004)(39860400002)(396003)(199004)(189003)(13464003)(6636002)(86362001)(102836004)(76116006)(66476007)(66556008)(64756008)(66446008)(66946007)(229853002)(55016002)(71200400001)(7696005)(76176011)(33656002)(3846002)(2906002)(2501003)(71190400001)(186003)(26005)(53546011)(74316002)(6116002)(6506007)(5660300002)(14454004)(446003)(8936002)(81166006)(6246003)(4326008)(52536014)(316002)(476003)(81156014)(7736002)(11346002)(54906003)(8676002)(110136005)(99286004)(2201001)(66066001)(486006)(14444005)(256004)(478600001)(53936002)(9686003)(25786009)(6436002)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB5807; H:VI1PR05MB3278.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: flpoS8V8yHpH4dIsDiukWt5XuQcW9GDFMiSJODf2SX6Gir0eLitTfc1p5BuygjMOzRWgF4esxR/8oCJBuX8SrWgYUVgoyopNoHtRypMU/HlQcPETmCo/rj2FCB6dBKAfPXaHgQc7h+nx4ouX8dj+ujSnql3uO+wH5gqPKP825abCesv6U7x7L7XN7y3KPTBv6FA4k1JasCsDyroEiTkzJQVppgr7MTUZGqqjjSw44bCbRznzGZJN8fSAaJ6LNtXR++RuE1C/L7CRNiuJRjntJ0KV8nJVFntfMcLfOHP5O8cC8sDsO9NgcBi4CDGAzyeKSrd6u9sNyC0ceQcQSKzrTJsxgpWozn0j6q6FFvwlsyMKFc6ZUgSHxKXabSGjiGrAaxB6TIbzgMZ+MbxLb/n69alFoMRFf41wFzcOjFon4Fg= 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: d9c62155-ad58-40c2-5976-08d735b5c158 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Sep 2019 06:11:44.4470 (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: FqoOhnbxWph431Xgc1lNMVmYrOoANumBy0OR0cDXCd1K+HmCgZrKP4VNQTpz+r4hn4RJ97BOJteKuCQtn8xP2UMPKApMWCg0Trhcon8iytE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB5807 Subject: Re: [dpdk-dev] [PATCH] ethdev: port kernel definitions for module EEPROM 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" > -----Original Message----- > From: dev On Behalf Of Dekel Peled > Sent: Monday, September 9, 2019 14:10 > To: Thomas Monjalon ; ferruh.yigit@intel.com; > arybchenko@solarflare.com; Shahaf Shuler > Cc: Ori Kam ; dev@dpdk.org > Subject: [dpdk-dev] [PATCH] ethdev: port kernel definitions for module > EEPROM >=20 > This patch copies definitions of maximal data length in module eeprom, fr= om > include/uapi/linux/ethtool.h. >=20 > These definitions can be used by application to validate data length. >=20 > Signed-off-by: Dekel Peled Acked-by: Viacheslav Ovsiienko > --- > lib/librte_ethdev/rte_dev_info.h | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/lib/librte_ethdev/rte_dev_info.h > b/lib/librte_ethdev/rte_dev_info.h > index fea5da8..7a6b61f 100644 > --- a/lib/librte_ethdev/rte_dev_info.h > +++ b/lib/librte_ethdev/rte_dev_info.h > @@ -43,7 +43,9 @@ struct rte_eth_dev_module_info { > #define RTE_ETH_MODULE_SFF_8472_LEN 512 > #define RTE_ETH_MODULE_SFF_8636 0x3 > #define RTE_ETH_MODULE_SFF_8636_LEN 256 > +#define RTE_ETH_MODULE_SFF_8636_MAX_LEN 640 > #define RTE_ETH_MODULE_SFF_8436 0x4 > #define RTE_ETH_MODULE_SFF_8436_LEN 256 > +#define RTE_ETH_MODULE_SFF_8436_MAX_LEN 640 >=20 > #endif /* _RTE_DEV_INFO_H_ */ > -- > 1.8.3.1