1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Marvell International Ltd.
3 * Copyright(c) 2018 Semihalf.
7 #include <rte_string_fns.h>
8 #include <rte_ethdev_driver.h>
9 #include <rte_kvargs.h>
10 #include <rte_bus_vdev.h>
14 #include <linux/ethtool.h>
15 #include <linux/sockios.h>
17 #include <net/if_arp.h>
18 #include <sys/ioctl.h>
19 #include <sys/socket.h>
21 #include <sys/types.h>
23 #include <rte_mvep_common.h>
25 #include "mvneta_rxtx.h"
28 #define MVNETA_IFACE_NAME_ARG "iface"
30 #define MVNETA_PKT_SIZE_MAX (16382 - MV_MH_SIZE) /* 9700B */
31 #define MVNETA_DEFAULT_MTU 1500
33 #define MVNETA_MAC_ADDRS_MAX 256 /*16 UC, 256 IP, 256 MC/BC */
34 /** Maximum length of a match string */
35 #define MVNETA_MATCH_LEN 16
39 static const char * const valid_args[] = {
40 MVNETA_IFACE_NAME_ARG,
44 struct mvneta_ifnames {
45 const char *names[NETA_NUM_ETH_PPIO];
49 static int mvneta_dev_num;
51 static void mvneta_stats_reset(struct rte_eth_dev *dev);
54 * Deinitialize packet processor.
57 mvneta_neta_deinit(void)
63 * Initialize packet processor.
66 * 0 on success, negative error value otherwise.
69 mvneta_neta_init(void)
75 * Callback used by rte_kvargs_process() during argument parsing.
78 * Pointer to the parsed key (unused).
80 * Pointer to the parsed value.
82 * Pointer to the extra arguments which contains address of the
83 * table of pointers to parsed interface names.
89 mvneta_ifnames_get(const char *key __rte_unused, const char *value,
92 struct mvneta_ifnames *ifnames = extra_args;
94 ifnames->names[ifnames->idx++] = value;
100 * Ethernet device configuration.
102 * Prepare the driver for a given number of TX and RX queues and
103 * configure RSS if supported.
106 * Pointer to Ethernet device structure.
109 * 0 on success, negative error value otherwise.
112 mvneta_dev_configure(struct rte_eth_dev *dev)
114 struct mvneta_priv *priv = dev->data->dev_private;
115 struct neta_ppio_params *ppio_params;
117 if (dev->data->dev_conf.rxmode.mq_mode != ETH_MQ_RX_NONE) {
118 MVNETA_LOG(INFO, "Unsupported RSS and rx multi queue mode %d",
119 dev->data->dev_conf.rxmode.mq_mode);
120 if (dev->data->nb_rx_queues > 1)
124 if (dev->data->dev_conf.rxmode.split_hdr_size) {
125 MVNETA_LOG(INFO, "Split headers not supported");
129 if (dev->data->dev_conf.rxmode.offloads & DEV_RX_OFFLOAD_JUMBO_FRAME)
130 dev->data->mtu = dev->data->dev_conf.rxmode.max_rx_pkt_len -
131 MRVL_NETA_ETH_HDRS_LEN;
133 if (dev->data->dev_conf.txmode.offloads & DEV_TX_OFFLOAD_MULTI_SEGS)
136 ppio_params = &priv->ppio_params;
137 ppio_params->outqs_params.num_outqs = dev->data->nb_tx_queues;
138 /* Default: 1 TC, no QoS supported. */
139 ppio_params->inqs_params.num_tcs = 1;
140 ppio_params->inqs_params.tcs_params[0].pkt_offset = MRVL_NETA_PKT_OFFS;
141 priv->ppio_id = dev->data->port_id;
147 * DPDK callback to get information about the device.
150 * Pointer to Ethernet device structure (unused).
152 * Info structure output buffer.
155 mvneta_dev_infos_get(struct rte_eth_dev *dev __rte_unused,
156 struct rte_eth_dev_info *info)
158 info->speed_capa = ETH_LINK_SPEED_10M |
159 ETH_LINK_SPEED_100M |
163 info->max_rx_queues = MRVL_NETA_RXQ_MAX;
164 info->max_tx_queues = MRVL_NETA_TXQ_MAX;
165 info->max_mac_addrs = MVNETA_MAC_ADDRS_MAX;
167 info->rx_desc_lim.nb_max = MRVL_NETA_RXD_MAX;
168 info->rx_desc_lim.nb_min = MRVL_NETA_RXD_MIN;
169 info->rx_desc_lim.nb_align = MRVL_NETA_RXD_ALIGN;
171 info->tx_desc_lim.nb_max = MRVL_NETA_TXD_MAX;
172 info->tx_desc_lim.nb_min = MRVL_NETA_TXD_MIN;
173 info->tx_desc_lim.nb_align = MRVL_NETA_TXD_ALIGN;
175 info->rx_offload_capa = MVNETA_RX_OFFLOADS;
176 info->rx_queue_offload_capa = MVNETA_RX_OFFLOADS;
178 info->tx_offload_capa = MVNETA_TX_OFFLOADS;
179 info->tx_queue_offload_capa = MVNETA_TX_OFFLOADS;
181 /* By default packets are dropped if no descriptors are available */
182 info->default_rxconf.rx_drop_en = 1;
183 /* Deferred tx queue start is not supported */
184 info->default_txconf.tx_deferred_start = 0;
185 info->default_txconf.offloads = 0;
187 info->max_rx_pktlen = MVNETA_PKT_SIZE_MAX;
191 * Return supported packet types.
194 * Pointer to Ethernet device structure (unused).
197 * Const pointer to the table with supported packet types.
199 static const uint32_t *
200 mvneta_dev_supported_ptypes_get(struct rte_eth_dev *dev __rte_unused)
202 static const uint32_t ptypes[] = {
204 RTE_PTYPE_L2_ETHER_VLAN,
215 * DPDK callback to change the MTU.
217 * Setting the MTU affects hardware MRU (packets larger than the MRU
221 * Pointer to Ethernet device structure.
226 * 0 on success, negative error value otherwise.
229 mvneta_mtu_set(struct rte_eth_dev *dev, uint16_t mtu)
231 struct mvneta_priv *priv = dev->data->dev_private;
232 uint16_t mbuf_data_size = 0; /* SW buffer size */
236 mru = MRVL_NETA_MTU_TO_MRU(mtu);
238 * min_rx_buf_size is equal to mbuf data size
239 * if pmd didn't set it differently
241 mbuf_data_size = dev->data->min_rx_buf_size - RTE_PKTMBUF_HEADROOM;
243 * - setting mru greater than the mbuf size resulting in
244 * hw and sw buffer size mismatch
245 * - setting mtu that requires the support of scattered packets
246 * when this feature has not been enabled/supported so far.
248 if (!dev->data->scattered_rx &&
249 (mru + MRVL_NETA_PKT_OFFS > mbuf_data_size)) {
250 mru = mbuf_data_size - MRVL_NETA_PKT_OFFS;
251 mtu = MRVL_NETA_MRU_TO_MTU(mru);
252 MVNETA_LOG(WARNING, "MTU too big, max MTU possible limitted by"
253 " current mbuf size: %u. Set MTU to %u, MRU to %u",
254 mbuf_data_size, mtu, mru);
257 if (mtu < RTE_ETHER_MIN_MTU || mru > MVNETA_PKT_SIZE_MAX) {
258 MVNETA_LOG(ERR, "Invalid MTU [%u] or MRU [%u]", mtu, mru);
262 dev->data->mtu = mtu;
263 dev->data->dev_conf.rxmode.max_rx_pkt_len = mru - MV_MH_SIZE;
266 /* It is OK. New MTU will be set later on mvneta_dev_start */
269 ret = neta_ppio_set_mru(priv->ppio, mru);
271 MVNETA_LOG(ERR, "Failed to change MRU");
275 ret = neta_ppio_set_mtu(priv->ppio, mtu);
277 MVNETA_LOG(ERR, "Failed to change MTU");
280 MVNETA_LOG(INFO, "MTU changed to %u, MRU = %u", mtu, mru);
286 * DPDK callback to bring the link up.
289 * Pointer to Ethernet device structure.
292 * 0 on success, negative error value otherwise.
295 mvneta_dev_set_link_up(struct rte_eth_dev *dev)
297 struct mvneta_priv *priv = dev->data->dev_private;
302 return neta_ppio_enable(priv->ppio);
306 * DPDK callback to bring the link down.
309 * Pointer to Ethernet device structure.
312 * 0 on success, negative error value otherwise.
315 mvneta_dev_set_link_down(struct rte_eth_dev *dev)
317 struct mvneta_priv *priv = dev->data->dev_private;
322 return neta_ppio_disable(priv->ppio);
326 * DPDK callback to start the device.
329 * Pointer to Ethernet device structure.
332 * 0 on success, negative errno value on failure.
335 mvneta_dev_start(struct rte_eth_dev *dev)
337 struct mvneta_priv *priv = dev->data->dev_private;
338 char match[MVNETA_MATCH_LEN];
342 return mvneta_dev_set_link_up(dev);
344 strlcpy(match, dev->data->name, sizeof(match));
345 priv->ppio_params.match = match;
346 priv->ppio_params.inqs_params.mtu = dev->data->mtu;
348 ret = neta_ppio_init(&priv->ppio_params, &priv->ppio);
350 MVNETA_LOG(ERR, "Failed to init ppio");
353 priv->ppio_id = priv->ppio->port_id;
355 mvneta_stats_reset(dev);
358 * In case there are some some stale uc/mc mac addresses flush them
359 * here. It cannot be done during mvneta_dev_close() as port information
360 * is already gone at that point (due to neta_ppio_deinit() in
361 * mvneta_dev_stop()).
363 if (!priv->uc_mc_flushed) {
364 ret = neta_ppio_flush_mac_addrs(priv->ppio, 0, 1);
367 "Failed to flush uc/mc filter list");
370 priv->uc_mc_flushed = 1;
373 ret = mvneta_alloc_rx_bufs(dev);
377 ret = mvneta_mtu_set(dev, dev->data->mtu);
379 MVNETA_LOG(ERR, "Failed to set MTU %d", dev->data->mtu);
383 ret = mvneta_dev_set_link_up(dev);
385 MVNETA_LOG(ERR, "Failed to set link up");
389 /* start tx queues */
390 for (i = 0; i < dev->data->nb_tx_queues; i++)
391 dev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STARTED;
393 mvneta_set_tx_function(dev);
398 MVNETA_LOG(ERR, "Failed to start device");
399 neta_ppio_deinit(priv->ppio);
404 * DPDK callback to stop the device.
407 * Pointer to Ethernet device structure.
410 mvneta_dev_stop(struct rte_eth_dev *dev)
412 struct mvneta_priv *priv = dev->data->dev_private;
417 mvneta_dev_set_link_down(dev);
418 mvneta_flush_queues(dev);
419 neta_ppio_deinit(priv->ppio);
425 * DPDK callback to close the device.
428 * Pointer to Ethernet device structure.
431 mvneta_dev_close(struct rte_eth_dev *dev)
433 struct mvneta_priv *priv = dev->data->dev_private;
437 mvneta_dev_stop(dev);
439 for (i = 0; i < dev->data->nb_rx_queues; i++) {
440 mvneta_rx_queue_release(dev->data->rx_queues[i]);
441 dev->data->rx_queues[i] = NULL;
444 for (i = 0; i < dev->data->nb_tx_queues; i++) {
445 mvneta_tx_queue_release(dev->data->tx_queues[i]);
446 dev->data->tx_queues[i] = NULL;
451 * DPDK callback to retrieve physical link information.
454 * Pointer to Ethernet device structure.
455 * @param wait_to_complete
456 * Wait for request completion (ignored).
459 * 0 on success, negative error value otherwise.
462 mvneta_link_update(struct rte_eth_dev *dev, int wait_to_complete __rte_unused)
466 * once MUSDK provides necessary API use it here
468 struct mvneta_priv *priv = dev->data->dev_private;
469 struct ethtool_cmd edata;
471 int ret, fd, link_up;
476 edata.cmd = ETHTOOL_GSET;
478 strcpy(req.ifr_name, dev->data->name);
479 req.ifr_data = (void *)&edata;
481 fd = socket(AF_INET, SOCK_DGRAM, 0);
484 ret = ioctl(fd, SIOCETHTOOL, &req);
492 switch (ethtool_cmd_speed(&edata)) {
494 dev->data->dev_link.link_speed = ETH_SPEED_NUM_10M;
497 dev->data->dev_link.link_speed = ETH_SPEED_NUM_100M;
500 dev->data->dev_link.link_speed = ETH_SPEED_NUM_1G;
503 dev->data->dev_link.link_speed = ETH_SPEED_NUM_2_5G;
506 dev->data->dev_link.link_speed = ETH_SPEED_NUM_NONE;
509 dev->data->dev_link.link_duplex = edata.duplex ? ETH_LINK_FULL_DUPLEX :
510 ETH_LINK_HALF_DUPLEX;
511 dev->data->dev_link.link_autoneg = edata.autoneg ? ETH_LINK_AUTONEG :
514 neta_ppio_get_link_state(priv->ppio, &link_up);
515 dev->data->dev_link.link_status = link_up ? ETH_LINK_UP : ETH_LINK_DOWN;
521 * DPDK callback to enable promiscuous mode.
524 * Pointer to Ethernet device structure.
527 mvneta_promiscuous_enable(struct rte_eth_dev *dev)
529 struct mvneta_priv *priv = dev->data->dev_private;
535 neta_ppio_get_promisc(priv->ppio, &en);
537 MVNETA_LOG(INFO, "Promiscuous already enabled");
541 ret = neta_ppio_set_promisc(priv->ppio, 1);
543 MVNETA_LOG(ERR, "Failed to enable promiscuous mode");
547 * DPDK callback to disable allmulticast mode.
550 * Pointer to Ethernet device structure.
553 mvneta_promiscuous_disable(struct rte_eth_dev *dev)
555 struct mvneta_priv *priv = dev->data->dev_private;
561 neta_ppio_get_promisc(priv->ppio, &en);
563 MVNETA_LOG(INFO, "Promiscuous already disabled");
567 ret = neta_ppio_set_promisc(priv->ppio, 0);
569 MVNETA_LOG(ERR, "Failed to disable promiscuous mode");
573 * DPDK callback to remove a MAC address.
576 * Pointer to Ethernet device structure.
581 mvneta_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index)
583 struct mvneta_priv *priv = dev->data->dev_private;
584 char buf[RTE_ETHER_ADDR_FMT_SIZE];
590 ret = neta_ppio_remove_mac_addr(priv->ppio,
591 dev->data->mac_addrs[index].addr_bytes);
593 rte_ether_format_addr(buf, sizeof(buf),
594 &dev->data->mac_addrs[index]);
595 MVNETA_LOG(ERR, "Failed to remove mac %s", buf);
600 * DPDK callback to add a MAC address.
603 * Pointer to Ethernet device structure.
605 * MAC address to register.
609 * VMDq pool index to associate address with (unused).
612 * 0 on success, negative error value otherwise.
615 mvneta_mac_addr_add(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr,
616 uint32_t index, uint32_t vmdq __rte_unused)
618 struct mvneta_priv *priv = dev->data->dev_private;
619 char buf[RTE_ETHER_ADDR_FMT_SIZE];
623 /* For setting index 0, mrvl_mac_addr_set() should be used.*/
629 ret = neta_ppio_add_mac_addr(priv->ppio, mac_addr->addr_bytes);
631 rte_ether_format_addr(buf, sizeof(buf), mac_addr);
632 MVNETA_LOG(ERR, "Failed to add mac %s", buf);
640 * DPDK callback to set the primary MAC address.
643 * Pointer to Ethernet device structure.
645 * MAC address to register.
648 mvneta_mac_addr_set(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr)
650 struct mvneta_priv *priv = dev->data->dev_private;
656 ret = neta_ppio_set_mac_addr(priv->ppio, mac_addr->addr_bytes);
658 char buf[RTE_ETHER_ADDR_FMT_SIZE];
659 rte_ether_format_addr(buf, sizeof(buf), mac_addr);
660 MVNETA_LOG(ERR, "Failed to set mac to %s", buf);
666 * DPDK callback to get device statistics.
669 * Pointer to Ethernet device structure.
671 * Stats structure output buffer.
674 * 0 on success, negative error value otherwise.
677 mvneta_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
679 struct mvneta_priv *priv = dev->data->dev_private;
680 struct neta_ppio_statistics ppio_stats;
686 ret = neta_ppio_get_statistics(priv->ppio, &ppio_stats);
688 MVNETA_LOG(ERR, "Failed to update port statistics");
692 stats->ipackets += ppio_stats.rx_packets +
693 ppio_stats.rx_broadcast_packets +
694 ppio_stats.rx_multicast_packets -
695 priv->prev_stats.ipackets;
696 stats->opackets += ppio_stats.tx_packets +
697 ppio_stats.tx_broadcast_packets +
698 ppio_stats.tx_multicast_packets -
699 priv->prev_stats.opackets;
700 stats->ibytes += ppio_stats.rx_bytes - priv->prev_stats.ibytes;
701 stats->obytes += ppio_stats.tx_bytes - priv->prev_stats.obytes;
702 stats->imissed += ppio_stats.rx_discard +
703 ppio_stats.rx_overrun -
704 priv->prev_stats.imissed;
705 stats->ierrors = ppio_stats.rx_packets_err -
706 priv->prev_stats.ierrors;
707 stats->oerrors = ppio_stats.tx_errors - priv->prev_stats.oerrors;
713 * DPDK callback to clear device statistics.
716 * Pointer to Ethernet device structure.
719 mvneta_stats_reset(struct rte_eth_dev *dev)
721 struct mvneta_priv *priv = dev->data->dev_private;
727 ret = mvneta_stats_get(dev, &priv->prev_stats);
729 RTE_LOG(ERR, PMD, "Failed to reset port statistics");
733 static const struct eth_dev_ops mvneta_ops = {
734 .dev_configure = mvneta_dev_configure,
735 .dev_start = mvneta_dev_start,
736 .dev_stop = mvneta_dev_stop,
737 .dev_set_link_up = mvneta_dev_set_link_up,
738 .dev_set_link_down = mvneta_dev_set_link_down,
739 .dev_close = mvneta_dev_close,
740 .link_update = mvneta_link_update,
741 .promiscuous_enable = mvneta_promiscuous_enable,
742 .promiscuous_disable = mvneta_promiscuous_disable,
743 .mac_addr_remove = mvneta_mac_addr_remove,
744 .mac_addr_add = mvneta_mac_addr_add,
745 .mac_addr_set = mvneta_mac_addr_set,
746 .mtu_set = mvneta_mtu_set,
747 .stats_get = mvneta_stats_get,
748 .stats_reset = mvneta_stats_reset,
749 .dev_infos_get = mvneta_dev_infos_get,
750 .dev_supported_ptypes_get = mvneta_dev_supported_ptypes_get,
751 .rxq_info_get = mvneta_rxq_info_get,
752 .txq_info_get = mvneta_txq_info_get,
753 .rx_queue_setup = mvneta_rx_queue_setup,
754 .rx_queue_release = mvneta_rx_queue_release,
755 .tx_queue_setup = mvneta_tx_queue_setup,
756 .tx_queue_release = mvneta_tx_queue_release,
760 * Create device representing Ethernet port.
763 * Pointer to the port's name.
766 * 0 on success, negative error value otherwise.
769 mvneta_eth_dev_create(struct rte_vdev_device *vdev, const char *name)
771 int ret, fd = socket(AF_INET, SOCK_DGRAM, 0);
772 struct rte_eth_dev *eth_dev;
773 struct mvneta_priv *priv;
776 eth_dev = rte_eth_dev_allocate(name);
780 priv = rte_zmalloc_socket(name, sizeof(*priv), 0, rte_socket_id());
785 eth_dev->data->dev_private = priv;
787 eth_dev->data->mac_addrs =
788 rte_zmalloc("mac_addrs",
789 RTE_ETHER_ADDR_LEN * MVNETA_MAC_ADDRS_MAX, 0);
790 if (!eth_dev->data->mac_addrs) {
791 MVNETA_LOG(ERR, "Failed to allocate space for eth addrs");
796 memset(&req, 0, sizeof(req));
797 strcpy(req.ifr_name, name);
798 ret = ioctl(fd, SIOCGIFHWADDR, &req);
802 memcpy(eth_dev->data->mac_addrs[0].addr_bytes,
803 req.ifr_addr.sa_data, RTE_ETHER_ADDR_LEN);
805 eth_dev->data->kdrv = RTE_KDRV_NONE;
806 eth_dev->device = &vdev->device;
807 eth_dev->rx_pkt_burst = mvneta_rx_pkt_burst;
808 mvneta_set_tx_function(eth_dev);
809 eth_dev->dev_ops = &mvneta_ops;
811 rte_eth_dev_probing_finish(eth_dev);
814 rte_eth_dev_release_port(eth_dev);
820 * Cleanup previously created device representing Ethernet port.
823 * Pointer to the corresponding rte_eth_dev structure.
826 mvneta_eth_dev_destroy(struct rte_eth_dev *eth_dev)
828 rte_eth_dev_release_port(eth_dev);
832 * Cleanup previously created device representing Ethernet port.
835 * Pointer to the port name.
838 mvneta_eth_dev_destroy_name(const char *name)
840 struct rte_eth_dev *eth_dev;
842 eth_dev = rte_eth_dev_allocated(name);
846 mvneta_eth_dev_destroy(eth_dev);
850 * DPDK callback to register the virtual device.
853 * Pointer to the virtual device.
856 * 0 on success, negative error value otherwise.
859 rte_pmd_mvneta_probe(struct rte_vdev_device *vdev)
861 struct rte_kvargs *kvlist;
862 struct mvneta_ifnames ifnames;
867 params = rte_vdev_device_args(vdev);
871 kvlist = rte_kvargs_parse(params, valid_args);
875 ifnum = rte_kvargs_count(kvlist, MVNETA_IFACE_NAME_ARG);
876 if (ifnum > RTE_DIM(ifnames.names))
877 goto out_free_kvlist;
880 rte_kvargs_process(kvlist, MVNETA_IFACE_NAME_ARG,
881 mvneta_ifnames_get, &ifnames);
884 * The below system initialization should be done only once,
885 * on the first provided configuration file
890 MVNETA_LOG(INFO, "Perform MUSDK initializations");
892 ret = rte_mvep_init(MVEP_MOD_T_NETA, kvlist);
894 goto out_free_kvlist;
896 ret = mvneta_neta_init();
898 MVNETA_LOG(ERR, "Failed to init NETA!");
899 rte_mvep_deinit(MVEP_MOD_T_NETA);
900 goto out_free_kvlist;
904 for (i = 0; i < ifnum; i++) {
905 MVNETA_LOG(INFO, "Creating %s", ifnames.names[i]);
906 ret = mvneta_eth_dev_create(vdev, ifnames.names[i]);
910 mvneta_dev_num += ifnum;
912 rte_kvargs_free(kvlist);
917 mvneta_eth_dev_destroy_name(ifnames.names[i]);
919 if (mvneta_dev_num == 0) {
920 mvneta_neta_deinit();
921 rte_mvep_deinit(MVEP_MOD_T_NETA);
924 rte_kvargs_free(kvlist);
930 * DPDK callback to remove virtual device.
933 * Pointer to the removed virtual device.
936 * 0 on success, negative error value otherwise.
939 rte_pmd_mvneta_remove(struct rte_vdev_device *vdev)
944 name = rte_vdev_device_name(vdev);
948 MVNETA_LOG(INFO, "Removing %s", name);
950 RTE_ETH_FOREACH_DEV(i) {
951 if (rte_eth_devices[i].device != &vdev->device)
954 mvneta_eth_dev_destroy(&rte_eth_devices[i]);
958 if (mvneta_dev_num == 0) {
959 MVNETA_LOG(INFO, "Perform MUSDK deinit");
960 mvneta_neta_deinit();
961 rte_mvep_deinit(MVEP_MOD_T_NETA);
967 static struct rte_vdev_driver pmd_mvneta_drv = {
968 .probe = rte_pmd_mvneta_probe,
969 .remove = rte_pmd_mvneta_remove,
972 RTE_PMD_REGISTER_VDEV(net_mvneta, pmd_mvneta_drv);
973 RTE_PMD_REGISTER_PARAM_STRING(net_mvneta, "iface=<ifc>");
975 RTE_INIT(mvneta_init_log)
977 mvneta_logtype = rte_log_register("pmd.net.mvneta");
978 if (mvneta_logtype >= 0)
979 rte_log_set_level(mvneta_logtype, RTE_LOG_NOTICE);