From patchwork Mon Sep 9 11:09:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dekel Peled X-Patchwork-Id: 58992 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0A76A1EBDB; Mon, 9 Sep 2019 13:11:19 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 06AE11EBD0 for ; Mon, 9 Sep 2019 13:11:16 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from dekelp@mellanox.com) with ESMTPS (AES256-SHA encrypted); 9 Sep 2019 14:11:12 +0300 Received: from mtl-vdi-280.wap.labs.mlnx. (mtl-vdi-280.wap.labs.mlnx [10.128.130.87]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x89BBCeV008652; Mon, 9 Sep 2019 14:11:12 +0300 From: Dekel Peled To: thomas@monjalon.net, ferruh.yigit@intel.com, arybchenko@solarflare.com, shahafs@mellanox.com Cc: orika@mellanox.com, dev@dpdk.org Date: Mon, 9 Sep 2019 14:09:59 +0300 Message-Id: X-Mailer: git-send-email 1.7.1 Subject: [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" This patch copies definitions of maximal data length in module eeprom, from include/uapi/linux/ethtool.h. These definitions can be used by application to validate data length. Signed-off-by: Dekel Peled Acked-by: Viacheslav Ovsiienko Reviewed-by: Ferruh Yigit --- lib/librte_ethdev/rte_dev_info.h | 2 ++ 1 file changed, 2 insertions(+) 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 #endif /* _RTE_DEV_INFO_H_ */