New upstream version 17.11.5
[deb_dpdk.git] / drivers / net / softnic / rte_eth_softnic.c
index 3c695e4..6246861 100644 (file)
@@ -79,28 +79,13 @@ static const char *pmd_valid_args[] = {
        NULL
 };
 
-static const struct rte_eth_dev_info pmd_dev_info = {
-       .min_rx_bufsize = 0,
-       .max_rx_pktlen = UINT32_MAX,
-       .max_rx_queues = UINT16_MAX,
-       .max_tx_queues = UINT16_MAX,
-       .rx_desc_lim = {
-               .nb_max = UINT16_MAX,
-               .nb_min = 0,
-               .nb_align = 1,
-       },
-       .tx_desc_lim = {
-               .nb_max = UINT16_MAX,
-               .nb_min = 0,
-               .nb_align = 1,
-       },
-};
-
 static void
 pmd_dev_infos_get(struct rte_eth_dev *dev __rte_unused,
        struct rte_eth_dev_info *dev_info)
 {
-       memcpy(dev_info, &pmd_dev_info, sizeof(*dev_info));
+       dev_info->max_rx_pktlen = UINT32_MAX;
+       dev_info->max_rx_queues = UINT16_MAX;
+       dev_info->max_tx_queues = UINT16_MAX;
 }
 
 static int