Re: [vpp-dev] Reg Failure in make pkg-rpm with stable/2206 branch

2022-07-08 Thread Dave Wallace

Hi Archana,

Unfortunately the RPM package builds have been unsupported for several 
years and CentOS CI jobs removed a few releases ago.


Thus you are essentially on your own unless someone else who have been 
building rpm packages locally has any pointers.


Thanks,
-daw-

On 7/1/22 6:32 AM, Archana Sampath wrote:


Hi Team,

I am compiling vpp on centos 7 machine . Gcc version is 9.3.1.
I am facing the below issue when I  issue "make pkg-rpm" .
Kindly advise what needs to be done.

+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
Bytecompiling .py files below 
/data/archana/vpp_code/vpp/build-root/rpmbuild/BUILDROOT/vpp-22.06-release.x86_64/usr/lib/python3.6 
using /usr/bin/python3.6
Compiling 
/data/archana/vpp_code/vpp/build-root/rpmbuild/BUILDROOT/vpp-22.06-release.x86_64/usr/share/vpp/vppapigen_c.py 
...

  File "/usr/share/vpp/vppapigen_c.py", line 1298
    output += f"      return sizeof(*a)"
                                       ^
SyntaxError: invalid syntax

error: Bad exit status from /var/tmp/rpm-tmp.8XvMf6 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.8XvMf6 (%install)
make[1]: *** [Makefile:54: RPM] Error 1
make[1]: Leaving directory '/data/archana/vpp_code/vpp/extras/rpm'
make: *** [Makefile:619: pkg-rpm] Error 2


Thanks & Regards,
Archana




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21639): https://lists.fd.io/g/vpp-dev/message/21639
Mute This Topic: https://lists.fd.io/mt/92105557/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] vpp refuses to use of see/use dpdk interfaces

2022-07-08 Thread Dave Houser
@Rupesh,

Thanks for the info. I am not too familiar with rdma interfaces, well at least 
the way vpp is utilizing them. It seems its polling the interfaces just like 
dpdk. I am also able to see traffic flowing through vpp, however its seems I 
can still interact with the ports via the kernel. This means that the 
interfaces are still being utilized by the kernel yes?

However my test traffic is flowing much more efficiently through the system 
than using just the interfaces with a basic linux kernel set up. I can only 
assume dpdk or rdma or a combination of both are being used properly. Matt was 
a great help and shared this link ( 
https://s3-docs.fd.io/vpp/22.10/developer/devicedrivers/rdma.html?highlight=rdma
 ) to documentation from vpp on rdma, however I would to read more about how 
the RDMA + DPDK system works. Do you have any other literature or documentation 
I can read?

Also, unrelated question, it appears with startup.conf I can set the number of 
rx/tx ques and size, what is the default values for this? Does it use whatever 
ethtool -l and ethtool -g uses? Or do I need to set to maximums for those 
values to apply?

I think its all working now, thanks again to all your help and quick responses 
:)

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21638): https://lists.fd.io/g/vpp-dev/message/21638
Mute This Topic: https://lists.fd.io/mt/92231790/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] vpp refuses to use of see/use dpdk interfaces

2022-07-08 Thread Rupesh Raghuvaran
The device will still be available in linux, it is managed via  ib_uverbs
by dpdk.  Thats why it is required to have ib_uverbs, mlx5_core, mlx5_ib
modules required .

-Rupesh

On Fri, Jul 8, 2022 at 9:37 PM Dave Houser  wrote:

