Orange-OpenSource / p4rt-ovs

Programming runtime extensions for Open vSwitch with P4
Apache License 2.0
24 stars 9 forks source link

How to install? #15

Open KekeZheng opened 2 years ago

KekeZheng commented 2 years ago

Hey,friends! How do I install and use p4rt-ovs on ubuntu? I am new to p4rt-ovs and p4c-ubpf,i don't know how to install it,my ubuntu version is 18.04.

KekeZheng commented 2 years ago

When I execute ./configure I get the following error: checking for struct tcf_t.firstuse... yes checking whether dpdk is enabled... yes checking for rte_config.h... no configure: error: unable to find rte_config.h in

it's say unable to find rte_config.h

pchaigno commented 2 years ago

Which installation guide are you following?

KekeZheng commented 2 years ago

https://github.com/p4lang/p4c/blob/main/backends/ubpf/tests/environment/setup-switch.sh The setup-switch.sh file here has some configuration about ovs

https://github.com/Orange-OpenSource/p4rt-ovs/blob/master/Documentation/intro/install/dpdk.rst And there are some tips to install OVS

pchaigno commented 2 years ago

Ok. Was the DPDK installation successful? Did you pass --with-dpdk=... when calling ./configure?

KekeZheng commented 2 years ago

At the beginning, I encountered an error saying that rte_config.h could not be found. But this file exists. It is in the x86_64-native-linuxapp-gcc folder, but it means that it cannot be found. Later, I copied the file to the dpdk19.11 directory and the p4rt-ovs directory, and it can be executed. , but I am a little worried that although it is successful now, there will be other problems when using it later. do you have any good advice?