-
Notifications
You must be signed in to change notification settings - Fork 0
/
target-setup-dpdk.html
182 lines (163 loc) · 10.3 KB
/
target-setup-dpdk.html
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Target Setup for P4-DPDK — k8s-infra-offload 23.07 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/copybutton.css" type="text/css" />
<!--[if lt IE 9]>
<script src="_static/js/html5shiv.min.js"></script>
<![endif]-->
<script src="_static/jquery.js"></script>
<script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/sphinx_highlight.js"></script>
<script src="_static/clipboard.min.js"></script>
<script src="_static/copybutton.js"></script>
<script src="_static/js/theme.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Target Setup for Intel IPU E2100" href="target-setup-es2k.html" />
<link rel="prev" title="Kubernetes, Docker, and containerd Installation" href="docker-containerd-install.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="index.html" class="icon icon-home">
k8s-infra-offload
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Setup Guides</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="setup.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="docker-containerd-install.html">Kubernetes, Docker, and containerd Installation</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Target Setup for P4-DPDK</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#install-ipdk-sde-and-ipdk-networking-recipe-for-host-mode">Install IPDK SDE and IPDK Networking Recipe for host mode</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#p4-sde">P4-SDE</a></li>
<li class="toctree-l3"><a class="reference internal" href="#infrap4d">Infrap4d</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="target-setup-es2k.html">Target Setup for Intel IPU E2100</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Security guide</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="security/security-guide.html">Security Guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="security/using-tls-certificates.html">Using TLS Certificates</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Release notes</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="release-notes.html">IPDK Kubernetes Infrastructure Offload Release Notes</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">k8s-infra-offload</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item active">Target Setup for P4-DPDK</li>
<li class="wy-breadcrumbs-aside">
<a href="_sources/target-setup-dpdk.md.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<section id="target-setup-for-p4-dpdk">
<h1>Target Setup for P4-DPDK<a class="headerlink" href="#target-setup-for-p4-dpdk" title="Permalink to this heading"></a></h1>
<section id="install-ipdk-sde-and-ipdk-networking-recipe-for-host-mode">
<h2>Install IPDK SDE and IPDK Networking Recipe for host mode<a class="headerlink" href="#install-ipdk-sde-and-ipdk-networking-recipe-for-host-mode" title="Permalink to this heading"></a></h2>
<p>IPDK infrap4d (P4 Control Plane) needs to be installed and run on the host
natively. To install infrap4d and P4-SDE
individually, follow the instructions listed below. Note that, P4C is not
required as this software includes P4C generated artifacts.</p>
<section id="p4-sde">
<h3>P4-SDE<a class="headerlink" href="#p4-sde" title="Permalink to this heading"></a></h3>
<p>To install P4-SDE, follow its README instructions at
https://github.com/p4lang/p4-dpdk-target. Make sure to checkout the appropriate
branch or SHA meant for the right release. The main steps can be summerized as:</p>
<p>Clone SDE repository, create install directory, setup environment variable and
then build</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>git<span class="w"> </span>clone<span class="w"> </span>https://github.com/p4lang/p4-dpdk-target.git
<span class="nb">cd</span><span class="w"> </span>p4-dpdk-target
git<span class="w"> </span>checkout<span class="w"> </span><Branch/SHA<span class="w"> </span><span class="k">for</span><span class="w"> </span>IPDK<span class="w"> </span><span class="m">24</span>.01>
git<span class="w"> </span>submodule<span class="w"> </span>update<span class="w"> </span>--init<span class="w"> </span>--recursive<span class="w"> </span>--force
mkdir<span class="w"> </span>install
<span class="nb">export</span><span class="w"> </span><span class="nv">SDE</span><span class="o">=</span><span class="nv">$PWD</span>
<span class="nb">cd</span><span class="w"> </span>./tools/setup
<span class="nb">source</span><span class="w"> </span>p4sde_env_setup.sh<span class="w"> </span><span class="nv">$SDE</span>
<span class="nb">cd</span><span class="w"> </span><span class="nv">$SDE</span>
./build-p4sde.sh<span class="w"> </span>-s<span class="w"> </span><span class="nv">$SDE_INSTALL</span>
</pre></div>
</div>
</section>
<section id="infrap4d">
<h3>Infrap4d<a class="headerlink" href="#infrap4d" title="Permalink to this heading"></a></h3>
<p>To install infrap4d, follow instructions at
https://github.com/ipdk-io/networking-recipe/blob/main/docs/guides/dpdk-guide.md.
Make sure to checkout the appropriate
branch or SHA meant for the right IPDK release. The main steps can be summerized as:</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>git<span class="w"> </span>clone<span class="w"> </span>https://github.com/ipdk-io/networking-recipe.git<span class="w"> </span>ipdk.recipe
<span class="nb">cd</span><span class="w"> </span>ipdk.recipe
git<span class="w"> </span>checkout<span class="w"> </span><Branch/SHA<span class="w"> </span><span class="k">for</span><span class="w"> </span>IPDK<span class="w"> </span><span class="m">24</span>.01>
git<span class="w"> </span>submodule<span class="w"> </span>update<span class="w"> </span>--init<span class="w"> </span>--recursive
<span class="nb">export</span><span class="w"> </span><span class="nv">IPDK_RECIPE</span><span class="o">=</span><span class="nv">$PWD</span>
mkdir<span class="w"> </span>install
<span class="nb">export</span><span class="w"> </span><span class="nv">DEPEND_INSTALL</span><span class="o">=</span><span class="nv">$PWD</span>/install
<span class="nb">cd</span><span class="w"> </span><span class="nv">$IPDK_RECIPE</span>/setup
cmake<span class="w"> </span>-B<span class="w"> </span>build<span class="w"> </span>-DCMAKE_INSTALL_PREFIX<span class="o">=</span><span class="nv">$DEPEND_INSTALL</span>
cmake<span class="w"> </span>--build<span class="w"> </span>build<span class="w"> </span><span class="o">[</span>-j<njobs><span class="o">]</span>
<span class="nb">cd</span><span class="w"> </span><span class="nv">$IPDK_RECIPE</span>
<span class="nb">source</span><span class="w"> </span>./scripts/dpdk/setup_env.sh<span class="w"> </span><span class="nv">$IPDK_RECIPE</span><span class="w"> </span><span class="nv">$SDE_INSTALL</span><span class="w"> </span><span class="nv">$DEPEND_INSTALL</span>
./make-all.sh<span class="w"> </span>--target<span class="o">=</span>dpdk
./scripts/dpdk/copy_config_files.sh<span class="w"> </span><span class="nv">$IPDK_RECIPE</span><span class="w"> </span><span class="nv">$SDE_INSTALL</span>
</pre></div>
</div>
</section>
</section>
</section>
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="docker-containerd-install.html" class="btn btn-neutral float-left" title="Kubernetes, Docker, and containerd Installation" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="target-setup-es2k.html" class="btn btn-neutral float-right" title="Target Setup for Intel IPU E2100" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>
<hr/>
<div role="contentinfo">
<p>© Copyright 2023, Intel.</p>
</div>
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>