common/cnxk: fix error checking
[dpdk.git] / lib / ethdev / rte_class_eth.c
index 1fe5fa1..c8e8fc9 100644 (file)
@@ -90,12 +90,12 @@ eth_representor_cmp(const char *key __rte_unused,
        np = eth_da.nb_ports > 0 ? eth_da.nb_ports : 1;
        nf = eth_da.nb_representor_ports > 0 ? eth_da.nb_representor_ports : 1;
 
-       /* Return 0 if representor id is matching one of the values. */
+       /* Return 0 if representor ID is matching one of the values. */
        for (i = 0; i < nc * np * nf; ++i) {
                c = i / (np * nf);
                p = (i / nf) % np;
                f = i % nf;
-               if (rte_eth_representor_id_get(edev,
+               if (rte_eth_representor_id_get(edev->data->backer_port_id,
                        eth_da.type,
                        eth_da.nb_mh_controllers == 0 ? -1 :
                                        eth_da.mh_controllers[c],