net/hns3: fix device info dump
authorMin Hu (Connor) <humin29@huawei.com>
Thu, 14 Apr 2022 13:00:56 +0000 (21:00 +0800)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Thu, 5 May 2022 12:57:10 +0000 (14:57 +0200)
Rx/Tx queue info dump and pvid info dump is both supported
in PF and VF. This patch fixed it.

Fixes: 1a03c659cb9d ("net/hns3: dump device basic info")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev_dump.c

index 1548d23..1bb2ab7 100644 (file)
@@ -629,8 +629,6 @@ get_vlan_config_info(FILE *file, struct hns3_hw *hw)
        ret = get_vlan_tx_offload_cfg(file, hw);
        if (ret < 0)
                return;
        ret = get_vlan_tx_offload_cfg(file, hw);
        if (ret < 0)
                return;
-
-       get_port_pvid_info(file, hw);
 }
 
 static void
 }
 
 static void
@@ -898,13 +896,14 @@ hns3_eth_dev_priv_dump(struct rte_eth_dev *dev, FILE *file)
 
        get_device_basic_info(file, dev);
        get_dev_feature_capability(file, hw);
 
        get_device_basic_info(file, dev);
        get_dev_feature_capability(file, hw);
+       get_rxtx_queue_info(file, dev);
+       get_port_pvid_info(file, hw);
 
        /* VF only supports dumping basic info and feaure capability */
        if (hns->is_vf)
                return 0;
 
        get_dev_mac_info(file, hns);
 
        /* VF only supports dumping basic info and feaure capability */
        if (hns->is_vf)
                return 0;
 
        get_dev_mac_info(file, hns);
-       get_rxtx_queue_info(file, dev);
        get_vlan_config_info(file, hw);
        get_fdir_basic_info(file, &hns->pf);
        get_tm_conf_info(file, dev);
        get_vlan_config_info(file, hw);
        get_fdir_basic_info(file, &hns->pf);
        get_tm_conf_info(file, dev);