]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/ixgbe/ixgbe_pf.c
net/ice/base: implement shared rate limiter
[dpdk.git] / drivers / net / ixgbe / ixgbe_pf.c
index 4e25b1e72edce2d4e7df4c1bac009d9782b44419..833863af5aa6389ce21eff5b5b3a316f8e287704 100644 (file)
@@ -88,8 +88,11 @@ int ixgbe_pf_host_init(struct rte_eth_dev *eth_dev)
                return ret;
 
        *vfinfo = rte_zmalloc("vf_info", sizeof(struct ixgbe_vf_info) * vf_num, 0);
-       if (*vfinfo == NULL)
-               rte_panic("Cannot allocate memory for private VF data\n");
+       if (*vfinfo == NULL) {
+               PMD_INIT_LOG(ERR,
+                       "Cannot allocate memory for private VF data");
+               return -ENOMEM;
+       }
 
        ret = rte_eth_switch_domain_alloc(&(*vfinfo)->switch_domain_id);
        if (ret) {