P4C
The P4 Compiler
Loading...
Searching...
No Matches
tdiConf.h
1/* Copyright 2023 Intel Corporation
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations 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"
22namespace P4::DPDK {
23
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_ */
Definition backends/dpdk/options.h:24
Definition tdiConf.h:24
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
Definition dpdk/backend.cpp:37