Closed msg-programs closed 2 years ago
While comparing the setups on the VM and on the Pi, I overlooked the option vethmode
. Adding this to the list of arguments solved the issue. This option is set for all of the programs in the examples.cfg of P4PI.
I've set up T4P4S in a fresh Ubuntu 21.04 VM and am now trying to get the
l2switch
example to work. The commands used for compilation and execution are as follows. I've separated them, since I'm using network namespaces in my setup and the t4p4s.sh sometimes doesn't want to work withip netns exec
, so I have to do it like this.Compilation:
Execution, veth3-s and veth4-s are virtual ethernet devices:
When running the switch, the switch fails to run properly, displaying the following:
I have had this problem with T4P4S before while using P4PI on a Raspberry Pi, but the error always somehow resolved itself, which is... sub-optimal.
The general setup (i.e. running the switch program inside a netns with veths as the interface devices) is working using P4PI, so it must be something other than my setup.
My
examples.cfg
is unchanged; theopts_dpdk.cfg
has only the names of the interfaces the switch uses changed.What causes this issue and how would I resolve it (if possible)? I haven't been able to find much information on this online and I'm still learning about DPDK and P4 in general.
I apologize in advance if this happens to be a trivial issue.
EDIT: Versions of all components: