You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/apps/lnw/es2k/es2k-linux-networking-frr.md
+69-44Lines changed: 69 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ System under test will have above topology running the networking recipe. Link P
38
38
## Create P4 artifacts and start Infrap4d process
39
39
40
40
- Use Linux networking p4 program present in the directory `/opt/p4/p4sde/share/mev_reference_p4_files/linux_networking` for this scenario.
41
-
-Refer to[Running Infrap4d on Intel IPU E2100](/guides/es2k/running-infrap4d.md) for compiling `P4 artifacts`, `bringing up ACC` and running `infrap4d` on ACC.
41
+
-See[Running Infrap4d on Intel IPU E2100](/guides/es2k/running-infrap4d.md) for compiling `P4 artifacts`, `bringing up ACC` and running `infrap4d` on ACC.
42
42
43
43
## Creating the topology
44
44
@@ -50,7 +50,8 @@ Once the application is started, set the forwarding pipeline config using
Note: Assuming `linux_networking.pb.bin` and `linux_networking.p4info.txt` along with other P4 artifacts are created as per the steps mentioned in previous section.
@@ -63,7 +64,8 @@ Use one of the IPDF netdevs on ACC to receive all control packets from overlay V
63
64
# SEM_DIRECT_MAP_PGEN_CTRL: LSB 11-bit is for vsi which need to map into vsig
64
65
devmem 0x20292002a0 64 0x8000050000000008
65
66
66
-
# SEM_DIRECT_MAP_PGEN_DATA_VSI_GROUP : This will set vsi (set in SEM_DIRECT_MAP_PGEN_CTRL register LSB) into VSIG-3
67
+
# SEM_DIRECT_MAP_PGEN_DATA_VSI_GROUP : This will set vsi
68
+
# (set in SEM_DIRECT_MAP_PGEN_CTRL register LSB) into VSIG-3
67
69
devmem 0x2029200388 64 0x3
68
70
69
71
# SEM_DIRECT_MAP_PGEN_CTRL: LSB 11-bit is for vsi which need to map into vsig
@@ -89,8 +91,8 @@ ip addr add 99.0.0.2/24 dev <Netdev connected to VF2>
89
91
ifconfig <Netdev connected to VF> up
90
92
```
91
93
92
-
Option 2: If we are unable to spawn VM's on top of the VF's, for this use case we can also leverage kernel network namespaces.
93
-
Move each VF to a network namespace and assign IP addresses
94
+
Option 2: If we are unable to spawn VM's on top of the VF's, we can leverage kernel network namespaces.
95
+
Move each VF to a network namespace and assign IP addresses:
94
96
95
97
```bash
96
98
ip netns add VM0
@@ -111,25 +113,26 @@ Legacy OvS is used as a control plane for source MAC learning of overlay VM's. O
Note: Here we are creating VxLAN tunnel with VNI 0, you can create any VNI for tunneling.
@@ -179,38 +184,54 @@ Below configuration assumes
179
184
- Overlay VF1 has a VSI value 14
180
185
- Overlay VF2 has a VSI value 15
181
186
182
-
These VSI values can be checked with `/usr/bin/cli_client -q -c` command on IMC. This command provides VSI ID, Vport ID, and corresponding MAC addresses for all
187
+
These VSI values can be checked with `/usr/bin/cli_client -q -c` command on IMC.
188
+
This command provides VSI ID, Vport ID, and corresponding MAC addresses for all:
183
189
184
190
- IDPF netdevs on ACC
185
191
- VF's on HOST
186
192
- IDPF netdevs on HOST (if IDPF driver loaded by you on HOST)
187
193
- Netdevs on IMC
188
194
189
195
```bash
190
-
191
-
# Rules for control packets coming from overlay VF(VSI-14), IPU will add a VLAN tag 1 and send to HOST1(VSI-8)
Create a dummy interface which is used for TEP termination and IDPF netdev for underlay connectivity. Use BGP protocol with FRR, for route redistribution.
258
+
Create a dummy interface which is used for TEP termination and IDPF netdev for
259
+
underlay connectivity. Use BGP protocol with FRR, for route redistribution.
0 commit comments