]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/memif/rte_eth_memif.c
net/hns3: cleanup duplicated code on processing TSO in Tx
[dpdk.git] / drivers / net / memif / rte_eth_memif.c
index 653ffa9b8c158cd04f41368f4b60c8b68abae502..c1c7e9f8d8b6c3d3ee31c14d51640e84509701fb 100644 (file)
@@ -1498,6 +1498,7 @@ memif_create(struct rte_vdev_device *vdev, enum memif_role_t role,
        data->numa_node = numa_node;
        data->dev_link = pmd_link;
        data->mac_addrs = ether_addr;
+       data->promiscuous = 1;
 
        eth_dev->dev_ops = &ops;
        eth_dev->device = &vdev->device;
@@ -1805,11 +1806,4 @@ RTE_PMD_REGISTER_PARAM_STRING(net_memif,
                              ETH_MEMIF_ZC_ARG "=yes|no"
                              ETH_MEMIF_SECRET_ARG "=<string>");
 
-int memif_logtype;
-
-RTE_INIT(memif_init_log)
-{
-       memif_logtype = rte_log_register("pmd.net.memif");
-       if (memif_logtype >= 0)
-               rte_log_set_level(memif_logtype, RTE_LOG_NOTICE);
-}
+RTE_LOG_REGISTER(memif_logtype, pmd.net.memif, NOTICE);