blob: d59b0c844b9205b25422d62130dd3531a81fb730 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* 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
|