File: module_api.h

package info (click to toggle)
dpdk 25.11-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 127,892 kB
  • sloc: ansic: 2,358,479; python: 16,426; sh: 4,474; makefile: 1,713; awk: 70
file content (48 lines) | stat: -rw-r--r-- 834 bytes parent folder | download
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* SPDX-License-Identifier: BSD-3-Clause
 * Copyright(c) 2023 Marvell.
 */

#ifndef APP_GRAPH_MODULE_API_H
#define APP_GRAPH_MODULE_API_H

#include <stdint.h>
#include <stdbool.h>

#include "cli.h"
#include "conn.h"
#include "commands.h"
#include "ethdev.h"
#include "ethdev_rx.h"
#include "graph.h"
#include "l2fwd.h"
#include "l3fwd.h"
#include "mempool.h"
#include "neigh.h"
#include "route.h"
#include "utils.h"
#include "feature.h"

/*
 * Externs
 */
extern volatile bool force_quit;
extern struct conn *conn;

enum ip4_lookup_mode {
	IP4_LOOKUP_LPM,
	IP4_LOOKUP_FIB
};

enum ip6_lookup_mode {
	IP6_LOOKUP_LPM,
	IP6_LOOKUP_FIB
};

extern enum ip4_lookup_mode ip4_lookup_m;
extern enum ip6_lookup_mode ip6_lookup_m;

bool app_graph_stats_enabled(void);
bool app_graph_feature_arc_enabled(void);
bool app_graph_exit(void);

#endif