remove useless constructor headers
[dpdk.git] / drivers / net / softnic / rte_eth_softnic.c
index b1f2780..65166c1 100644 (file)
@@ -65,6 +65,7 @@ static const struct rte_eth_dev_info pmd_dev_info = {
                .nb_min = 0,
                .nb_align = 1,
        },
+       .rx_offload_capa = DEV_RX_OFFLOAD_CRC_STRIP,
 };
 
 static int pmd_softnic_logtype;
@@ -535,6 +536,8 @@ pmd_ethdev_register(struct rte_vdev_device *vdev,
        soft_dev->data->kdrv = RTE_KDRV_NONE;
        soft_dev->data->numa_node = numa_node;
 
+       rte_eth_dev_probing_finish(soft_dev);
+
        return 0;
 }
 
@@ -748,6 +751,7 @@ pmd_probe(struct rte_vdev_device *vdev)
                }
                /* TODO: request info from primary to set up Rx and Tx */
                eth_dev->dev_ops = &pmd_ops;
+               rte_eth_dev_probing_finish(eth_dev);
                return 0;
        }
 
@@ -840,9 +844,7 @@ RTE_PMD_REGISTER_PARAM_STRING(net_softnic,
        PMD_PARAM_HARD_NAME "=<string> "
        PMD_PARAM_HARD_TX_QUEUE_ID "=<int>");
 
-RTE_INIT(pmd_softnic_init_log);
-static void
-pmd_softnic_init_log(void)
+RTE_INIT(pmd_softnic_init_log)
 {
        pmd_softnic_logtype = rte_log_register("pmd.net.softnic");
        if (pmd_softnic_logtype >= 0)