]> git.droids-corp.org - dpdk.git/commitdiff
net/cnxk: update inline device in ethdev telemetry
authorRakesh Kudurumalla <rkudurumalla@marvell.com>
Sun, 8 May 2022 07:48:26 +0000 (13:18 +0530)
committerJerin Jacob <jerinj@marvell.com>
Tue, 10 May 2022 14:27:03 +0000 (16:27 +0200)
Inline PF_FUNC is updated in ethdev_tel_handle_info(),
when inline device is attached to any dpdk process

Signed-off-by: Rakesh Kudurumalla <rkudurumalla@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/cnxk/cnxk_ethdev_telemetry.c

index 83bc65848cf62a616b98be96104347502fac3c67..b76dbdfef92c1c94da9af18cef1e4a5a10648c66 100644 (file)
@@ -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;