4ff457986f
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>
26 lines
614 B
C
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
|