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);
52 static int rte_pmd_mvneta_remove(struct rte_vdev_device *vdev);
56 * Deinitialize packet processor.
59 mvneta_neta_deinit(void)
65 * Initialize packet processor.
68 * 0 on success, negative error value otherwise.
71 mvneta_neta_init(void)
77 * Callback used by rte_kvargs_process() during argument parsing.
80 * Pointer to the parsed key (unused).
82 * Pointer to the parsed value.
84 * Pointer to the extra arguments which contains address of the
85 * table of pointers to parsed interface names.
91 mvneta_ifnames_get(const char *key __rte_unused, const char *value,
94 struct mvneta_ifnames *ifnames = extra_args;
96 ifnames->names[ifnames->idx++] = value;
102 * Ethernet device configuration.
104 * Prepare the driver for a given number of TX and RX queues and
105 * configure RSS if supported.
108 * Pointer to Ethernet device structure.
111 * 0 on success, negative error value otherwise.
114 mvneta_dev_configure(struct rte_eth_dev *dev)
116 struct mvneta_priv *priv = dev->data->dev_private;
117 struct neta_ppio_params *ppio_params;
119 if (dev->data->dev_conf.rxmode.mq_mode != ETH_MQ_RX_NONE) {
120 MVNETA_LOG(INFO, "Unsupported RSS and rx multi queue mode %d",
121 dev->data->dev_conf.rxmode.mq_mode);
122 if (dev->data->nb_rx_queues > 1)
126 if (dev->data->dev_conf.rxmode.split_hdr_size) {
127 MVNETA_LOG(INFO, "Split headers not supported");
131 if (dev->data->dev_conf.rxmode.offloads & DEV_RX_OFFLOAD_JUMBO_FRAME)
132 dev->data->mtu = dev->data->dev_conf.rxmode.max_rx_pkt_len -
133 MRVL_NETA_ETH_HDRS_LEN;
135 if (dev->data->dev_conf.txmode.offloads & DEV_TX_OFFLOAD_MULTI_SEGS)
138 ppio_params = &priv->ppio_params;
139 ppio_params->outqs_params.num_outqs = dev->data->nb_tx_queues;
140 /* Default: 1 TC, no QoS supported. */
141 ppio_params->inqs_params.num_tcs = 1;
142 ppio_params->inqs_params.tcs_params[0].pkt_offset = MRVL_NETA_PKT_OFFS;
143 priv->ppio_id = dev->data->port_id;
149 * DPDK callback to get information about the device.
152 * Pointer to Ethernet device structure (unused).
154 * Info structure output buffer.
157 mvneta_dev_infos_get(struct rte_eth_dev *dev __rte_unused,
158 struct rte_eth_dev_info *info)
160 info->speed_capa = ETH_LINK_SPEED_10M |
161 ETH_LINK_SPEED_100M |
165 info->max_rx_queues = MRVL_NETA_RXQ_MAX;
166 info->max_tx_queues = MRVL_NETA_TXQ_MAX;
167 info->max_mac_addrs = MVNETA_MAC_ADDRS_MAX;
169 info->rx_desc_lim.nb_max = MRVL_NETA_RXD_MAX;
170 info->rx_desc_lim.nb_min = MRVL_NETA_RXD_MIN;
171 info->rx_desc_lim.nb_align = MRVL_NETA_RXD_ALIGN;
173 info->tx_desc_lim.nb_max = MRVL_NETA_TXD_MAX;
174 info->tx_desc_lim.nb_min = MRVL_NETA_TXD_MIN;
175 info->tx_desc_lim.nb_align = MRVL_NETA_TXD_ALIGN;
177 info->rx_offload_capa = MVNETA_RX_OFFLOADS;
178 info->rx_queue_offload_capa = MVNETA_RX_OFFLOADS;
180 info->tx_offload_capa = MVNETA_TX_OFFLOADS;
181 info->tx_queue_offload_capa = MVNETA_TX_OFFLOADS;
183 /* By default packets are dropped if no descriptors are available */
184 info->default_rxconf.rx_drop_en = 1;
185 /* Deferred tx queue start is not supported */
186 info->default_txconf.tx_deferred_start = 0;
187 info->default_txconf.offloads = 0;
189 info->max_rx_pktlen = MVNETA_PKT_SIZE_MAX;
193 * Return supported packet types.
196 * Pointer to Ethernet device structure (unused).
199 * Const pointer to the table with supported packet types.
201 static const uint32_t *
202 mvneta_dev_supported_ptypes_get(struct rte_eth_dev *dev __rte_unused)
204 static const uint32_t ptypes[] = {
206 RTE_PTYPE_L2_ETHER_VLAN,
217 * DPDK callback to change the MTU.
219 * Setting the MTU affects hardware MRU (packets larger than the MRU
223 * Pointer to Ethernet device structure.
228 * 0 on success, negative error value otherwise.
231 mvneta_mtu_set(struct rte_eth_dev *dev, uint16_t mtu)
233 struct mvneta_priv *priv = dev->data->dev_private;
234 uint16_t mbuf_data_size = 0; /* SW buffer size */
238 mru = MRVL_NETA_MTU_TO_MRU(mtu);
240 * min_rx_buf_size is equal to mbuf data size
241 * if pmd didn't set it differently
243 mbuf_data_size = dev->data->min_rx_buf_size - RTE_PKTMBUF_HEADROOM;
245 * - setting mru greater than the mbuf size resulting in
246 * hw and sw buffer size mismatch
247 * - setting mtu that requires the support of scattered packets
248 * when this feature has not been enabled/supported so far.
250 if (!dev->data->scattered_rx &&
251 (mru + MRVL_NETA_PKT_OFFS > mbuf_data_size)) {
252 mru = mbuf_data_size - MRVL_NETA_PKT_OFFS;
253 mtu = MRVL_NETA_MRU_TO_MTU(mru);
254 MVNETA_LOG(WARNING, "MTU too big, max MTU possible limitted by"
255 " current mbuf size: %u. Set MTU to %u, MRU to %u",
256 mbuf_data_size, mtu, mru);
259 if (mtu < RTE_ETHER_MIN_MTU || mru > MVNETA_PKT_SIZE_MAX) {
260 MVNETA_LOG(ERR, "Invalid MTU [%u] or MRU [%u]", mtu, mru);
264 dev->data->mtu = mtu;
265 dev->data->dev_conf.rxmode.max_rx_pkt_len = mru - MV_MH_SIZE;
268 /* It is OK. New MTU will be set later on mvneta_dev_start */
271 ret = neta_ppio_set_mru(priv->ppio, mru);
273 MVNETA_LOG(ERR, "Failed to change MRU");
277 ret = neta_ppio_set_mtu(priv->ppio, mtu);
279 MVNETA_LOG(ERR, "Failed to change MTU");
282 MVNETA_LOG(INFO, "MTU changed to %u, MRU = %u", mtu, mru);
288 * DPDK callback to bring the link up.
291 * Pointer to Ethernet device structure.
294 * 0 on success, negative error value otherwise.
297 mvneta_dev_set_link_up(struct rte_eth_dev *dev)
299 struct mvneta_priv *priv = dev->data->dev_private;
304 return neta_ppio_enable(priv->ppio);
308 * DPDK callback to bring the link down.
311 * Pointer to Ethernet device structure.
314 * 0 on success, negative error value otherwise.
317 mvneta_dev_set_link_down(struct rte_eth_dev *dev)
319 struct mvneta_priv *priv = dev->data->dev_private;
324 return neta_ppio_disable(priv->ppio);
328 * DPDK callback to start the device.
331 * Pointer to Ethernet device structure.
334 * 0 on success, negative errno value on failure.
337 mvneta_dev_start(struct rte_eth_dev *dev)
339 struct mvneta_priv *priv = dev->data->dev_private;
340 char match[MVNETA_MATCH_LEN];
344 return mvneta_dev_set_link_up(dev);
346 strlcpy(match, dev->data->name, sizeof(match));
347 priv->ppio_params.match = match;
348 priv->ppio_params.inqs_params.mtu = dev->data->mtu;
350 ret = neta_ppio_init(&priv->ppio_params, &priv->ppio);
352 MVNETA_LOG(ERR, "Failed to init ppio");
355 priv->ppio_id = priv->ppio->port_id;
357 mvneta_stats_reset(dev);
360 * In case there are some some stale uc/mc mac addresses flush them
361 * here. It cannot be done during mvneta_dev_close() as port information
362 * is already gone at that point (due to neta_ppio_deinit() in
363 * mvneta_dev_stop()).
365 if (!priv->uc_mc_flushed) {
366 ret = neta_ppio_flush_mac_addrs(priv->ppio, 0, 1);
369 "Failed to flush uc/mc filter list");
372 priv->uc_mc_flushed = 1;
375 ret = mvneta_alloc_rx_bufs(dev);
379 ret = mvneta_mtu_set(dev, dev->data->mtu);
381 MVNETA_LOG(ERR, "Failed to set MTU %d", dev->data->mtu);
385 ret = mvneta_dev_set_link_up(dev);
387 MVNETA_LOG(ERR, "Failed to set link up");
391 /* start tx queues */
392 for (i = 0; i < dev->data->nb_tx_queues; i++)
393 dev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STARTED;
395 mvneta_set_tx_function(dev);
400 MVNETA_LOG(ERR, "Failed to start device");
401 neta_ppio_deinit(priv->ppio);
406 * DPDK callback to stop the device.
409 * Pointer to Ethernet device structure.
412 mvneta_dev_stop(struct rte_eth_dev *dev)
414 struct mvneta_priv *priv = dev->data->dev_private;
419 mvneta_dev_set_link_down(dev);
420 mvneta_flush_queues(dev);
421 neta_ppio_deinit(priv->ppio);
427 * DPDK callback to close the device.
430 * Pointer to Ethernet device structure.
433 mvneta_dev_close(struct rte_eth_dev *dev)
435 struct mvneta_priv *priv = dev->data->dev_private;
439 mvneta_dev_stop(dev);
441 for (i = 0; i < dev->data->nb_rx_queues; i++) {
442 mvneta_rx_queue_release(dev->data->rx_queues[i]);
443 dev->data->rx_queues[i] = NULL;
446 for (i = 0; i < dev->data->nb_tx_queues; i++) {
447 mvneta_tx_queue_release(dev->data->tx_queues[i]);
448 dev->data->tx_queues[i] = NULL;
453 if (mvneta_dev_num == 0) {
454 MVNETA_LOG(INFO, "Perform MUSDK deinit");
455 mvneta_neta_deinit();
456 rte_mvep_deinit(MVEP_MOD_T_NETA);
461 * DPDK callback to retrieve physical link information.
464 * Pointer to Ethernet device structure.
465 * @param wait_to_complete
466 * Wait for request completion (ignored).
469 * 0 on success, negative error value otherwise.
472 mvneta_link_update(struct rte_eth_dev *dev, int wait_to_complete __rte_unused)
476 * once MUSDK provides necessary API use it here
478 struct mvneta_priv *priv = dev->data->dev_private;
479 struct ethtool_cmd edata;
481 int ret, fd, link_up;
486 edata.cmd = ETHTOOL_GSET;
488 strcpy(req.ifr_name, dev->data->name);
489 req.ifr_data = (void *)&edata;
491 fd = socket(AF_INET, SOCK_DGRAM, 0);
494 ret = ioctl(fd, SIOCETHTOOL, &req);
502 switch (ethtool_cmd_speed(&edata)) {
504 dev->data->dev_link.link_speed = ETH_SPEED_NUM_10M;
507 dev->data->dev_link.link_speed = ETH_SPEED_NUM_100M;
510 dev->data->dev_link.link_speed = ETH_SPEED_NUM_1G;
513 dev->data->dev_link.link_speed = ETH_SPEED_NUM_2_5G;
516 dev->data->dev_link.link_speed = ETH_SPEED_NUM_NONE;
519 dev->data->dev_link.link_duplex = edata.duplex ? ETH_LINK_FULL_DUPLEX :
520 ETH_LINK_HALF_DUPLEX;
521 dev->data->dev_link.link_autoneg = edata.autoneg ? ETH_LINK_AUTONEG :
524 neta_ppio_get_link_state(priv->ppio, &link_up);
525 dev->data->dev_link.link_status = link_up ? ETH_LINK_UP : ETH_LINK_DOWN;
531 * DPDK callback to enable promiscuous mode.
534 * Pointer to Ethernet device structure.
537 mvneta_promiscuous_enable(struct rte_eth_dev *dev)
539 struct mvneta_priv *priv = dev->data->dev_private;
545 neta_ppio_get_promisc(priv->ppio, &en);
547 MVNETA_LOG(INFO, "Promiscuous already enabled");
551 ret = neta_ppio_set_promisc(priv->ppio, 1);
553 MVNETA_LOG(ERR, "Failed to enable promiscuous mode");
557 * DPDK callback to disable allmulticast mode.
560 * Pointer to Ethernet device structure.
563 mvneta_promiscuous_disable(struct rte_eth_dev *dev)
565 struct mvneta_priv *priv = dev->data->dev_private;
571 neta_ppio_get_promisc(priv->ppio, &en);
573 MVNETA_LOG(INFO, "Promiscuous already disabled");
577 ret = neta_ppio_set_promisc(priv->ppio, 0);
579 MVNETA_LOG(ERR, "Failed to disable promiscuous mode");
583 * DPDK callback to remove a MAC address.
586 * Pointer to Ethernet device structure.
591 mvneta_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index)
593 struct mvneta_priv *priv = dev->data->dev_private;
594 char buf[RTE_ETHER_ADDR_FMT_SIZE];
600 ret = neta_ppio_remove_mac_addr(priv->ppio,
601 dev->data->mac_addrs[index].addr_bytes);
603 rte_ether_format_addr(buf, sizeof(buf),
604 &dev->data->mac_addrs[index]);
605 MVNETA_LOG(ERR, "Failed to remove mac %s", buf);
610 * DPDK callback to add a MAC address.
613 * Pointer to Ethernet device structure.
615 * MAC address to register.
619 * VMDq pool index to associate address with (unused).
622 * 0 on success, negative error value otherwise.
625 mvneta_mac_addr_add(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr,
626 uint32_t index, uint32_t vmdq __rte_unused)
628 struct mvneta_priv *priv = dev->data->dev_private;
629 char buf[RTE_ETHER_ADDR_FMT_SIZE];
633 /* For setting index 0, mrvl_mac_addr_set() should be used.*/
639 ret = neta_ppio_add_mac_addr(priv->ppio, mac_addr->addr_bytes);
641 rte_ether_format_addr(buf, sizeof(buf), mac_addr);
642 MVNETA_LOG(ERR, "Failed to add mac %s", buf);
650 * DPDK callback to set the primary MAC address.
653 * Pointer to Ethernet device structure.
655 * MAC address to register.
658 mvneta_mac_addr_set(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr)
660 struct mvneta_priv *priv = dev->data->dev_private;
666 ret = neta_ppio_set_mac_addr(priv->ppio, mac_addr->addr_bytes);
668 char buf[RTE_ETHER_ADDR_FMT_SIZE];
669 rte_ether_format_addr(buf, sizeof(buf), mac_addr);
670 MVNETA_LOG(ERR, "Failed to set mac to %s", buf);
676 * DPDK callback to get device statistics.
679 * Pointer to Ethernet device structure.
681 * Stats structure output buffer.
684 * 0 on success, negative error value otherwise.
687 mvneta_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
689 struct mvneta_priv *priv = dev->data->dev_private;
690 struct neta_ppio_statistics ppio_stats;
696 ret = neta_ppio_get_statistics(priv->ppio, &ppio_stats);
698 MVNETA_LOG(ERR, "Failed to update port statistics");
702 stats->ipackets += ppio_stats.rx_packets +
703 ppio_stats.rx_broadcast_packets +
704 ppio_stats.rx_multicast_packets -
705 priv->prev_stats.ipackets;
706 stats->opackets += ppio_stats.tx_packets +
707 ppio_stats.tx_broadcast_packets +
708 ppio_stats.tx_multicast_packets -
709 priv->prev_stats.opackets;
710 stats->ibytes += ppio_stats.rx_bytes - priv->prev_stats.ibytes;
711 stats->obytes += ppio_stats.tx_bytes - priv->prev_stats.obytes;
712 stats->imissed += ppio_stats.rx_discard +
713 ppio_stats.rx_overrun -
714 priv->prev_stats.imissed;
715 stats->ierrors = ppio_stats.rx_packets_err -
716 priv->prev_stats.ierrors;
717 stats->oerrors = ppio_stats.tx_errors - priv->prev_stats.oerrors;
723 * DPDK callback to clear device statistics.
726 * Pointer to Ethernet device structure.
729 mvneta_stats_reset(struct rte_eth_dev *dev)
731 struct mvneta_priv *priv = dev->data->dev_private;
737 ret = mvneta_stats_get(dev, &priv->prev_stats);
739 RTE_LOG(ERR, PMD, "Failed to reset port statistics");
743 static const struct eth_dev_ops mvneta_ops = {
744 .dev_configure = mvneta_dev_configure,
745 .dev_start = mvneta_dev_start,
746 .dev_stop = mvneta_dev_stop,
747 .dev_set_link_up = mvneta_dev_set_link_up,
748 .dev_set_link_down = mvneta_dev_set_link_down,
749 .dev_close = mvneta_dev_close,
750 .link_update = mvneta_link_update,
751 .promiscuous_enable = mvneta_promiscuous_enable,
752 .promiscuous_disable = mvneta_promiscuous_disable,
753 .mac_addr_remove = mvneta_mac_addr_remove,
754 .mac_addr_add = mvneta_mac_addr_add,
755 .mac_addr_set = mvneta_mac_addr_set,
756 .mtu_set = mvneta_mtu_set,
757 .stats_get = mvneta_stats_get,
758 .stats_reset = mvneta_stats_reset,
759 .dev_infos_get = mvneta_dev_infos_get,
760 .dev_supported_ptypes_get = mvneta_dev_supported_ptypes_get,
761 .rxq_info_get = mvneta_rxq_info_get,
762 .txq_info_get = mvneta_txq_info_get,
763 .rx_queue_setup = mvneta_rx_queue_setup,
764 .rx_queue_release = mvneta_rx_queue_release,
765 .tx_queue_setup = mvneta_tx_queue_setup,
766 .tx_queue_release = mvneta_tx_queue_release,
770 * Create device representing Ethernet port.
773 * Pointer to the port's name.
776 * 0 on success, negative error value otherwise.
779 mvneta_eth_dev_create(struct rte_vdev_device *vdev, const char *name)
781 int ret, fd = socket(AF_INET, SOCK_DGRAM, 0);
782 struct rte_eth_dev *eth_dev;
783 struct mvneta_priv *priv;
786 eth_dev = rte_eth_dev_allocate(name);
790 priv = rte_zmalloc_socket(name, sizeof(*priv), 0, rte_socket_id());
795 eth_dev->data->dev_private = priv;
797 eth_dev->data->mac_addrs =
798 rte_zmalloc("mac_addrs",
799 RTE_ETHER_ADDR_LEN * MVNETA_MAC_ADDRS_MAX, 0);
800 if (!eth_dev->data->mac_addrs) {
801 MVNETA_LOG(ERR, "Failed to allocate space for eth addrs");
806 memset(&req, 0, sizeof(req));
807 strcpy(req.ifr_name, name);
808 ret = ioctl(fd, SIOCGIFHWADDR, &req);
812 memcpy(eth_dev->data->mac_addrs[0].addr_bytes,
813 req.ifr_addr.sa_data, RTE_ETHER_ADDR_LEN);
815 eth_dev->data->kdrv = RTE_KDRV_NONE;
816 eth_dev->device = &vdev->device;
817 eth_dev->rx_pkt_burst = mvneta_rx_pkt_burst;
818 mvneta_set_tx_function(eth_dev);
819 eth_dev->dev_ops = &mvneta_ops;
821 /* Flag to call rte_eth_dev_release_port() in rte_eth_dev_close(). */
822 eth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;
824 rte_eth_dev_probing_finish(eth_dev);
827 rte_eth_dev_release_port(eth_dev);
833 * Cleanup previously created device representing Ethernet port.
836 * Pointer to the corresponding rte_eth_dev structure.
839 mvneta_eth_dev_destroy(struct rte_eth_dev *eth_dev)
841 rte_eth_dev_release_port(eth_dev);
845 * Cleanup previously created device representing Ethernet port.
848 * Pointer to the port name.
851 mvneta_eth_dev_destroy_name(const char *name)
853 struct rte_eth_dev *eth_dev;
855 eth_dev = rte_eth_dev_allocated(name);
859 mvneta_eth_dev_destroy(eth_dev);
863 * DPDK callback to register the virtual device.
866 * Pointer to the virtual device.
869 * 0 on success, negative error value otherwise.
872 rte_pmd_mvneta_probe(struct rte_vdev_device *vdev)
874 struct rte_kvargs *kvlist;
875 struct mvneta_ifnames ifnames;
880 params = rte_vdev_device_args(vdev);
884 kvlist = rte_kvargs_parse(params, valid_args);
888 ifnum = rte_kvargs_count(kvlist, MVNETA_IFACE_NAME_ARG);
889 if (ifnum > RTE_DIM(ifnames.names))
890 goto out_free_kvlist;
893 rte_kvargs_process(kvlist, MVNETA_IFACE_NAME_ARG,
894 mvneta_ifnames_get, &ifnames);
897 * The below system initialization should be done only once,
898 * on the first provided configuration file
903 MVNETA_LOG(INFO, "Perform MUSDK initializations");
905 ret = rte_mvep_init(MVEP_MOD_T_NETA, kvlist);
907 goto out_free_kvlist;
909 ret = mvneta_neta_init();
911 MVNETA_LOG(ERR, "Failed to init NETA!");
912 rte_mvep_deinit(MVEP_MOD_T_NETA);
913 goto out_free_kvlist;
917 for (i = 0; i < ifnum; i++) {
918 MVNETA_LOG(INFO, "Creating %s", ifnames.names[i]);
919 ret = mvneta_eth_dev_create(vdev, ifnames.names[i]);
926 rte_kvargs_free(kvlist);
930 rte_pmd_mvneta_remove(vdev);
933 rte_kvargs_free(kvlist);
939 * DPDK callback to remove virtual device.
942 * Pointer to the removed virtual device.
945 * 0 on success, negative error value otherwise.
948 rte_pmd_mvneta_remove(struct rte_vdev_device *vdev)
952 RTE_ETH_FOREACH_DEV(port_id) {
953 if (rte_eth_devices[port_id].device != &vdev->device)
955 rte_eth_dev_close(port_id);
961 static struct rte_vdev_driver pmd_mvneta_drv = {
962 .probe = rte_pmd_mvneta_probe,
963 .remove = rte_pmd_mvneta_remove,
966 RTE_PMD_REGISTER_VDEV(net_mvneta, pmd_mvneta_drv);
967 RTE_PMD_REGISTER_PARAM_STRING(net_mvneta, "iface=<ifc>");
969 RTE_INIT(mvneta_init_log)
971 mvneta_logtype = rte_log_register("pmd.net.mvneta");
972 if (mvneta_logtype >= 0)
973 rte_log_set_level(mvneta_logtype, RTE_LOG_NOTICE);