aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/pktio/io_ops.c
blob: 3bbb5cd49baedc3dad4de3f83711cfaf725be7d6 (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
26
27
28
29
30
31
32
/* Copyright (c) 2013, Linaro Limited
 * All rights reserved.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 */

#include "config.h"

#include <odp_packet_io_internal.h>

/* Ops for all implementation of pktio.
 * Order matters. The first implementation to setup successfully
 * will be picked.
 * Array must be NULL terminated */
const pktio_if_ops_t * const pktio_if_ops[]  = {
	&loopback_pktio_ops,
#ifdef ODP_PKTIO_DPDK
	&dpdk_pktio_ops,
#endif
#ifdef ODP_NETMAP
	&netmap_pktio_ops,
#endif
#ifdef HAVE_PCAP
	&pcap_pktio_ops,
#endif
	&ipc_pktio_ops,
	&tap_pktio_ops,
	&null_pktio_ops,
	&sock_mmap_pktio_ops,
	&sock_mmsg_pktio_ops,
	NULL
};