> OK I am not sure what combination got everything to work but the
> interfaces are showing up now in vppctl!
>
> also rdma commands work as well.
>
> I think it was a combination of the following:
>
>1. git clone the repo
>2. edit build/external/packages/dpdk.mk,
>   1. turn the following to "y"
>   (DPDK_MLX4_PMD, DPDK_MLX5_PMD, DPDK_MLX5_COMMON_PMD)
>   2. Set DPDK_MLX_IBV_LINK to static
>3. make make wipe-release;make build-release
>4. make pkg-deb
>5. sudo dpkg -i build-root/*.deb
>6. Create conf file without comments (optinal)
>   1. sudo cp /etc/vpp/startup.conf /etc/vpp/startup.conf.original;
>   cat /etc/vpp/startup.conf | grep -v "^#.*" | grep -v ".*#.*" | awk 'NF' 
> >
>   /etc/vpp/startup.conf
>   2. edit the file and add your dpdk interfaces make sure to add the
>   dpdk section
>7. restart vpp
>
> I suppose the only question I have is how is it possible the dpdk
> interfaces are showing up in vpp?
>
> I ask this as the interfaces I configured in startup.conf are still linked
> to the kernel and up. However they still show up in vpp as interfaces. If I
> deactivate the interfaces, unbind from the kernel, and bind to dpdk, then
> restart vpp, then they dont show up. Is this expected?
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21637): https://lists.fd.io/g/vpp-dev/message/21637
Mute This Topic: https://lists.fd.io/mt/92231790/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] vpp refuses to use of see/use dpdk interfaces

2022-07-08 Thread Dave Houser
OK I am not sure what combination got everything to work but the interfaces are 
showing up now in vppctl!

also rdma commands work as well.

I think it was a combination of the following:

* git clone the repo
* edit build/external/packages/dpdk.mk, * turn the following to "y" 
(DPDK_MLX4_PMD, DPDK_MLX5_PMD, DPDK_MLX5_COMMON_PMD)
* Set DPDK_MLX_IBV_LINK to static

* make make wipe-release;make build-release
* make pkg-deb
* sudo dpkg -i build-root/*.deb
* Create conf file without comments (optinal) * sudo cp /etc/vpp/startup.conf 
/etc/vpp/startup.conf.original; cat /etc/vpp/startup.conf | grep -v "^#.*" | 
grep -v ".*#.*" | awk 'NF' > /etc/vpp/startup.conf
* edit the file and add your dpdk interfaces make sure to add the dpdk section

* restart vpp

I suppose the only question I have is how is it possible the dpdk interfaces 
are showing up in vpp?

I ask this as the interfaces I configured in startup.conf are still linked to 
the kernel and up. However they still show up in vpp as interfaces. If I 
deactivate the interfaces, unbind from the kernel, and bind to dpdk, then 
restart vpp, then they dont show up. Is this expected?

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21636): https://lists.fd.io/g/vpp-dev/message/21636
Mute This Topic: https://lists.fd.io/mt/92231790/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] vpp refuses to use of see/use dpdk interfaces

2022-07-08 Thread Dave Houser
I was able to `mke pkg-dep` and `sudo dpkg -i build-root/*.deb`, however after 
install when running vpp service and checking logs I see the following:

```

$ sudo vpp show logs

mlx5_common: Cannot load glue library: 
/home/ubuntu/vpp/vpp/build-root/install-vpp-native/external/lib/dpdk/pmds-22.1-glue/librte_common_mlx5_glue.so.22.1:
 cannot open shared object file: No such file or directory

mlx5_common: Cannot initialize MLX5 common due to missing run-time dependency 
on rdma-core libraries (libibverbs, libmlx5)

vlib_call_all_config_functions: unknown input `show logs'

```
Its not clear to me from these instructions ( 
https://wiki.fd.io/view/VPP/Build,_install,_and_test_images#Build_A_VPP_Package 
) if I need to do anything after `make build`. Here is the output after make 
build completes

```
-- Configuring done
-- Generating done
-- Build files have been written to: 
/home/ubuntu/vpp/vpp/build-root/build-vpp_debug-native/vpp
 Building vpp in /home/ubuntu/vpp/vpp/build-root/build-vpp_debug-native/vpp 

[2498/2498] Linking C shared library 
lib/x86_64-linux-gnu/vpp_plugins/unittest_plugin.so
 Installing vpp 
[0/1] Install the project...
-- Install configuration: "debug"
make[1]: Leaving directory '/home/ubuntu/vpp/vpp/build-root'
```
Did it install? Do I need to create a deb package instead? Will my dpdk.mk 
changes be used in the `make pkg-deb`

I read this post ( https://lists.fd.io/g/vpp-dev/topic/77247865#17634 ) seems 
other have had the same issue. @Matt you stated

> 
> "Yeah, it seems so. Either build configurations need to be updated to
> install the glue libraries or you might be able to change
> ibverbs_link=dlopen to ibverbs_link=static."
> 

I adjusted build/external/packages/dpdk.mk, DPDK_MLX_IBV_LINK ?=static, then 
ran make pkg-deb, and installed but I get the same error. It seems DPDK is not 
linking, is there any fix for this? I am fine with using RDMA, however my 
previous post shows the commands just dont work.

Any recommendations on next steps?

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21635): https://lists.fd.io/g/vpp-dev/message/21635
Mute This Topic: https://lists.fd.io/mt/92231790/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] vpp refuses to use of see/use dpdk interfaces

2022-07-08 Thread Matthew Smith via lists.fd.io
The command you typed looks like it should be valid, at least with the
current code. I'm not sure what the correct syntax was in 21.10.

If you type 'create int rdma ?' and press enter it should print the help
text which describes what the valid options are.

Is the rdma plugin loaded? If you run 'show plugins' in vppctl, does it
list rdma_plugin.so?

-Matt


On Thu, Jul 7, 2022 at 3:19 PM Dave Houser  wrote:

> On Thu, Jul 7, 2022 at 01:53 PM, Matthew Smith wrote:
>
>
> https://s3-docs.fd.io/vpp/22.10/developer/devicedrivers/rdma.html?highlight=rdma
>
> Thanks Matt,
>
> I unbound the interfaces from dpdk and gave back to the kernel, then
> restart vpp.
> Working through the instructions, however they don't seem to work, or
> maybe not clear to me.
>
> create int rdma host-if enp94s0f0 name rdma-0
>
>
> This returns
> `create interface: unknown input `rdma host-if enp65s0f6 name rd...'`
>
> I wish there was a way to check commands I can use in vppctl (Like
> pressing `?` or tab-tab to see commands I can use based on the semantics I
> am using, but I don't see way to do this)
>
> Dont think I ever shared the version I am running so I am now:
> ```
> vpp# show vers
> vpp v21.10.1-release built by root on 4f6ead0c141f at 2021-11-17T14:25:30
> ```
>
> Am I using the command wrong?
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21634): https://lists.fd.io/g/vpp-dev/message/21634
Mute This Topic: https://lists.fd.io/mt/92231790/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] make install-dep on Ubuntu 18.04 fails

2022-07-08 Thread Dave Houser
Just saw this reply, thanks Matt.

Ok, well I got it working either way, just need to do a `make build` and skip 
`make install-dep`

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21633): https://lists.fd.io/g/vpp-dev/message/21633
Mute This Topic: https://lists.fd.io/mt/92250876/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] make install-dep on Ubuntu 18.04 fails

2022-07-08 Thread Dave Houser
Figured it out. I had clang-11 installed, but the build was using "clang" which 
was linked to clang v6 still on my system.

```

mv /usr/bin/clang /usr/bin/clang-6-old
ln -s /usr/bin/clang-11 /usr/bin/clang
```
Still in the end, make-build-dep fails because of the following on Ubuntu 18.04

```

E: Unable to locate package enchant-2

E: Unable to locate package libffi7

```

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21632): https://lists.fd.io/g/vpp-dev/message/21632
Mute This Topic: https://lists.fd.io/mt/92250876/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] make install-dep on Ubuntu 18.04 fails

2022-07-08 Thread Matthew Smith via lists.fd.io
Hi Dave,

I think make pkg-deb and make install-dep are the correct thing to use. I
haven't seen much maintenance of the vagrant build pieces over the past
couple of years so I don't know if they can be assumed to be working
anymore. The instructions on the wiki page you linked probably need to be
updated.

I don't think Ubuntu 18.04 is tested by the CI anymore, so it may require
some tinkering to make it work correctly. If you're able to build on Ubuntu
20.04 instead, I think you should not have any problems because that
version does get tested by CI.

-Matt


On Fri, Jul 8, 2022 at 9:08 AM Dave Houser  wrote:

> It seems I need to run `./extras/vagrant/build.sh` instead of running
> `make install-dep`. I can see earlier in the process that the same errors
> happen but are ignored and compiling continues. However I ran into a new
> error with clang, how do I get past this?
>
> ```
>
> -- Configuring done
>
> -- Generating done
>
> -- Build files have been written to:
> /home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp
>
>  Building vpp in /home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp
> 
>
> [766/2348] Building C object
> CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o
>
> FAILED: CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o
>
> /usr/bin/clang --target=x86_64-linux-gnu -D_FORTIFY_SOURCE=2
> -I/home/ubuntu/vpp/vpp/src
> -I/home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp/CMakeFiles
> -I/home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp/CMakeFiles/vnet
> -fPIC -g -Werror -Wall -Wno-address-of-packed-member -O3 -fstack-protector
> -fno-common -march=corei7 -mtune=corei7-avx -MD -MT
> CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o -MF
> CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o.d -o
> CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o -c
> /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c
>
> /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error:
> suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
>
>   ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;
>
>  ^
>
>  {}
>
> /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error:
> suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
>
>   ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;
>
>  ^
>
>  {}
>
> /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error:
> suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
>
>   ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;
>
>  ^
>
>  {}
>
> /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error:
> suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
>
>   ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;
>
>  ^
>
>  {}
>
> /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error:
> suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
>
>   ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;
>
>  ^
>
>  {}
>
> /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error:
> suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
>
>   ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;
>
>  ^
>
>  {}
>
> /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error:
> suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
>
>   ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;
>
>  ^
>
>  {}
>
> /home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error:
> suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
>
>   ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;
>
>  ^
>
>  {}
>
> 8 errors generated.
>
> [861/2348] Building C object
> CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/esp_decrypt.c.o
>
> ninja: build stopped: subcommand failed.
>
> Makefile:693: recipe for target 'vpp-build' failed
>
> make[1]: *** [vpp-build] Error 1
>
> make[1]: Leaving directory '/home/ubuntu/vpp/vpp/build-root'
>
> Makefile:604: recipe for target 'pkg-deb' failed
>
> make: *** [pkg-deb] Error 2
> ```
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21631): https://lists.fd.io/g/vpp-dev/message/21631
Mute This Topic: https://lists.fd.io/mt/92250876/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] make install-dep on Ubuntu 18.04 fails

2022-07-08 Thread Dave Houser
It seems I need to run `./extras/vagrant/build.sh` instead of running `make 
install-dep`. I can see earlier in the process that the same errors happen but 
are ignored and compiling continues. However I ran into a new error with clang, 
how do I get past this?

```

-- Configuring done

-- Generating done

-- Build files have been written to: 
/home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp

 Building vpp in /home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp 

[766/2348] Building C object 
CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o

FAILED: CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o

/usr/bin/clang --target=x86_64-linux-gnu -D_FORTIFY_SOURCE=2 
-I/home/ubuntu/vpp/vpp/src 
-I/home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp/CMakeFiles 
-I/home/ubuntu/vpp/vpp/build-root/build-vpp-native/vpp/CMakeFiles/vnet -fPIC -g 
-Werror -Wall -Wno-address-of-packed-member -O3 -fstack-protector -fno-common 
-march=corei7 -mtune=corei7-avx -MD -MT 
CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o -MF 
CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o.d -o 
CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/ipsec_spd_policy.c.o -c 
/home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c

/home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error: suggest 
braces around initialization of subobject [-Werror,-Wmissing-braces]

ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;

^

{}

/home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error: suggest 
braces around initialization of subobject [-Werror,-Wmissing-braces]

ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;

^

{}

/home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error: suggest 
braces around initialization of subobject [-Werror,-Wmissing-braces]

ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;

^

{}

/home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:618:30: error: suggest 
braces around initialization of subobject [-Werror,-Wmissing-braces]

ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;

^

{}

/home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error: suggest 
braces around initialization of subobject [-Werror,-Wmissing-braces]

ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;

^

{}

/home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error: suggest 
braces around initialization of subobject [-Werror,-Wmissing-braces]

ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;

^

{}

/home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error: suggest 
braces around initialization of subobject [-Werror,-Wmissing-braces]

ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;

^

{}

/home/ubuntu/vpp/vpp/src/vnet/ipsec/ipsec_spd_policy.c:698:30: error: suggest 
braces around initialization of subobject [-Werror,-Wmissing-braces]

ipsec_fp_5tuple_t mask = { 0 }, policy_5tuple;

^

{}

8 errors generated.

[861/2348] Building C object 
CMakeFiles/vnet/CMakeFiles/vnet_objs.dir/ipsec/esp_decrypt.c.o

ninja: build stopped: subcommand failed.

Makefile:693: recipe for target 'vpp-build' failed

make[1]: *** [vpp-build] Error 1

make[1]: Leaving directory '/home/ubuntu/vpp/vpp/build-root'

Makefile:604: recipe for target 'pkg-deb' failed

make: *** [pkg-deb] Error 2

```

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21630): https://lists.fd.io/g/vpp-dev/message/21630
Mute This Topic: https://lists.fd.io/mt/92250876/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] make install-dep on Ubuntu 18.04 fails

2022-07-08 Thread Dave Houser
Trying to make a Mellanox supported DPDK package for VPP, I tried running `make 
install-dep` with the latest code from github but I get these errors:

```

$ make install-dep

Hit:2 https://download.docker.com/linux/ubuntu bionic InRelease

Hit:1 https://apt.llvm.org/bionic llvm-toolchain-bionic-11 InRelease

Hit:3 http://repo.zabbix.com/zabbix/5.0/ubuntu bionic InRelease

Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease

Hit:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease

Hit:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease

Hit:7 http://archive.ubuntu.com/ubuntu bionic-security InRelease

Hit:8 https://packagecloud.io/fdio/release/ubuntu bionic InRelease

Reading package lists... Done

Reading package lists... Done

Building dependency tree

Reading state information... Done

E: Unable to locate package enchant-2

E: Unable to locate package libffi7

Makefile:319: recipe for target 'install-dep' failed

make: *** [install-dep] Error 100

```
I manually compiled and installed enchant-2 and libff7 but that did not seem to 
change anything. Seems the above command is trying to download the packages 
with apt source.list but cant find it. Not sure there is a libff7 or enchant-2 
package for Ubuntu 18.04, how should I proceed?

Following instructions here ( 
https://wiki.fd.io/view/VPP/Build,_install,_and_test_images#Build_A_VPP_Package 
)

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21629): https://lists.fd.io/g/vpp-dev/message/21629
Mute This Topic: https://lists.fd.io/mt/92250876/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Load balancer failover feature

2022-07-08 Thread Ali Yaghoobian
Hi all

I am new in vpp and I want to configure a load-balancer to send traffic to
two ASs.
as a functionality it works but I need to have failover feature, when one
of the ASs is down, the load balancer sends all traffic to another AS.

For example:
In the following configuration, when I ping 8.8.8.8, ping 8.8.8.8 is sent
to b.b.b.b as an AS. but when b.b.b.b.b server goes down, the vpp does not
send the ping packets to c.c.c.c.

lb conf ip4-src-address a.a.a.a
lb vip 8.8.8.8/32 encap gre4 new_len 2
lb as 8.8.8.8/32 b.b.b.b.b
lb as 8.8.8.8/32 c.c.c.c.c


Is this feature implemented in vpp load-balancer?
Any help would be appreciated.

Thanks, best regards.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21628): https://lists.fd.io/g/vpp-dev/message/21628
Mute This Topic: https://lists.fd.io/mt/92249814/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-