net/hns3: cleanup duplicated code on processing TSO in Tx
[dpdk.git] / drivers / net / memif / rte_eth_memif.c
index 653ffa9..c1c7e9f 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);