DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] ethdev: port kernel definitions for module EEPROM
@ 2019-09-09 11:09 Dekel Peled
  2019-09-10  6:11 ` Slava Ovsiienko
  0 siblings, 1 reply; 3+ messages in thread
From: Dekel Peled @ 2019-09-09 11:09 UTC (permalink / raw)
  To: thomas, ferruh.yigit, arybchenko, shahafs; +Cc: orika, 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 <dekelp@mellanox.com>
---
 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_ */
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-09  7:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-09 11:09 [dpdk-dev] [PATCH] ethdev: port kernel definitions for module EEPROM Dekel Peled
2019-09-10  6:11 ` Slava Ovsiienko
2019-10-09  7:43   ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).