#define foreach_memif_plugin_api_msg \
_(MEMIF_CREATE, memif_create) \
_(MEMIF_DELETE, memif_delete) \
-_(MEMIF_DETAILS, memif_details) \
_(MEMIF_DUMP, memif_dump) \
/**
/* role */
args.is_master = (mp->role == 0);
+
+ /* rx/tx queues */
if (args.is_master == 0)
{
- args.rx_queues = mp->rx_queues;
- args.tx_queues = mp->tx_queues;
+ args.rx_queues = MEMIF_DEFAULT_RX_QUEUES;
+ args.tx_queues = MEMIF_DEFAULT_TX_QUEUES;
+ if (mp->rx_queues)
+ {
+ args.rx_queues = mp->rx_queues;
+ }
+ if (mp->tx_queues)
+ {
+ args.tx_queues = mp->tx_queues;
+ }
}
/* ring size */
vec_free (if_name);
}
-/**
- * @brief Message handler for memif_details API.
- * @param mp vl_api_memif_details_t * mp the api message
- */
-void
-vl_api_memif_details_t_handler (vl_api_memif_details_t * mp)
-{
- clib_warning ("BUG");
-}
-
#define vl_msg_name_crc_list
#include <memif/memif_all_api_h.h>
#undef vl_msg_name_crc_list