P4C
The P4 Compiler
Loading...
Searching...
No Matches
tdiConf.h
1
/* Copyright 2023 Intel Corporation
2
3
Licensed under the Apache License, Version 2.0 (the "License");
4
you may not use this file except in compliance with the License.
5
You may obtain a copy of the License at
6
7
http://www.apache.org/licenses/LICENSE-2.0
8
9
Unless required by applicable law or agreed to in writing, software
10
distributed under the License is distributed on an "AS IS" BASIS,
11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
See the License for the specific language governing permissions and
13
limitations under the License.
14
*/
15
16
#ifndef BACKENDS_DPDK_TDICONF_H_
17
#define BACKENDS_DPDK_TDICONF_H_
18
19
#include <string>
20
21
#include "backends/dpdk/options.h"
22
namespace
P4::DPDK
{
23
24
class
TdiBfrtConf
{
25
private
:
28
static
std::vector<cstring> getPipeNames(
const
IR::Declaration_Instance *main);
29
31
static
std::optional<cstring> findPipeName(
const
IR::P4Program *prog,
32
DPDK::DpdkOptions
&options);
33
34
public
:
36
static
void
generate
(
const
IR::P4Program *prog,
DPDK::DpdkOptions
&options);
37
};
38
39
}
// namespace P4::DPDK
40
41
#endif
/* BACKENDS_DPDK_TDICONF_H_ */
P4::DPDK::DpdkOptions
Definition
backends/dpdk/options.h:24
P4::DPDK::TdiBfrtConf
Definition
tdiConf.h:24
P4::DPDK::TdiBfrtConf::generate
static void generate(const IR::P4Program *prog, DPDK::DpdkOptions &options)
Generate the TDI configuration file required by the tdi-pipeline-builder.
Definition
tdiConf.cpp:70
P4::DPDK
Definition
dpdk/backend.cpp:37
backends
dpdk
tdiConf.h
Generated by
1.12.0