Hmmm. Thanks Guru for sharing.
What I did, was quite different procedure.
* Test things out
* Download DPDK to /usr/src/dpdk
* Untar package
* export DPDK_TARGET=x86_64-native-linuxapp-gcc
* export DPDK_BUILD=$DPDK_DIR/$DPDK_TARGET
* sudo make install T=$DPDK_TARGET DESTDIR=install
That seemed to work. Now we have a DPDK that is built.
* Download OVS to /usr/src/ovs
* Untar package
* Cd to releasdir and run: ./configure --with-dpdk=$DPDK_BUILD
* sudo make install
Now we have an OVS compiled with DPDK. Yay.
* I loaded vfio kernel module
* I bound the NICs on one of my cards to vfio
* I created an OVS DPDK bridge, and added DPDK NIC to it.
* So, thinking that I was able to get that to work,
Nice. Now let’s build rpms.
* I took the DPDK spec file in /usr/src/dpdk/pkg/dpdk.spec and put it in
/root/rpmbuild/SPECS
* I put the dpdk tgz in /root/rpmbuild/SOURCES
* Then I went to /root/rpmbuild, and ran “rpmbuild -ba dpdk.spec”
* This did *not* work. I got an ld link error.
Hmmm. Maybe I don’t need a DPDK rpm.
What I really need, is an OVS rpm file so that yum doesn’t screw things up when
I put openstack-openvswitch-agent on the box.
* Put OVS spec file /usr/src/ovs/rhel/openvswitch.spec into
/root/rpmbuild/SPECS
* Put OVS tgz file in /root/rpmbuild/SOURCES
* Run rpmbuild -ba openvswitch.spec
* This didn’t even compile
So if I understand the procedure you followed:
1. Build DPDK just like I did above, in /usr/src.
* We know that worked before.
* I will need to do the make directive to build dpdk-devel as well.
* What directive did you use to build the rpms, if you didn’t use this
rpmbuild procedure I was attempting?
2. Go to /usr/src/openvswitch
* Run the boot.sh script
i. I did
not run this script up above – that step was not in the docs I was looking at.
Need to see what that script does and why it is being run
* Run the configure script (again as done up above in my Test Things Out
phase above)
i. You did
not mention the –with-dpdk=$DPDK_BUILD below, but I presume you supplied that?
* Run “make rpm-fedora RPMBUILD_OPT="--with dpdk --without check
--without libcapng --with autoenable"
Do I have this right?
Mark
Regards,
Mark Wittling
NFV Cloud Operations
Cox Communications Inc
CTECH A08-150D
6305-A Peachtree Dunwoody Road, Atlanta GA 30328
1-770-849-9696
From: Guru Shetty <[email protected]>
Sent: Friday, May 15, 2020 2:12 PM
To: Wittling, Mark (CCI-Atlanta) <[email protected]>
Cc: [email protected]
Subject: [EXTERNAL] Re: [ovs-discuss] Building OVS+DPDK with rpmbuild and spec
files
I have recently built OVS DPDK rpms. For e.g., yesterday, I built OVS 2.13 with
DPDK 19.11
The
rhel/openvswitch-fedora.spec.in<https://urldefense.com/v3/__http:/openvswitch-fedora.spec.in/__;!!Hit2Ag!j0U9zeO00sNxzsI9ksV88Ly9SspmBzZb1mZk2c1W-2TTP9SRFcVG3O9y0h1MIFbhDA$>
should have everything you need.
You need to first build dpdk devel and dpdk rpms from DPDK. And then install
those rpms. And then:
./boot.sh
./configure
make rpm-fedora RPMBUILD_OPT="--with dpdk --without check --without libcapng
--with autoenable"
On Wed, 13 May 2020 at 06:28, Wittling, Mark (CCI-Atlanta)
<[email protected]<mailto:[email protected]>> wrote:
Does anyone have any experience with this?
I was able to “build by hand” and get these working, but the problem is that if
you don’t have an rpm, OpenStack will install OVS packages on top of what
you’ve built.
So I need to build rpms, so that once I get this working, I can proceed to
install OpenStack.
I got a link error on the final stage of the rpmbuild using the spec file on
OpenStack.
Versions I am using are DPDK 17.11.10 and OVS 2.10.2
Mark
Regards,
Mark Wittling
NFV Cloud Operations
Cox Communications Inc
CTECH A08-150D
6305-A Peachtree Dunwoody Road, Atlanta GA 30328
1-770-849-9696
_______________________________________________
discuss mailing list
[email protected]<mailto:[email protected]>
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss<https://urldefense.com/v3/__https:/mail.openvswitch.org/mailman/listinfo/ovs-discuss__;!!Hit2Ag!j0U9zeO00sNxzsI9ksV88Ly9SspmBzZb1mZk2c1W-2TTP9SRFcVG3O9y0h340WTo4w$>
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss