numam-dpdk/examples/l2fwd-event/l2fwd_poll.h
Pavan Nikhilesh 4ff457986f examples/l2fwd-event: add default poll mode routines
Add the default l2fwd poll mode routines similar to examples/l2fwd.

Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
2019-11-04 18:07:43 +01:00

26 lines
614 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2019 Marvell International Ltd.
*/
#ifndef __L2FWD_POLL_H__
#define __L2FWD_POLL_H__
#include "l2fwd_common.h"
typedef void (*poll_main_loop_cb)(struct l2fwd_resources *rsrc);
struct lcore_queue_conf {
uint32_t rx_port_list[MAX_RX_QUEUE_PER_LCORE];
uint32_t n_rx_port;
} __rte_cache_aligned;
struct l2fwd_poll_resources {
poll_main_loop_cb poll_main_loop;
struct rte_eth_dev_tx_buffer *tx_buffer[RTE_MAX_ETHPORTS];
struct lcore_queue_conf lcore_queue_conf[RTE_MAX_LCORE];
};
void l2fwd_poll_resource_setup(struct l2fwd_resources *rsrc);
#endif