Hello Lukasz,

I am sorry I won't be able to look in details into your problem this week, but 
I can still quickly dump some information.

netlink and router plugin are really maintained. It is not surprising that they 
do not compile without at bit of effort.
Commits are very welcome though, as I know that VPP integration into Linux is 
of interest to many people.

My guess is that netlink should just need some changes in the way it is 
compiled, and that's all.
router on the other way... I think it hasn't been updated since last FIB change 
in VPP, and will therefore probably need a little bit of work to compile and 
function properly.

Thanks,

- Pierre

Le 24 mars 2017 à 19:38, Łukasz Chrustek 
<ski...@tlen.pl<mailto:ski...@tlen.pl>> a écrit :

Hi,

I'm trying to compile vpp from git sources (git clone 
https://gerrit.fd.io/r/vpp) + router plugin (also from git, but for vppsb: git 
clone https://gerrit.fd.io/r/vppsb). Compilation of vpp is working, but I would 
like to test tap inject from router plugin from vppsb (vpp sandbox). 
Compilation procedure from router/README.mk in vppsb directory doesn't work:

<quote>
## Build/Install

The router is implemented as a plugin to inject, e.g. arp, icmp4, traffic
from data plane devices. To use it, you must build the plugin and put it
in VPPs runtime plugin directory. The plugin depends on vpp and the netlink
repository from the vppsb project. This README assumes familiarity with the
build environment for both projects.

Build vpp, netlink, and router all at once by creating symbolic links in the
top level vpp directory to the netlink and router directories as well as
symbolic links to the respective .mk files in 'build-data/packages'.

```
$ cd /git/vpp
$ ln -sf /git/vppsb/netlink
$ ln -sf /git/vppsb/router
$ ln -sf ../../netlink/netlink.mk build-data/packages/
$ ln -sf ../../router/router.mk build-data/packages/
```

Now build everything and create a link to the plugin in vpp's plugin path.

```
$ cd build-root
$ ./bootstrap.sh
$ make V=0 PLATFORM=vpp TAG=vpp_debug router-install
$ ln -sf 
/git/vpp/build-root/install-vpp_debug-native/router/lib64/router.so.0.0.0 \
        /usr/lib/vpp_plugins/router.so
```

Once VPP is running and the plugin is loaded, data plane interfaces can
be tapped.

```
$ vppctl tap inject arp,icmp4 from TenGigabitEthernet2/0/0 as vpp0
```

</quote>

Regards
Luk


        Luk,

Are you installing the vpp-dev (or vpp-devel if Centos) package?
I would imagine you'd need that for headers etc.

Ed

On Fri, Mar 24, 2017 at 8:14 AM, Łukasz Chrustek 
<luk...@chrustek.net<mailto:luk...@chrustek.net>> wrote:

        Hi Dave,

but this plugin isn't part of core vpp code tree, it is from vppsb.

Regards
Luk
> Dear Luk,

> The "vpp-install," "install-packags," "install-deb" etc. targets
> will build the set of plugins configured in 
> src/configure.ac<http://configure.ac/>:

> For example:

> $ cd build-root
> $ make PLATFORM=vpp TAG=vpp vpp-install

> HTH. Dave

> -----Original Message-----
> From: vpp-dev-boun...@lists.fd.io<mailto:vpp-dev-boun...@lists.fd.io>
> [mailto:vpp-dev-boun...@lists.fd.io<mailto:vpp-dev-boun...@lists.fd.io>] On 
> Behalf Of Lukasz Chrustek
> Sent: Friday, March 24, 2017 4:55 AM
> To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
> Subject: [vpp-dev] Building router plugin

> Hi,

> Can You advice what is the proper way for building router plugin now ?

> I'm trying to build this plugin as stated in README, but I get:

> # ./bootstrap.sh

> Saving PATH settings in /git/vpp/build-root/path_setup
> Source this file later, as needed
> Compile native tools
> @@@@ Arch for platform 'native' is native @@@@
> @@@@ Finding source for tools @@@@
> @@@@ Makefile fragment found in
> /git/vpp/build-root/packages/tools.mk<http://tools.mk/> @@@@
> @@@@ Source found in /git/vpp/src @@@@
> @@@@ Configuring tools: nothing to do @@@@
> @@@@ Building tools: nothing to do @@@@
> @@@@ Installing tools: nothing to do @@@@

> # make V=0 PLATFORM=vpp TAG=vpp_debug router-install
> @@@@ Arch for platform 'vpp' is native @@@@
> @@@@ Finding source for vppinfra @@@@
> @@@@ Package vppinfra not found with path /git/vpp @@@@
> Makefile:780: recipe for target 'vppinfra-find-source' failed
> make: *** [vppinfra-find-source] Error 1

> compilation  of  vpp is working fine, but not from /git/vpp/build-root
> but from /git/vpp.

> Regards
> Luk

> _______________________________________________
> vpp-dev mailing list
> vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
> https://lists.fd.io/mailman/listinfo/vpp-dev



--
Pozdrawiam,
Łukasz Chrustek

_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
https://lists.fd.io/mailman/listinfo/vpp-dev




--
Pozdrowienia,
Łukasz Chrustek
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
https://lists.fd.io/mailman/listinfo/vpp-dev

_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to