Skip to contentSkip to conversation

net/axgbe: support sfp module EEPROM

PATCH Superseded [email protected] 2 participants 2 messages May 15, 2020 1 message not in the archive Network drivers

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#1 lore raw

PATCH v3 1/1 net/axgbe: support sfp module EEPROM

In reply to a message not in the archive

From: Amaranath Somalapuram <[email protected]>

Adding API for get_module_eeprom and get_module_info.

---
 doc/guides/nics/features/axgbe.ini |   1 +
 drivers/net/axgbe/axgbe_ethdev.c   |   2 +
 drivers/net/axgbe/axgbe_phy.h      |   4 ++
 drivers/net/axgbe/axgbe_phy_impl.c | 107 +++++++++++++++++++++++++++++
 4 files changed, 114 insertions(+)
doc/guides/nics/features/axgbe.ini +1 -0
index 0becaa097..80a3bcee1 100644
@@ -18,3 +18,4 @@ Basic stats          = Y
 Linux UIO            = Y
 x86-32               = Y
 x86-64               = Y
+Module EEPROM dump   = Y
drivers/net/axgbe/axgbe_ethdev.c +2 -0
index 867058845..ea2f9bba1 100644
@@ -214,6 +214,8 @@ static const struct eth_dev_ops axgbe_eth_dev_ops = {
 	.dev_supported_ptypes_get     = axgbe_dev_supported_ptypes_get,
 	.rx_descriptor_status         = axgbe_dev_rx_descriptor_status,
 	.tx_descriptor_status         = axgbe_dev_tx_descriptor_status,
+	.get_module_info              = axgbe_get_module_info,
+	.get_module_eeprom            = axgbe_get_module_eeprom,
 };
 
 static int axgbe_phy_reset(struct axgbe_port *pdata)
drivers/net/axgbe/axgbe_phy.h +4 -0
index 77ee20a31..d9d7fde41 100644
@@ -188,5 +188,9 @@
 #define DUPLEX_FULL             0x01
 #define DUPLEX_UNKNOWN          0xff
 
+int axgbe_get_module_info(struct rte_eth_dev *dev,
+				struct rte_eth_dev_module_info *modinfo);
+int axgbe_get_module_eeprom(struct rte_eth_dev *dev,
+				  struct rte_dev_eeprom_info *info);
 #endif
 /* PHY */
drivers/net/axgbe/axgbe_phy_impl.c +107 -0

131 lines not on this page · raw message

Signature · 1 line
2.17.1
#2 lore raw
Quoted 5 lines · On 5/15/2020 6:19 AM, [email protected] wrote:

From: Amaranath Somalapuram <[email protected]>

Adding API for get_module_eeprom and get_module_info.

Hi Amaranath,

It seems none of the issues are addressed second time, old one is:
http://inbox.dpdk.org/dev/[email protected]/

If you need help, please ping me. But if not just paying attention, please do so, you are wasting both of us' time.