From: Rakesh Kudurumalla <rkuduruma...@marvell.com>

inline pf func is updated in ethdev_tel_handle_info
when inline device is attached to any dpdk process

Signed-off-by: Rakesh Kudurumalla <rkuduruma...@marvell.com>
---
 drivers/net/cnxk/cnxk_ethdev_telemetry.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/cnxk/cnxk_ethdev_telemetry.c 
b/drivers/net/cnxk/cnxk_ethdev_telemetry.c
index 83bc658..b76dbdf 100644
--- a/drivers/net/cnxk/cnxk_ethdev_telemetry.c
+++ b/drivers/net/cnxk/cnxk_ethdev_telemetry.c
@@ -23,6 +23,7 @@ ethdev_tel_handle_info(const char *cmd __rte_unused,
                struct eth_info_s {
                        /** PF/VF information */
                        uint16_t pf_func;
+                       uint16_t inl_dev_pf_func;
                        uint8_t max_mac_entries;
                        bool dmac_filter_ena;
                        uint8_t dmac_filter_count;
@@ -62,6 +63,8 @@ ethdev_tel_handle_info(const char *cmd __rte_unused,
                        info = &eth_info.info;
                        dev = cnxk_eth_pmd_priv(eth_dev);
                        if (dev) {
+                               info->inl_dev_pf_func =
+                                       roc_nix_inl_dev_pffunc_get();
                                info->pf_func = roc_nix_get_pf_func(&dev->nix);
                                info->max_mac_entries = dev->max_mac_entries;
                                info->dmac_filter_ena = dev->dmac_filter_enable;
-- 
2.8.4

Reply via email to