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;
195 * Return supported packet types.
198 * Pointer to Ethernet device structure (unused).
201 * Const pointer to the table with supported packet types.
203 static const uint32_t *
204 mvneta_dev_supported_ptypes_get(struct rte_eth_dev *dev __rte_unused)
206 static const uint32_t ptypes[] = {
208 RTE_PTYPE_L2_ETHER_VLAN,
219 * DPDK callback to change the MTU.
221 * Setting the MTU affects hardware MRU (packets larger than the MRU
225 * Pointer to Ethernet device structure.
230 * 0 on success, negative error value otherwise.
233 mvneta_mtu_set(struct rte_eth_dev *dev, uint16_t mtu)
235 struct mvneta_priv *priv = dev->data->dev_private;
236 uint16_t mbuf_data_size = 0; /* SW buffer size */
240 mru = MRVL_NETA_MTU_TO_MRU(mtu);
242 * min_rx_buf_size is equal to mbuf data size
243 * if pmd didn't set it differently
245 mbuf_data_size = dev->data->min_rx_buf_size - RTE_PKTMBUF_HEADROOM;
247 * - setting mru greater than the mbuf size resulting in
248 * hw and sw buffer size mismatch
249 * - setting mtu that requires the support of scattered packets
250 * when this feature has not been enabled/supported so far.
252 if (!dev->data->scattered_rx &&
253 (mru + MRVL_NETA_PKT_OFFS > mbuf_data_size)) {
254 mru = mbuf_data_size - MRVL_NETA_PKT_OFFS;
255 mtu = MRVL_NETA_MRU_TO_MTU(mru);
256 MVNETA_LOG(WARNING, "MTU too big, max MTU possible limitted by"
257 " current mbuf size: %u. Set MTU to %u, MRU to %u",
258 mbuf_data_size, mtu, mru);
261 if (mtu < RTE_ETHER_MIN_MTU || mru > MVNETA_PKT_SIZE_MAX) {
262 MVNETA_LOG(ERR, "Invalid MTU [%u] or MRU [%u]", mtu, mru);
266 dev->data->mtu = mtu;
267 dev->data->dev_conf.rxmode.max_rx_pkt_len = mru - MV_MH_SIZE;
270 /* It is OK. New MTU will be set later on mvneta_dev_start */
273 ret = neta_ppio_set_mru(priv->ppio, mru);
275 MVNETA_LOG(ERR, "Failed to change MRU");
279 ret = neta_ppio_set_mtu(priv->ppio, mtu);
281 MVNETA_LOG(ERR, "Failed to change MTU");
284 MVNETA_LOG(INFO, "MTU changed to %u, MRU = %u", mtu, mru);
290 * DPDK callback to bring the link up.
293 * Pointer to Ethernet device structure.
296 * 0 on success, negative error value otherwise.
299 mvneta_dev_set_link_up(struct rte_eth_dev *dev)
301 struct mvneta_priv *priv = dev->data->dev_private;
306 return neta_ppio_enable(priv->ppio);
310 * DPDK callback to bring the link down.
313 * Pointer to Ethernet device structure.
316 * 0 on success, negative error value otherwise.
319 mvneta_dev_set_link_down(struct rte_eth_dev *dev)
321 struct mvneta_priv *priv = dev->data->dev_private;
326 return neta_ppio_disable(priv->ppio);
330 * DPDK callback to start the device.
333 * Pointer to Ethernet device structure.
336 * 0 on success, negative errno value on failure.
339 mvneta_dev_start(struct rte_eth_dev *dev)
341 struct mvneta_priv *priv = dev->data->dev_private;
342 char match[MVNETA_MATCH_LEN];
346 return mvneta_dev_set_link_up(dev);
348 strlcpy(match, dev->data->name, sizeof(match));
349 priv->ppio_params.match = match;
350 priv->ppio_params.inqs_params.mtu = dev->data->mtu;
352 ret = neta_ppio_init(&priv->ppio_params, &priv->ppio);
354 MVNETA_LOG(ERR, "Failed to init ppio");
357 priv->ppio_id = priv->ppio->port_id;
359 mvneta_stats_reset(dev);
362 * In case there are some some stale uc/mc mac addresses flush them
363 * here. It cannot be done during mvneta_dev_close() as port information
364 * is already gone at that point (due to neta_ppio_deinit() in
365 * mvneta_dev_stop()).
367 if (!priv->uc_mc_flushed) {
368 ret = neta_ppio_flush_mac_addrs(priv->ppio, 0, 1);
371 "Failed to flush uc/mc filter list");
374 priv->uc_mc_flushed = 1;
377 ret = mvneta_alloc_rx_bufs(dev);
381 ret = mvneta_mtu_set(dev, dev->data->mtu);
383 MVNETA_LOG(ERR, "Failed to set MTU %d", dev->data->mtu);
387 ret = mvneta_dev_set_link_up(dev);
389 MVNETA_LOG(ERR, "Failed to set link up");
393 /* start tx queues */
394 for (i = 0; i < dev->data->nb_tx_queues; i++)
395 dev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STARTED;
397 mvneta_set_tx_function(dev);
402 MVNETA_LOG(ERR, "Failed to start device");
403 neta_ppio_deinit(priv->ppio);
408 * DPDK callback to stop the device.
411 * Pointer to Ethernet device structure.
414 mvneta_dev_stop(struct rte_eth_dev *dev)
416 struct mvneta_priv *priv = dev->data->dev_private;
421 mvneta_dev_set_link_down(dev);
422 mvneta_flush_queues(dev);
423 neta_ppio_deinit(priv->ppio);
429 * DPDK callback to close the device.
432 * Pointer to Ethernet device structure.
435 mvneta_dev_close(struct rte_eth_dev *dev)
437 struct mvneta_priv *priv = dev->data->dev_private;
441 mvneta_dev_stop(dev);
443 for (i = 0; i < dev->data->nb_rx_queues; i++) {
444 mvneta_rx_queue_release(dev->data->rx_queues[i]);
445 dev->data->rx_queues[i] = NULL;
448 for (i = 0; i < dev->data->nb_tx_queues; i++) {
449 mvneta_tx_queue_release(dev->data->tx_queues[i]);
450 dev->data->tx_queues[i] = NULL;
455 if (mvneta_dev_num == 0) {
456 MVNETA_LOG(INFO, "Perform MUSDK deinit");
457 mvneta_neta_deinit();
458 rte_mvep_deinit(MVEP_MOD_T_NETA);
463 * DPDK callback to retrieve physical link information.
466 * Pointer to Ethernet device structure.
467 * @param wait_to_complete
468 * Wait for request completion (ignored).
471 * 0 on success, negative error value otherwise.
474 mvneta_link_update(struct rte_eth_dev *dev, int wait_to_complete __rte_unused)
478 * once MUSDK provides necessary API use it here
480 struct mvneta_priv *priv = dev->data->dev_private;
481 struct ethtool_cmd edata;
483 int ret, fd, link_up;
488 edata.cmd = ETHTOOL_GSET;
490 strcpy(req.ifr_name, dev->data->name);
491 req.ifr_data = (void *)&edata;
493 fd = socket(AF_INET, SOCK_DGRAM, 0);
496 ret = ioctl(fd, SIOCETHTOOL, &req);
504 switch (ethtool_cmd_speed(&edata)) {
506 dev->data->dev_link.link_speed = ETH_SPEED_NUM_10M;
509 dev->data->dev_link.link_speed = ETH_SPEED_NUM_100M;
512 dev->data->dev_link.link_speed = ETH_SPEED_NUM_1G;
515 dev->data->dev_link.link_speed = ETH_SPEED_NUM_2_5G;
518 dev->data->dev_link.link_speed = ETH_SPEED_NUM_NONE;
521 dev->data->dev_link.link_duplex = edata.duplex ? ETH_LINK_FULL_DUPLEX :
522 ETH_LINK_HALF_DUPLEX;
523 dev->data->dev_link.link_autoneg = edata.autoneg ? ETH_LINK_AUTONEG :
526 neta_ppio_get_link_state(priv->ppio, &link_up);
527 dev->data->dev_link.link_status = link_up ? ETH_LINK_UP : ETH_LINK_DOWN;
533 * DPDK callback to enable promiscuous mode.
536 * Pointer to Ethernet device structure.
539 mvneta_promiscuous_enable(struct rte_eth_dev *dev)
541 struct mvneta_priv *priv = dev->data->dev_private;
547 neta_ppio_get_promisc(priv->ppio, &en);
549 MVNETA_LOG(INFO, "Promiscuous already enabled");
553 ret = neta_ppio_set_promisc(priv->ppio, 1);
555 MVNETA_LOG(ERR, "Failed to enable promiscuous mode");
559 * DPDK callback to disable allmulticast mode.
562 * Pointer to Ethernet device structure.
565 mvneta_promiscuous_disable(struct rte_eth_dev *dev)
567 struct mvneta_priv *priv = dev->data->dev_private;
573 neta_ppio_get_promisc(priv->ppio, &en);
575 MVNETA_LOG(INFO, "Promiscuous already disabled");
579 ret = neta_ppio_set_promisc(priv->ppio, 0);
581 MVNETA_LOG(ERR, "Failed to disable promiscuous mode");
585 * DPDK callback to remove a MAC address.
588 * Pointer to Ethernet device structure.
593 mvneta_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index)
595 struct mvneta_priv *priv = dev->data->dev_private;
596 char buf[RTE_ETHER_ADDR_FMT_SIZE];
602 ret = neta_ppio_remove_mac_addr(priv->ppio,
603 dev->data->mac_addrs[index].addr_bytes);
605 rte_ether_format_addr(buf, sizeof(buf),
606 &dev->data->mac_addrs[index]);
607 MVNETA_LOG(ERR, "Failed to remove mac %s", buf);
612 * DPDK callback to add a MAC address.
615 * Pointer to Ethernet device structure.
617 * MAC address to register.
621 * VMDq pool index to associate address with (unused).
624 * 0 on success, negative error value otherwise.
627 mvneta_mac_addr_add(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr,
628 uint32_t index, uint32_t vmdq __rte_unused)
630 struct mvneta_priv *priv = dev->data->dev_private;
631 char buf[RTE_ETHER_ADDR_FMT_SIZE];
635 /* For setting index 0, mrvl_mac_addr_set() should be used.*/
641 ret = neta_ppio_add_mac_addr(priv->ppio, mac_addr->addr_bytes);
643 rte_ether_format_addr(buf, sizeof(buf), mac_addr);
644 MVNETA_LOG(ERR, "Failed to add mac %s", buf);
652 * DPDK callback to set the primary MAC address.
655 * Pointer to Ethernet device structure.
657 * MAC address to register.
660 mvneta_mac_addr_set(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr)
662 struct mvneta_priv *priv = dev->data->dev_private;
668 ret = neta_ppio_set_mac_addr(priv->ppio, mac_addr->addr_bytes);
670 char buf[RTE_ETHER_ADDR_FMT_SIZE];
671 rte_ether_format_addr(buf, sizeof(buf), mac_addr);
672 MVNETA_LOG(ERR, "Failed to set mac to %s", buf);
678 * DPDK callback to get device statistics.
681 * Pointer to Ethernet device structure.
683 * Stats structure output buffer.
686 * 0 on success, negative error value otherwise.
689 mvneta_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
691 struct mvneta_priv *priv = dev->data->dev_private;
692 struct neta_ppio_statistics ppio_stats;
698 ret = neta_ppio_get_statistics(priv->ppio, &ppio_stats);
700 MVNETA_LOG(ERR, "Failed to update port statistics");
704 stats->ipackets += ppio_stats.rx_packets +
705 ppio_stats.rx_broadcast_packets +
706 ppio_stats.rx_multicast_packets -
707 priv->prev_stats.ipackets;
708 stats->opackets += ppio_stats.tx_packets +
709 ppio_stats.tx_broadcast_packets +
710 ppio_stats.tx_multicast_packets -
711 priv->prev_stats.opackets;
712 stats->ibytes += ppio_stats.rx_bytes - priv->prev_stats.ibytes;
713 stats->obytes += ppio_stats.tx_bytes - priv->prev_stats.obytes;
714 stats->imissed += ppio_stats.rx_discard +
715 ppio_stats.rx_overrun -
716 priv->prev_stats.imissed;
717 stats->ierrors = ppio_stats.rx_packets_err -
718 priv->prev_stats.ierrors;
719 stats->oerrors = ppio_stats.tx_errors - priv->prev_stats.oerrors;
725 * DPDK callback to clear device statistics.
728 * Pointer to Ethernet device structure.
731 mvneta_stats_reset(struct rte_eth_dev *dev)
733 struct mvneta_priv *priv = dev->data->dev_private;
739 ret = mvneta_stats_get(dev, &priv->prev_stats);
741 RTE_LOG(ERR, PMD, "Failed to reset port statistics");
745 static const struct eth_dev_ops mvneta_ops = {
746 .dev_configure = mvneta_dev_configure,
747 .dev_start = mvneta_dev_start,
748 .dev_stop = mvneta_dev_stop,
749 .dev_set_link_up = mvneta_dev_set_link_up,
750 .dev_set_link_down = mvneta_dev_set_link_down,
751 .dev_close = mvneta_dev_close,
752 .link_update = mvneta_link_update,
753 .promiscuous_enable = mvneta_promiscuous_enable,
754 .promiscuous_disable = mvneta_promiscuous_disable,
755 .mac_addr_remove = mvneta_mac_addr_remove,
756 .mac_addr_add = mvneta_mac_addr_add,
757 .mac_addr_set = mvneta_mac_addr_set,
758 .mtu_set = mvneta_mtu_set,
759 .stats_get = mvneta_stats_get,
760 .stats_reset = mvneta_stats_reset,
761 .dev_infos_get = mvneta_dev_infos_get,
762 .dev_supported_ptypes_get = mvneta_dev_supported_ptypes_get,
763 .rxq_info_get = mvneta_rxq_info_get,
764 .txq_info_get = mvneta_txq_info_get,
765 .rx_queue_setup = mvneta_rx_queue_setup,
766 .rx_queue_release = mvneta_rx_queue_release,
767 .tx_queue_setup = mvneta_tx_queue_setup,
768 .tx_queue_release = mvneta_tx_queue_release,
772 * Create device representing Ethernet port.
775 * Pointer to the port's name.
778 * 0 on success, negative error value otherwise.
781 mvneta_eth_dev_create(struct rte_vdev_device *vdev, const char *name)
783 int ret, fd = socket(AF_INET, SOCK_DGRAM, 0);
784 struct rte_eth_dev *eth_dev;
785 struct mvneta_priv *priv;
788 eth_dev = rte_eth_dev_allocate(name);
792 priv = rte_zmalloc_socket(name, sizeof(*priv), 0, rte_socket_id());
797 eth_dev->data->dev_private = priv;
799 eth_dev->data->mac_addrs =
800 rte_zmalloc("mac_addrs",
801 RTE_ETHER_ADDR_LEN * MVNETA_MAC_ADDRS_MAX, 0);
802 if (!eth_dev->data->mac_addrs) {
803 MVNETA_LOG(ERR, "Failed to allocate space for eth addrs");
808 memset(&req, 0, sizeof(req));
809 strcpy(req.ifr_name, name);
810 ret = ioctl(fd, SIOCGIFHWADDR, &req);
814 memcpy(eth_dev->data->mac_addrs[0].addr_bytes,
815 req.ifr_addr.sa_data, RTE_ETHER_ADDR_LEN);
817 eth_dev->data->kdrv = RTE_KDRV_NONE;
818 eth_dev->device = &vdev->device;
819 eth_dev->rx_pkt_burst = mvneta_rx_pkt_burst;
820 mvneta_set_tx_function(eth_dev);
821 eth_dev->dev_ops = &mvneta_ops;
823 /* Flag to call rte_eth_dev_release_port() in rte_eth_dev_close(). */
824 eth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;
826 rte_eth_dev_probing_finish(eth_dev);
829 rte_eth_dev_release_port(eth_dev);
835 * Cleanup previously created device representing Ethernet port.
838 * Pointer to the corresponding rte_eth_dev structure.
841 mvneta_eth_dev_destroy(struct rte_eth_dev *eth_dev)
843 rte_eth_dev_release_port(eth_dev);
847 * Cleanup previously created device representing Ethernet port.
850 * Pointer to the port name.
853 mvneta_eth_dev_destroy_name(const char *name)
855 struct rte_eth_dev *eth_dev;
857 eth_dev = rte_eth_dev_allocated(name);
861 mvneta_eth_dev_destroy(eth_dev);
865 * DPDK callback to register the virtual device.
868 * Pointer to the virtual device.
871 * 0 on success, negative error value otherwise.
874 rte_pmd_mvneta_probe(struct rte_vdev_device *vdev)
876 struct rte_kvargs *kvlist;
877 struct mvneta_ifnames ifnames;
882 params = rte_vdev_device_args(vdev);
886 kvlist = rte_kvargs_parse(params, valid_args);
890 ifnum = rte_kvargs_count(kvlist, MVNETA_IFACE_NAME_ARG);
891 if (ifnum > RTE_DIM(ifnames.names))
892 goto out_free_kvlist;
895 rte_kvargs_process(kvlist, MVNETA_IFACE_NAME_ARG,
896 mvneta_ifnames_get, &ifnames);
899 * The below system initialization should be done only once,
900 * on the first provided configuration file
905 MVNETA_LOG(INFO, "Perform MUSDK initializations");
907 ret = rte_mvep_init(MVEP_MOD_T_NETA, kvlist);
909 goto out_free_kvlist;
911 ret = mvneta_neta_init();
913 MVNETA_LOG(ERR, "Failed to init NETA!");
914 rte_mvep_deinit(MVEP_MOD_T_NETA);
915 goto out_free_kvlist;
919 for (i = 0; i < ifnum; i++) {
920 MVNETA_LOG(INFO, "Creating %s", ifnames.names[i]);
921 ret = mvneta_eth_dev_create(vdev, ifnames.names[i]);
928 rte_kvargs_free(kvlist);
932 rte_pmd_mvneta_remove(vdev);
935 rte_kvargs_free(kvlist);
941 * DPDK callback to remove virtual device.
944 * Pointer to the removed virtual device.
947 * 0 on success, negative error value otherwise.
950 rte_pmd_mvneta_remove(struct rte_vdev_device *vdev)
954 RTE_ETH_FOREACH_DEV(port_id) {
955 if (rte_eth_devices[port_id].device != &vdev->device)
957 rte_eth_dev_close(port_id);
963 static struct rte_vdev_driver pmd_mvneta_drv = {
964 .probe = rte_pmd_mvneta_probe,
965 .remove = rte_pmd_mvneta_remove,
968 RTE_PMD_REGISTER_VDEV(net_mvneta, pmd_mvneta_drv);
969 RTE_PMD_REGISTER_PARAM_STRING(net_mvneta, "iface=<ifc>");
971 RTE_INIT(mvneta_init_log)
973 mvneta_logtype = rte_log_register("pmd.net.mvneta");
974 if (mvneta_logtype >= 0)
975 rte_log_set_level(mvneta_logtype, RTE_LOG_NOTICE);