[vpp-dev] Solved : Failed to start vpp.service: Unit vpp.service not found

2018-02-27 Thread Avi Cohen (A)

Solved after building and installing debian deb files 
> -Original Message-
> From: Avi Cohen (A)
> Sent: Monday, 26 February, 2018 7:09 PM
> To: vpp-dev@lists.fd.io
> Subject: Failed to start vpp.service: Unit vpp.service not found
> 
> Hi
> I've installed and build VPP on a debian VM When I try to start vpp - service 
> vpp
> start, I get this error msg:
> 
> "Failed to start vpp.service: Unit vpp.service not found"
> 
> Who can assist ?
> Best Regards
> Avi

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8339): https://lists.fd.io/g/vpp-dev/message/8339
View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/13094984
Mute This Topic: https://lists.fd.io/mt/13094984/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Developing application on top of VPP

2018-02-27 Thread Shashi Kant Singh
Hi

There is a need to port AI kind of application on top of VPP. This could > 20k 
lines of code with fair complexity.
Would it make sense to put this as plugin in VPP or have an independent 
application and connect to VPP using VCL?
Does it mean that AI app need to be broken down in 10 of nodes if plugin is the 
option?

Performance required from AI app is like that of a typical data path.

Regards
Shashi




Re: [vpp-dev] Developing application on top of VPP

2018-02-27 Thread Ray Kinsella


Would be good if you could provide some additional information.

What kind of application is it - UDP/TCP/RAW socket based?
How is it typically deployed - Cloud Based, Virtualized Appliance or 
Discrete Appliance?


Ray K

On 27/02/2018 08:21, Shashi Kant Singh wrote:

Hi

There is a need to port AI kind of application on top of VPP. This could 
 > 20k lines of code with fair complexity.


Would it make sense to put this as plugin in VPP or have an independent 
application and connect to VPP using VCL?


Does it mean that AI app need to be broken down in 10 of nodes if plugin 
is the option?


Performance required from AI app is like that of a typical data path.

Regards

Shashi




-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8341): https://lists.fd.io/g/vpp-dev/message/8341
View All Messages In Topic (2): https://lists.fd.io/g/vpp-dev/topic/13095162
Mute This Topic: https://lists.fd.io/mt/13095162/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] Developing application on top of VPP

2018-02-27 Thread Shashi Kant Singh
Inline...


-Original Message-
From: Ray Kinsella [mailto:m...@ashroe.eu] 
Sent: 27 February 2018 17:20
To: Shashi Kant Singh; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Developing application on top of VPP


Would be good if you could provide some additional information.

What kind of application is it - UDP/TCP/RAW socket based?
SKS: Would be a mix of UDP/GTP and TCP/SCTP. UDP/GTP over IPSEC.

How is it typically deployed - Cloud Based, Virtualized Appliance or Discrete 
Appliance?
SKS: Cloud Based in a VM.


Ray K

On 27/02/2018 08:21, Shashi Kant Singh wrote:
> Hi
> 
> There is a need to port AI kind of application on top of VPP. This 
> could  > 20k lines of code with fair complexity.
> 
> Would it make sense to put this as plugin in VPP or have an 
> independent application and connect to VPP using VCL?
> 
> Does it mean that AI app need to be broken down in 10 of nodes if 
> plugin is the option?
> 
> Performance required from AI app is like that of a typical data path.
> 
> Regards
> 
> Shashi
> 
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8342): https://lists.fd.io/g/vpp-dev/message/8342
View All Messages In Topic (3): https://lists.fd.io/g/vpp-dev/topic/13095162
Mute This Topic: https://lists.fd.io/mt/13095162/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Cannot run vpp after VM restart

2018-02-27 Thread Avi Cohen (A)
Hi,
I have vpp running on my VM.
After VM restart - vpp is not running and I cannot start vpp

root@amhost1:/home/avi/vpp# service vpp start
I get this error
root@amhost1:/home/avi/vpp# vppctl 
clib_socket_init: connect (fd 3, '/run/vpp/cli.sock'): No such file or directory
root@amhost1:/home/avi/vpp# 
root@amhost1:/home/avi/vpp# service vpp status
● vpp.service - vector packet processing engine
   Loaded: loaded (/lib/systemd/system/vpp.service; enabled; vendor preset: 
enabled)
   Active: failed (Result: start-limit-hit) since Tue 2018-02-27 07:18:22 EST; 
13min ago
  Process: 19020 ExecStopPost=/bin/rm -f /dev/shm/db /dev/shm/global_vm 
/dev/shm/vpe-api (code=exited, status=0/SUCCESS)
  Process: 19017 ExecStart=/usr/bin/vpp -c /etc/vpp/startup.conf (code=exited, 
status=0/SUCCESS)
  Process: 19014 ExecStartPre=/sbin/modprobe uio_pci_generic (code=exited, 
status=0/SUCCESS)
  Process: 19012 ExecStartPre=/bin/rm -f /dev/shm/db /dev/shm/global_vm 
/dev/shm/vpe-api (code=exited, status=0/SUCCESS)
 Main PID: 19017 (code=exited, status=0/SUCCESS)

Feb 27 07:18:22 amhost1 systemd[1]: vpp.service: Service hold-off time over, 
scheduling restart.
Feb 27 07:18:22 amhost1 systemd[1]: Stopped vector packet processing engine.
Feb 27 07:18:22 amhost1 systemd[1]: vpp.service: Start request repeated too 
quickly.
Feb 27 07:18:22 amhost1 systemd[1]: Failed to start vector packet processing 
engine.
Feb 27 07:18:22 amhost1 systemd[1]: vpp.service: Unit entered failed state.
Feb 27 07:18:22 amhost1 systemd[1]: vpp.service: Failed with result 
'start-limit-hit'.

Who can assit ?
Best Regards
Avi


-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8343): https://lists.fd.io/g/vpp-dev/message/8343
View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/13121611
Mute This Topic: https://lists.fd.io/mt/13121611/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Solved: Cannot run vpp after VM restart

2018-02-27 Thread Avi Cohen (A)
OK - solved -  the problem was with another (cloned) VM
When I shut it down - I can runn vpp on t he 1st machine
Regards
Avi

> -Original Message-
> From: Avi Cohen (A)
> Sent: Tuesday, 27 February, 2018 2:38 PM
> To: 'vpp-dev@lists.fd.io'
> Subject: Cannot run vpp after VM restart
> 
> Hi,
> I have vpp running on my VM.
> After VM restart - vpp is not running and I cannot start vpp
> 
> root@amhost1:/home/avi/vpp# service vpp start I get this error
> root@amhost1:/home/avi/vpp# vppctl
> clib_socket_init: connect (fd 3, '/run/vpp/cli.sock'): No such file or 
> directory
> root@amhost1:/home/avi/vpp# root@amhost1:/home/avi/vpp# service vpp
> status ● vpp.service - vector packet processing engine
>Loaded: loaded (/lib/systemd/system/vpp.service; enabled; vendor preset:
> enabled)
>Active: failed (Result: start-limit-hit) since Tue 2018-02-27 07:18:22 EST;
> 13min ago
>   Process: 19020 ExecStopPost=/bin/rm -f /dev/shm/db /dev/shm/global_vm
> /dev/shm/vpe-api (code=exited, status=0/SUCCESS)
>   Process: 19017 ExecStart=/usr/bin/vpp -c /etc/vpp/startup.conf (code=exited,
> status=0/SUCCESS)
>   Process: 19014 ExecStartPre=/sbin/modprobe uio_pci_generic (code=exited,
> status=0/SUCCESS)
>   Process: 19012 ExecStartPre=/bin/rm -f /dev/shm/db /dev/shm/global_vm
> /dev/shm/vpe-api (code=exited, status=0/SUCCESS)  Main PID: 19017
> (code=exited, status=0/SUCCESS)
> 
> Feb 27 07:18:22 amhost1 systemd[1]: vpp.service: Service hold-off time over,
> scheduling restart.
> Feb 27 07:18:22 amhost1 systemd[1]: Stopped vector packet processing engine.
> Feb 27 07:18:22 amhost1 systemd[1]: vpp.service: Start request repeated too
> quickly.
> Feb 27 07:18:22 amhost1 systemd[1]: Failed to start vector packet processing
> engine.
> Feb 27 07:18:22 amhost1 systemd[1]: vpp.service: Unit entered failed state.
> Feb 27 07:18:22 amhost1 systemd[1]: vpp.service: Failed with result 
> 'start-limit-
> hit'.
> 
> Who can assit ?
> Best Regards
> Avi


-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8344): https://lists.fd.io/g/vpp-dev/message/8344
View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/13121751
Mute This Topic: https://lists.fd.io/mt/13121751/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] stats mess

2018-02-27 Thread Klement Sekera
Hi,

While doing some testing I noticed that vpp ends in a strange state when doing 
a specific stats dance:

1. want_interface_simple_stats
2. disconnect
3. connect
4. want_stats
5. disconnect
6. connect
7. want_interface_simple_stats

Now what happens is that vpp sends combined interface counters, though only 
simple were requested. It seems that using ~0 as item in various stats 
registration contexts, while reusing code for simple/combined counters doesn't 
play well if combined. If after 5.) you put a breakpoint on 
do_combined_interface_counters(), you'll see that it's called regularly even 
though the client is gone now...

This was seen with VAPI unit test and doing an explicit want_stats with 
enable_disable=0 workarounds the issue. I've added such fix, but I still think 
this should be fixed.

Regards,
Klement

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8345): https://lists.fd.io/g/vpp-dev/message/8345
View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/13127198
Mute This Topic: https://lists.fd.io/mt/13127198/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] Build failed on latest vpp code on ARM VM.

2018-02-27 Thread via Lists.Fd.Io
 
Hi,
This Fix didn't seem to work,
Code path : Gerrit Code Review


| 
| 
|  | 
Gerrit Code Review


 |

 |

 |




Logs : /home/csit/vpp/build-data/../src/vpp/vnet/main.c:21:29: fatal error: 
vpp/app/version.h: No such file or directory
compilation terminated.
Makefile:6946: recipe for target 'vpp/vnet/bin_vpp-main.o' failed
make[5]: *** [vpp/vnet/bin_vpp-main.o] Error 1
make[5]: *** Waiting for unfinished jobs
make[5]: Leaving directory '/home/csit/vpp/build-root/build-vpp-native/vpp'
Makefile:7927: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/csit/vpp/build-root/build-vpp-native/vpp'
Makefile:4054: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/csit/vpp/build-root/build-vpp-native/vpp'
Makefile:686: recipe for target 'vpp-build' failed
make[2]: *** [vpp-build] Error 2
make[2]: Leaving directory '/home/csit/vpp/build-root'
/home/csit/vpp/build-data/platforms.mk:20: recipe for target 'install-deb' 
failed
make[1]: *** [install-deb] Error 1
make[1]: Leaving directory '/home/csit/vpp/build-root'
Makefile:462: recipe for target 'pkg-deb' failed
make: *** [pkg-deb] Error 2
csit@dut1:~/vpp$ cd build-root/
csit@dut1:~/vpp/build-root$ ll


On Monday 26 February 2018, 10:36:52 PM IST, Gabriel Ganne 
 wrote:
 
 #yiv0945382855 #yiv0945382855 -- P 
{margin-top:0;margin-bottom:0;}#yiv0945382855 
See: https://gerrit.fd.io/r/c/10788/





--


Gabriel Ganne

From: vpp-dev@lists.fd.io  on behalf of via Lists.Fd.Io 

Sent: Monday, February 26, 2018 11:00:36 AM
To: vpp-dev@lists.fd.io
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Build failed on latest vpp code on ARM VM. The same is 
Passing on x86 Env.

On Monday 26 February 2018, 2:46:28 PM IST, adarsh m  
wrote:

Hi,
Building latest VPP code is failing,
Logs: 
WARNING:vppapigen:oam_event missing reply message (oam_event_reply)
make  all-recursive
make[4]: Entering directory '/home/csit/vpp/build-root/build-vpp-native/vpp'
Making all in .
make[5]: Entering directory '/home/csit/vpp/build-root/build-vpp-native/vpp'
  CC   vppinfra/maplog.lo
  CC   vppinfra/socket.lo
  CC   vppinfra/timer.lo
  CC   vppinfra/unix-formats.lo
  CC   vppinfra/unix-misc.lo
  CC   vlib/main.lo
  CC   vlib/mc.lo
  CC   vlib/node.lo
  CC   vlib/node_cli.lo
  CC   vlib/node_format.lo
  CC   vlib/threads.lo
  CC   vlib/threads_cli.lo
  CC   vlib/trace.lo
  CC   vnet/handoff.lo
  CC   vnet/interface.lo
  CC   vnet/interface_api.lo
In file included from /home/csit/vpp/build-data/../src/vnet/ip/ip.h:66:0,
 from /home/csit/vpp/build-data/../src/vnet/fib/fib_entry.h:22,
 from /home/csit/vpp/build-data/../src/vnet/fib/ip6_fib.h:21,
 from /home/csit/vpp/build-data/../src/vnet/interface.c:42:
/home/csit/vpp/build-data/../src/vnet/classify/vnet_classify.h: In function 
‘vnet_classify_find_entry_inline’:
/home/csit/vpp/build-data/../src/vnet/classify/vnet_classify.h:442:8: error: 
implicit declaration of function ‘u32x4_zero_byte_mask’ 
[-Werror=implicit-function-declaration]
    if (u32x4_zero_byte_mask (result.as_u32x4) == 0x)
    ^
cc1: all warnings being treated as errors
Makefile:6931: recipe for target 'vnet/interface.lo' failed
make[5]: *** [vnet/interface.lo] Error 1
make[5]: *** Waiting for unfinished jobs
In file included from /home/csit/vpp/build-data/../src/vnet/ip/ip.h:66:0,
 from /home/csit/vpp/build-data/../src/vnet/interface_api.c:26:
/home/csit/vpp/build-data/../src/vnet/classify/vnet_classify.h: In function 
‘vnet_classify_find_entry_inline’:
/home/csit/vpp/build-data/../src/vnet/classify/vnet_classify.h:442:8: error: 
implicit declaration of function ‘u32x4_zero_byte_mask’ 
[-Werror=implicit-function-declaration]
    if (u32x4_zero_byte_mask (result.as_u32x4) == 0x)
    ^
cc1: all warnings being treated as errors
Makefile:6931: recipe for target 'vnet/interface_api.lo' failed
make[5]: *** [vnet/interface_api.lo] Error 1
make[5]: Leaving directory '/home/csit/vpp/build-root/build-vpp-native/vpp'
Makefile:7927: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/csit/vpp/build-root/build-vpp-native/vpp'
Makefile:4054: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/csit/vpp/build-root/build-vpp-native/vpp'
Makefile:686: recipe for target 'vpp-build' failed
make[2]: *** [vpp-build] Error 2
make[2]: Leaving directory '/home/csit/vpp/build-root'
/home/csit/vpp/build-data/platforms.mk:20: recipe for target 'install-deb' 
failed
make[1]: *** [install-deb] Error 1
make[1]: Leaving directory '/home/csit/vpp/build-root'
Makefile:462: recipe for target 'pkg-deb' failed
make: *** [pkg-deb] Error 2
csit@dut1:~/vpp$ cd build-root/





Re: [vpp-dev] Build failed on latest vpp code on ARM VM.

2018-02-27 Thread via Lists.Fd.Io
 Hi,
When i tried the code from the gerit link you provided it failed for me but now 
that this is merged i took from the master and it seems to work  and vpp is up. 
:)

Thanks,Regards,Adarsh M.
On Tuesday 27 February 2018, 1:25:04 PM IST, Gabriel Ganne 
 wrote:
 
 #yiv2659426970 #yiv2659426970 -- P 
{margin-top:0;margin-bottom:0;}#yiv2659426970 
I do not see this second issue.

This might be specific to the deb packaging.


Please try build or build-release targets first.




--


Gabriel Ganne

From: adarsh m 
Sent: Tuesday, February 27, 2018 6:02:57 AM
To: vpp-dev@lists.fd.io; Gabriel Ganne
Cc: lukai (D); Appana Prasad
Subject: Re: [vpp-dev] Build failed on latest vpp code on ARM VM. 
Hi,
This Fix didn't seem to work,
Code path : Gerrit Code Review


| 
| 
|  | 
Gerrit Code Review


 |

 |

 |




Logs : /home/csit/vpp/build-data/../src/vpp/vnet/main.c:21:29: fatal error: 
vpp/app/version.h: No such file or directory
compilation terminated.
Makefile:6946: recipe for target 'vpp/vnet/bin_vpp-main.o' failed
make[5]: *** [vpp/vnet/bin_vpp-main.o] Error 1
make[5]: *** Waiting for unfinished jobs
make[5]: Leaving directory '/home/csit/vpp/build-root/build-vpp-native/vpp'
Makefile:7927: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/csit/vpp/build-root/build-vpp-native/vpp'
Makefile:4054: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/csit/vpp/build-root/build-vpp-native/vpp'
Makefile:686: recipe for target 'vpp-build' failed
make[2]: *** [vpp-build] Error 2
make[2]: Leaving directory '/home/csit/vpp/build-root'
/home/csit/vpp/build-data/platforms.mk:20: recipe for target 'install-deb' 
failed
make[1]: *** [install-deb] Error 1
make[1]: Leaving directory '/home/csit/vpp/build-root'
Makefile:462: recipe for target 'pkg-deb' failed
make: *** [pkg-deb] Error 2
csit@dut1:~/vpp$ cd build-root/
csit@dut1:~/vpp/build-root$ ll


On Monday 26 February 2018, 10:36:52 PM IST, Gabriel Ganne 
 wrote:

#yiv2659426970 #yiv2659426970 --#yiv2659426970x_yiv0945382855 
#yiv2659426970x_yiv0945382855 -- p 
{margin-top:0;margin-bottom:0;}#yiv2659426970 
See: https://gerrit.fd.io/r/c/10788/





--


Gabriel Ganne

From: vpp-dev@lists.fd.io  on behalf of via Lists.Fd.Io 

Sent: Monday, February 26, 2018 11:00:36 AM
To: vpp-dev@lists.fd.io
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Build failed on latest vpp code on ARM VM. The same is 
Passing on x86 Env.

On Monday 26 February 2018, 2:46:28 PM IST, adarsh m  
wrote:

Hi,
Building latest VPP code is failing,
Logs: 
WARNING:vppapigen:oam_event missing reply message (oam_event_reply)
make  all-recursive
make[4]: Entering directory '/home/csit/vpp/build-root/build-vpp-native/vpp'
Making all in .
make[5]: Entering directory '/home/csit/vpp/build-root/build-vpp-native/vpp'
  CC   vppinfra/maplog.lo
  CC   vppinfra/socket.lo
  CC   vppinfra/timer.lo
  CC   vppinfra/unix-formats.lo
  CC   vppinfra/unix-misc.lo
  CC   vlib/main.lo
  CC   vlib/mc.lo
  CC   vlib/node.lo
  CC   vlib/node_cli.lo
  CC   vlib/node_format.lo
  CC   vlib/threads.lo
  CC   vlib/threads_cli.lo
  CC   vlib/trace.lo
  CC   vnet/handoff.lo
  CC   vnet/interface.lo
  CC   vnet/interface_api.lo
In file included from /home/csit/vpp/build-data/../src/vnet/ip/ip.h:66:0,
 from /home/csit/vpp/build-data/../src/vnet/fib/fib_entry.h:22,
 from /home/csit/vpp/build-data/../src/vnet/fib/ip6_fib.h:21,
 from /home/csit/vpp/build-data/../src/vnet/interface.c:42:
/home/csit/vpp/build-data/../src/vnet/classify/vnet_classify.h: In function 
‘vnet_classify_find_entry_inline’:
/home/csit/vpp/build-data/../src/vnet/classify/vnet_classify.h:442:8: error: 
implicit declaration of function ‘u32x4_zero_byte_mask’ 
[-Werror=implicit-function-declaration]
    if (u32x4_zero_byte_mask (result.as_u32x4) == 0x)
    ^
cc1: all warnings being treated as errors
Makefile:6931: recipe for target 'vnet/interface.lo' failed
make[5]: *** [vnet/interface.lo] Error 1
make[5]: *** Waiting for unfinished jobs
In file included from /home/csit/vpp/build-data/../src/vnet/ip/ip.h:66:0,
 from /home/csit/vpp/build-data/../src/vnet/interface_api.c:26:
/home/csit/vpp/build-data/../src/vnet/classify/vnet_classify.h: In function 
‘vnet_classify_find_entry_inline’:
/home/csit/vpp/build-data/../src/vnet/classify/vnet_classify.h:442:8: error: 
implicit declaration of function ‘u32x4_zero_byte_mask’ 
[-Werror=implicit-function-declaration]
    if (u32x4_zero_byte_mask (result.as_u32x4) == 0x)
    ^
cc1: all warnings being treated as errors
Makefile:6931: recipe for target 'vnet/interface_api.lo' failed
make[5]: *** [vnet/interface_api.lo] Error 1
make[5]: Leaving directory '/home/csit/vpp/build-root/build-vpp-native/vpp'
Makefile:7927: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Err

Re: [vpp-dev] Error when trying to add interface to vpp on ARM server.

2018-02-27 Thread via Lists.Fd.Io
 
Hi John,
I have Downgraded Qemu and Libvirt to atleast make VM UP.
ubuntu@ubuntu:~$ virsh -c qemu:///system version --daemon
setlocale: No such file or directory
Compiled against library: libvirt 1.3.1
Using library: libvirt 1.3.1
Using API: QEMU 1.3.1
Running hypervisor: QEMU 2.5.0
Running against daemon: 1.3.1

ubuntu@ubuntu:~$ 

Commented "nodaemon" and added "interactive" in startup.conf but gid vpp were 
in 2 places unix and api-segment.
When only in unix its commented then vpp starts but interface does'nt come up 
And when i comment either in api-segment or both then vpp will fail to start,
I am attaching both the Logs below, pls go through and let us know about this 
issue.
--
Also using Qemu and Libvirt to latest is failing to bring up VM itself.
I am using Latest Qemu 2.11 and since i am using Virsh i updated Libvirt to 
latest 3.6.0 (Ubuntu 16.04)ubuntu@ubuntu:~$  virsh -c qemu:///system version 
--daemon
setlocale: No such file or directory
Compiled against library: libvirt 3.6.0
Using library: libvirt 3.6.0
Using API: QEMU 3.6.0
Running hypervisor: QEMU 2.10.1
Running against daemon: 3.6.0

Both versions were ideally not having an official release for ubuntu 16.04.


But when i try and do virsh-install it'll get stuck after boot maybe crash same 
as gabriel.Logs :
EFI stub: Booting Linux Kernel...
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services and installing virtual address map...


Virsh command : sudo virt-install --name dut2 --ram 4096 --disk 
path=dut2.img,size=30 --vcpus 2 --os-type linux --os-variant generic --cdrom 
'./ubuntu-16.04.3-server-arm64.iso' --network default


On Thursday 22 February 2018, 6:49:54 PM IST, John DeNisco 
 wrote:
 
 #yiv9288340762 #yiv9288340762 -- _filtered #yiv9288340762 
{font-family:Helvetica;panose-1:0 0 0 0 0 0 0 0 0 0;} _filtered #yiv9288340762 
{panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv9288340762 
{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv9288340762 
{panose-1:2 0 5 3 0 0 0 2 0 4;} _filtered #yiv9288340762 
{font-family:Consolas;panose-1:2 11 6 9 2 2 4 3 2 4;}#yiv9288340762 
#yiv9288340762 p.yiv9288340762MsoNormal, #yiv9288340762 
li.yiv9288340762MsoNormal, #yiv9288340762 div.yiv9288340762MsoNormal 
{margin:0in;margin-bottom:.0001pt;font-size:11.0pt;}#yiv9288340762 a:link, 
#yiv9288340762 span.yiv9288340762MsoHyperlink 
{color:blue;text-decoration:underline;}#yiv9288340762 a:visited, #yiv9288340762 
span.yiv9288340762MsoHyperlinkFollowed 
{color:purple;text-decoration:underline;}#yiv9288340762 pre 
{margin:0in;margin-bottom:.0001pt;font-size:10.0pt;}#yiv9288340762 
p.yiv9288340762msonormal0, #yiv9288340762 li.yiv9288340762msonormal0, 
#yiv9288340762 div.yiv9288340762msonormal0 
{margin-right:0in;margin-left:0in;font-size:11.0pt;}#yiv9288340762 
span.yiv9288340762HTMLPreformattedChar {}#yiv9288340762 
span.yiv9288340762EmailStyle20 {color:windowtext;}#yiv9288340762 
.yiv9288340762MsoChpDefault {font-size:10.0pt;} _filtered #yiv9288340762 
{margin:1.0in 1.0in 1.0in 1.0in;}#yiv9288340762 div.yiv9288340762WordSection1 
{}#yiv9288340762 
Hi Adarsh,
 
  
 
Would you be able to try the following?
 
  
 
In startup config for now, could you add the following change in the unix 
section of the vpp startup.
 
  
 
  # nodaemon
 
  interactive
 
  
 
Also, I see you have the line gid vpp. I am not sure what that does. Most of 
the configs I see do not have that. You could try removing that line.
 
  
 
Then run VPP manually like this so we might get more error information.
 
  
 
# cat /proc/meminfo – Be sure you still have some hugepages, sometimes if dpdk 
crashes it doesn’t return them.
 
# service vpp stop
 
# ps -eaf | grep vpp – Make sure there are no other VPP processes still running
 
# /usr/bin/vpp -c /etc/vpp/startup.conf
 
  
 
Then send us the results from the entire startup.
 
  
 
Thanks,
 
  
 
John
 
  
 
  
 
From:  on behalf of adarsh m via vpp-dev 

Reply-To: adarsh m 
Date: Thursday, February 1, 2018 at 8:43 AM
To: "Damjan Marion (damarion)" , adarsh m via vpp-dev 

Subject: Re: [vpp-dev] Error when trying to add interface to vpp on ARM server.
 
  
 
Hi,
 
  
 
After removing socket-mem now vpp is stable but when we try to connect through 
CLI connection is refused.
 
  
 
  
 
ubuntu@vasily:~$ sudo service vpp status
● vpp.service - vector packet processing engine
   Loaded: loaded (/lib/systemd/system/vpp.service; enabled; vendor preset: 
enabled)
   Active: active (running) since Thu 2018-02-01 21:42:23 CST; 1s ago
  Process: 49787 ExecStopPost=/bin/rm -f /dev/shm/db /dev/shm/global_vm 
/dev/shm/vpe-api (code=exited, status=0/SUCCESS)
  Process: 49793 ExecStartPre=/sbin/modprobe uio_pci_generic (code=exited, 
status=0/SUCCESS)
  Process: 49790 ExecStartPre=/bin/rm -f /dev/shm/db /dev/sh

Re: [vpp-dev] Error when trying to add interface to vpp on ARM server.

2018-02-27 Thread John DeNisco

Can you do the same, but as root.

sudo /usr/bin/vpp -c /etc/vpp/startup.conf

Also, gid vpp can be in the api-segment.

I have attached my startup.conf for reference. You don’t need the dpdk section.



From: adarsh m 
Date: Tuesday, February 27, 2018 at 5:11 AM
To: "vpp-dev@lists.fd.io" , John DeNisco 

Cc: Appana Prasad , "lukai (D)" , "Damjan 
Marion (damarion)" 
Subject: Re: [vpp-dev] Error when trying to add interface to vpp on ARM server.


Hi John,

I have Downgraded Qemu and Libvirt to atleast make VM UP.

ubuntu@ubuntu:~$ virsh -c qemu:///system version --daemon
setlocale: No such file or directory
Compiled against library: libvirt 1.3.1
Using library: libvirt 1.3.1
Using API: QEMU 1.3.1
Running hypervisor: QEMU 2.5.0
Running against daemon: 1.3.1

ubuntu@ubuntu:~$
Commented "nodaemon" and added "interactive" in startup.conf but gid vpp were 
in 2 places unix and api-segment.

When only in unix its commented then vpp starts but interface does'nt come up

And when i comment either in api-segment or both then vpp will fail to start,

I am attaching both the Logs below, pls go through and let us know about this 
issue.

--
Also using Qemu and Libvirt to latest is failing to bring up VM itself.

I am using Latest Qemu 2.11 and since i am using Virsh i updated Libvirt to 
latest 3.6.0 (Ubuntu 16.04)
ubuntu@ubuntu:~$  virsh -c qemu:///system version --daemon
setlocale: No such file or directory
Compiled against library: libvirt 3.6.0
Using library: libvirt 3.6.0
Using API: QEMU 3.6.0
Running hypervisor: QEMU 2.10.1
Running against daemon: 3.6.0
Both versions were ideally not having an official release for ubuntu 16.04.


But when i try and do virsh-install it'll get stuck after boot maybe crash same 
as gabriel.
Logs :
EFI stub: Booting Linux Kernel...
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services and installing virtual address map...


Virsh command :
sudo virt-install --name dut2 --ram 4096 --disk path=dut2.img,size=30 --vcpus 2 
--os-type linux --os-variant generic --cdrom 
'./ubuntu-16.04.3-server-arm64.iso' --network default


On Thursday 22 February 2018, 6:49:54 PM IST, John DeNisco  
wrote:



Hi Adarsh,



Would you be able to try the following?



In startup config for now, could you add the following change in the unix 
section of the vpp startup.



  # nodaemon

  interactive



Also, I see you have the line gid vpp. I am not sure what that does. Most of 
the configs I see do not have that. You could try removing that line.



Then run VPP manually like this so we might get more error information.



# cat /proc/meminfo – Be sure you still have some hugepages, sometimes if dpdk 
crashes it doesn’t return them.

# service vpp stop

# ps -eaf | grep vpp – Make sure there are no other VPP processes still running

# /usr/bin/vpp -c /etc/vpp/startup.conf



Then send us the results from the entire startup.



Thanks,



John





From:  on behalf of adarsh m via vpp-dev 

Reply-To: adarsh m 
Date: Thursday, February 1, 2018 at 8:43 AM
To: "Damjan Marion (damarion)" , adarsh m via vpp-dev 

Subject: Re: [vpp-dev] Error when trying to add interface to vpp on ARM server.



Hi,



After removing socket-mem now vpp is stable but when we try to connect through 
CLI connection is refused.





ubuntu@vasily:~$ sudo service vpp status
● vpp.service - vector packet processing engine
   Loaded: loaded (/lib/systemd/system/vpp.service; enabled; vendor preset: 
enabled)
   Active: active (running) since Thu 2018-02-01 21:42:23 CST; 1s ago
  Process: 49787 ExecStopPost=/bin/rm -f /dev/shm/db /dev/shm/global_vm 
/dev/shm/vpe-api (code=exited, status=0/SUCCESS)
  Process: 49793 ExecStartPre=/sbin/modprobe uio_pci_generic (code=exited, 
status=0/SUCCESS)
  Process: 49790 ExecStartPre=/bin/rm -f /dev/shm/db /dev/shm/global_vm 
/dev/shm/vpe-api (code=exited, status=0/SUCCESS)
 Main PID: 49796 (vpp)
   CGroup: /system.slice/vpp.service
   └─49796 /usr/bin/vpp -c /etc/vpp/startup.conf

Feb 01 19:37:16 vasily /usr/bin/vpp[43454]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/acl_test_plugin.so
Feb 01 19:37:16 vasily /usr/bin/vpp[43454]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/kubeproxy_test_plugin.so
Feb 01 19:37:16 vasily /usr/bin/vpp[43454]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/pppoe_test_plugin.so
Feb 01 19:37:16 vasily /usr/bin/vpp[43454]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/ioam_vxlan_gpe_test_plugin.so
Feb 01 19:37:16 vasily /usr/bin/vpp[43454]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/dpdk_test_plugin.so
Feb 01 19:37:16 vasily /usr/bin/vpp[43454]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/udp_ping_test_plugin.so
Feb 01 19:37

Re: [vpp-dev] Error when trying to add interface to vpp on ARM server.

2018-02-27 Thread John DeNisco
Here’s my startup.conf.

From:  on behalf of John DeNisco 
Date: Tuesday, February 27, 2018 at 9:03 AM
To: "vpp-dev@lists.fd.io" 
Cc: Appana Prasad , "lukai (D)" , "Damjan 
Marion (damarion)" 
Subject: Re: [vpp-dev] Error when trying to add interface to vpp on ARM server.


Can you do the same, but as root.

sudo /usr/bin/vpp -c /etc/vpp/startup.conf

Also, gid vpp can be in the api-segment.

I have attached my startup.conf for reference. You don’t need the dpdk section.



From: adarsh m 
Date: Tuesday, February 27, 2018 at 5:11 AM
To: "vpp-dev@lists.fd.io" , John DeNisco 

Cc: Appana Prasad , "lukai (D)" , "Damjan 
Marion (damarion)" 
Subject: Re: [vpp-dev] Error when trying to add interface to vpp on ARM server.


Hi John,

I have Downgraded Qemu and Libvirt to atleast make VM UP.

ubuntu@ubuntu:~$ virsh -c qemu:///system version --daemon
setlocale: No such file or directory
Compiled against library: libvirt 1.3.1
Using library: libvirt 1.3.1
Using API: QEMU 1.3.1
Running hypervisor: QEMU 2.5.0
Running against daemon: 1.3.1

ubuntu@ubuntu:~$
Commented "nodaemon" and added "interactive" in startup.conf but gid vpp were 
in 2 places unix and api-segment.

When only in unix its commented then vpp starts but interface does'nt come up

And when i comment either in api-segment or both then vpp will fail to start,

I am attaching both the Logs below, pls go through and let us know about this 
issue.

--
Also using Qemu and Libvirt to latest is failing to bring up VM itself.

I am using Latest Qemu 2.11 and since i am using Virsh i updated Libvirt to 
latest 3.6.0 (Ubuntu 16.04)
ubuntu@ubuntu:~$  virsh -c qemu:///system version --daemon
setlocale: No such file or directory
Compiled against library: libvirt 3.6.0
Using library: libvirt 3.6.0
Using API: QEMU 3.6.0
Running hypervisor: QEMU 2.10.1
Running against daemon: 3.6.0
Both versions were ideally not having an official release for ubuntu 16.04.


But when i try and do virsh-install it'll get stuck after boot maybe crash same 
as gabriel.
Logs :
EFI stub: Booting Linux Kernel...
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services and installing virtual address map...


Virsh command :
sudo virt-install --name dut2 --ram 4096 --disk path=dut2.img,size=30 --vcpus 2 
--os-type linux --os-variant generic --cdrom 
'./ubuntu-16.04.3-server-arm64.iso' --network default


On Thursday 22 February 2018, 6:49:54 PM IST, John DeNisco  
wrote:



Hi Adarsh,



Would you be able to try the following?



In startup config for now, could you add the following change in the unix 
section of the vpp startup.



  # nodaemon

  interactive



Also, I see you have the line gid vpp. I am not sure what that does. Most of 
the configs I see do not have that. You could try removing that line.



Then run VPP manually like this so we might get more error information.



# cat /proc/meminfo – Be sure you still have some hugepages, sometimes if dpdk 
crashes it doesn’t return them.

# service vpp stop

# ps -eaf | grep vpp – Make sure there are no other VPP processes still running

# /usr/bin/vpp -c /etc/vpp/startup.conf



Then send us the results from the entire startup.



Thanks,



John





From:  on behalf of adarsh m via vpp-dev 

Reply-To: adarsh m 
Date: Thursday, February 1, 2018 at 8:43 AM
To: "Damjan Marion (damarion)" , adarsh m via vpp-dev 

Subject: Re: [vpp-dev] Error when trying to add interface to vpp on ARM server.



Hi,



After removing socket-mem now vpp is stable but when we try to connect through 
CLI connection is refused.





ubuntu@vasily:~$ sudo service vpp status
● vpp.service - vector packet processing engine
   Loaded: loaded (/lib/systemd/system/vpp.service; enabled; vendor preset: 
enabled)
   Active: active (running) since Thu 2018-02-01 21:42:23 CST; 1s ago
  Process: 49787 ExecStopPost=/bin/rm -f /dev/shm/db /dev/shm/global_vm 
/dev/shm/vpe-api (code=exited, status=0/SUCCESS)
  Process: 49793 ExecStartPre=/sbin/modprobe uio_pci_generic (code=exited, 
status=0/SUCCESS)
  Process: 49790 ExecStartPre=/bin/rm -f /dev/shm/db /dev/shm/global_vm 
/dev/shm/vpe-api (code=exited, status=0/SUCCESS)
 Main PID: 49796 (vpp)
   CGroup: /system.slice/vpp.service
   └─49796 /usr/bin/vpp -c /etc/vpp/startup.conf

Feb 01 19:37:16 vasily /usr/bin/vpp[43454]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/acl_test_plugin.so
Feb 01 19:37:16 vasily /usr/bin/vpp[43454]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/kubeproxy_test_plugin.so
Feb 01 19:37:16 vasily /usr/bin/vpp[43454]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/pppoe_test_plugin.so
Feb 01 19:37:16 vasily /usr/bin/vpp[43454]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/ioam_vxlan_gpe_test_plugin.so
Fe

[vpp-dev] Running a script just after vpp is up

2018-02-27 Thread Avi Cohen (A)
Hi 
I need to run a script immediately after VPP is up.
I try to add a line in /etc/init/vpp.conf   marked ** below - but this doesn't  
work , any idea how-to ?

Vpp.conf
description "vector packet processing engine"
author  "Cisco Systems, Inc "

manual

respawn

pre-start script
   rm -f /dev/shm/db /dev/shm/global_vm /dev/shm/vpe-api || true
   # should be there via dkms, but if not, start anyway
   modprobe uio_pci_generic || true
end script


script
  exec vpp -c /etc/vpp/startup.conf
  ** source /home/avi/script/am_setup.sh **
end script

post-stop script
   rm -f /dev/shm/db /dev/shm/global_vm /dev/shm/vpe-api || true
end script

Best Regards
Avi
~   
 

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8351): https://lists.fd.io/g/vpp-dev/message/8351
View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/13138532
Mute This Topic: https://lists.fd.io/mt/13138532/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] Error when trying to add interface to vpp on ARM server.

2018-02-27 Thread khemendra kumar
Hi John,

I checked i Adarsh setup with uncomment api-segment.

VPP is coming up now.

But the real issue "VPP not able to get interface in VM" still occur.

Below is log:
csit@dut1:~$ sudo service vpp status
[sudo] password for csit:
● vpp.service - vector packet processing engine
   Loaded: loaded (/lib/systemd/system/vpp.service; enabled; vendor preset:
enabled)
   Active: active (running) since Tue 2018-02-27 18:02:14 CST; 4h 24min ago
  Process: 23045 ExecStopPost=/bin/rm -f /dev/shm/db /dev/shm/global_vm
/dev/shm/vpe-api (code=exited, status=0/SUCCESS)
  Process: 23131 ExecStartPre=/sbin/modprobe uio_pci_generic (code=exited,
status=0/SUCCESS)
  Process: 23127 ExecStartPre=/bin/rm -f /dev/shm/db /dev/shm/global_vm
/dev/shm/vpe-api (code=exited, status=0/SUCCESS)
 Main PID: 23136 (vpp_main)
Tasks: 5
   Memory: 92.7M
  CPU: 56.166s
   CGroup: /system.slice/vpp.service
   └─23136 /usr/bin/vpp -c /etc/vpp/startup.conf

Feb 27 18:02:14 dut1 vpp[23136]: EAL:   Invalid NUMA socket, default to 0
Feb 27 18:02:14 dut1 vpp[23136]: EAL: Cannot open
/sys/bus/pci/devices/:02:01.0/resource0: No such file or directory
Feb 27 18:02:14 dut1 vnet[23136]: EAL:   Invalid NUMA socket, default to 0
Feb 27 18:02:14 dut1 vpp[23136]: EAL: Requested device :02:01.0 cannot
be used
*Feb 27 18:02:14 dut1 vnet[23136]: EAL: Cannot open
/sys/bus/pci/devices/:02:01.0/resource0: No such file or directory*
*Feb 27 18:02:14 dut1 vnet[23136]: EAL: Requested device :02:01.0
cannot be used*
Feb 27 18:02:14 dut1 vpp[23136]: unix_physmem_region_iommu_register: ioctl
(VFIO_IOMMU_MAP_DMA): Invalid argument
Feb 27 18:02:14 dut1 vpp[23136]: linux_epoll_file_update:119: epoll_ctl:
Operation not permitted (errno 1)
Feb 27 18:02:14 dut1 vpp[23136]: 0: dpdk_ipsec_process:1012: not enough
DPDK crypto resources, default to OpenSSL
Feb 27 18:02:14 dut1 vpp[23136]: 0: dpdk_lib_init:222: DPDK drivers found
no ports...
csit@dut1:~$

Any idea what can cause this problem and how to resolve.

*We are using Qemu with virt-manager on ARM server.*
ubuntu@ubuntu:~$ virsh -c qemu:///system version --daemon
setlocale: No such file or directory
Compiled against library: libvirt 1.3.1
Using library: libvirt 1.3.1
Using API:* QEMU 1.3.1*
Running hypervisor: QEMU 2.5.0
Running against daemon: 1.3.1



Thanks & Regards
khem

On Tue, Feb 27, 2018 at 7:31 PM, John DeNisco  wrote:

>
>
> Can you do the same, but as root.
>
>
>
> sudo /usr/bin/vpp -c /etc/vpp/startup.conf
>
>
>
> Also, gid vpp can be in the api-segment.
>
>
>
> I have attached my startup.conf for reference. You don’t need the dpdk
> section.
>
>
>
>
>
>
>
> *From: *adarsh m 
> *Date: *Tuesday, February 27, 2018 at 5:11 AM
> *To: *"vpp-dev@lists.fd.io" , John DeNisco <
> jdeni...@cisco.com>
> *Cc: *Appana Prasad , "lukai (D)" ,
> "Damjan Marion (damarion)" 
>
> *Subject: *Re: [vpp-dev] Error when trying to add interface to vpp on ARM
> server.
>
>
>
>
>
> Hi John,
>
>
>
> I have Downgraded Qemu and Libvirt to atleast make VM UP.
>
>
>
> ubuntu@ubuntu:~$ virsh -c qemu:///system version --daemon
> setlocale: No such file or directory
> Compiled against library: libvirt 1.3.1
> Using library: libvirt 1.3.1
> Using API: QEMU 1.3.1
> Running hypervisor: QEMU 2.5.0
> Running against daemon: 1.3.1
>
> ubuntu@ubuntu:~$
>
> Commented "nodaemon" and added "interactive" in startup.conf but gid vpp
> were in 2 places unix and api-segment.
>
>
>
> When only in unix its commented then vpp starts but interface does'nt come
> up
>
>
>
> And when i comment either in api-segment or both then vpp will fail to
> start,
>
>
>
> I am attaching both the Logs below, pls go through and let us know about
> this issue.
>
>
>
> 
> 
> 
> --
>
> Also using Qemu and Libvirt to latest is failing to bring up VM itself.
>
>
>
> I am using Latest Qemu 2.11 and since i am using Virsh i updated Libvirt
> to latest 3.6.0 (Ubuntu 16.04)
>
> ubuntu@ubuntu:~$  virsh -c qemu:///system version --daemon
> setlocale: No such file or directory
> Compiled against library: libvirt 3.6.0
> Using library: libvirt 3.6.0
> Using API: QEMU 3.6.0
> Running hypervisor: QEMU 2.10.1
> Running against daemon: 3.6.0
>
> Both versions were ideally not having an official release for ubuntu 16.04.
>
>
>
>
>
> But when i try and do virsh-install it'll get stuck after boot maybe crash
> same as gabriel.
>
> *Logs :*
>
> EFI stub: Booting Linux Kernel...
> EFI stub: Using DTB from configuration table
> EFI stub: Exiting boot services and installing virtual address map...
>
>
> * Virsh command :*
>
> sudo virt-install --name dut2 --ram 4096 --disk path=dut2.img,size=30
> --vcpus 2 --os-type linux --os-variant generic --cdrom
> './ubuntu-16.04.3-server-arm64.iso' --network default
>
>
>
>
>
> On Thursday 22 February 2018, 6:49:54 PM IST, John DeNisc

[vpp-dev] vpp_main with iperf3 not working #vpp

2018-02-27 Thread swathins079
Hi all,

Had anyone tried the newer version of vpp with iperf3?

When I tried the latest release of VPP, I am getting some weird result. The 
vpp_main is using 100% CPU(suspecting that it is going into a never-ending 
loop). I tried the router namespace example just to check the VPP performance 
with namespaces. Link: namespace with vpp ( 
https://wiki.fd.io/view/VPP/Configure_VPP_As_A_Router_Between_Namespaces )

OS: centos 7
CPU: intel's i5 4cores
Ram: 32GB

Tried the same with an older version of VPP in Ubuntu, this time the iperf3 
client gets timed out.

Whats wrong with VPP? Is this a known issue? JIRA for this issue is created?

Regards,
Swathin


Re: [vpp-dev] VPP sample plugins

2018-02-27 Thread Sara Gittlin
Hello All,
I'm a vpp newbei.
I want to activate some existing plugins - i see that many of them are
loaded (e.g, acl, flowprob )  but I cannot  activate them.
another question is - I understand that i can customize  the code of
these plugins examples - correct ?

Thank you in advance
- Sara

On Tue, Feb 27, 2018 at 5:10 PM, Sara Gittlin  wrote:
> Hello All,
> I'm a vpp newbei.
> I want to activate some existing plugins - i see that many of them are
> loaded (e.g, acl, flowprob )  but I cannot  activate them.
> another question is - I understand that i can customize  the code of
> these plugins examples - correct ?
>
> Thank you in advance
> - Sara

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8354): https://lists.fd.io/g/vpp-dev/message/8354
View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/13147560
Mute This Topic: https://lists.fd.io/mt/13147560/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] stats mess

2018-02-27 Thread Dave Wallace

Hi Klement,

Thanks for the bug report.  Could you please submit a Jira for this so 
it doesn't get lost?


Thanks,
-daw-

On 02/27/2018 08:33 AM, Klement Sekera wrote:

Hi,

While doing some testing I noticed that vpp ends in a strange state when doing 
a specific stats dance:

1. want_interface_simple_stats
2. disconnect
3. connect
4. want_stats
5. disconnect
6. connect
7. want_interface_simple_stats

Now what happens is that vpp sends combined interface counters, though only 
simple were requested. It seems that using ~0 as item in various stats 
registration contexts, while reusing code for simple/combined counters doesn't 
play well if combined. If after 5.) you put a breakpoint on 
do_combined_interface_counters(), you'll see that it's called regularly even 
though the client is gone now...

This was seen with VAPI unit test and doing an explicit want_stats with 
enable_disable=0 workarounds the issue. I've added such fix, but I still think 
this should be fixed.

Regards,
Klement







Re: [vpp-dev] VPP sample plugins

2018-02-27 Thread Kawshik Sarkar
Hi,

Can anyone tell me if openflow is supported on VPP. If so is there any tutorial 
that’s available on how to set that up with an ODL Controller.

BR
Kawshik

-Original Message-
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Sara Gittlin
Sent: Tuesday, February 27, 2018 10:28 AM
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] VPP sample plugins

***WARNING! THIS EMAIL ORIGINATES FROM OUTSIDE VT IDIRECT.***

.

Hello All,
I'm a vpp newbei.
I want to activate some existing plugins - i see that many of them are loaded 
(e.g, acl, flowprob )  but I cannot  activate them.
another question is - I understand that i can customize  the code of these 
plugins examples - correct ?

Thank you in advance
- Sara

On Tue, Feb 27, 2018 at 5:10 PM, Sara Gittlin  wrote:
> Hello All,
> I'm a vpp newbei.
> I want to activate some existing plugins - i see that many of them are 
> loaded (e.g, acl, flowprob )  but I cannot  activate them.
> another question is - I understand that i can customize  the code of 
> these plugins examples - correct ?
>
> Thank you in advance
> - Sara





This electronic message and any files transmitted with it contains
information from iDirect, which may be privileged, proprietary
and/or confidential. It is intended solely for the use of the individual
or entity to whom they are addressed. If you are not the original
recipient or the person responsible for delivering the email to the
intended recipient, be advised that you have received this email
in error, and that any use, dissemination, forwarding, printing, or
copying of this email is strictly prohibited. If you received this email
in error, please delete it and immediately notify the sender.

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8356): https://lists.fd.io/g/vpp-dev/message/8356
View All Messages In Topic (2): https://lists.fd.io/g/vpp-dev/topic/13147560
Mute This Topic: https://lists.fd.io/mt/13147560/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] VPP sample plugins

2018-02-27 Thread Ray Kinsella

Hi Kawshik,

VPP is supported in ODL through Netconf/Yang.
See the Honeycomb subproject for more information.

Ray K


On 27/02/2018 15:45, Kawshik Sarkar wrote:

Hi,

Can anyone tell me if openflow is supported on VPP. If so is there any tutorial 
that’s available on how to set that up with an ODL Controller.

BR
Kawshik

-Original Message-
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Sara Gittlin
Sent: Tuesday, February 27, 2018 10:28 AM
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] VPP sample plugins

***WARNING! THIS EMAIL ORIGINATES FROM OUTSIDE VT IDIRECT.***

.

Hello All,
I'm a vpp newbei.
I want to activate some existing plugins - i see that many of them are loaded 
(e.g, acl, flowprob )  but I cannot  activate them.
another question is - I understand that i can customize  the code of these 
plugins examples - correct ?

Thank you in advance
- Sara

On Tue, Feb 27, 2018 at 5:10 PM, Sara Gittlin  wrote:

Hello All,
I'm a vpp newbei.
I want to activate some existing plugins - i see that many of them are
loaded (e.g, acl, flowprob )  but I cannot  activate them.
another question is - I understand that i can customize  the code of
these plugins examples - correct ?

Thank you in advance
- Sara






This electronic message and any files transmitted with it contains
information from iDirect, which may be privileged, proprietary
and/or confidential. It is intended solely for the use of the individual
or entity to whom they are addressed. If you are not the original
recipient or the person responsible for delivering the email to the
intended recipient, be advised that you have received this email
in error, and that any use, dissemination, forwarding, printing, or
copying of this email is strictly prohibited. If you received this email
in error, please delete it and immediately notify the sender.





-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8357): https://lists.fd.io/g/vpp-dev/message/8357
View All Messages In Topic (3): https://lists.fd.io/g/vpp-dev/topic/13147560
Mute This Topic: https://lists.fd.io/mt/13147560/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] Developing application on top of VPP

2018-02-27 Thread Ray Kinsella

Really it depends on the kind of application you want to develop?

If your intention is to do something monolithic like a tightly 
integrated VNF application. A VNF with L2, L3, L4 and app as an 
integrated appliance. Then the plugin _might_ make the sense for you, 
however I suspect that VCL library might still be easier to maintain and 
integrate with in this instance


However if you intend to use a vSwitch on the system or you anticipate 
that a vSwitch will be used in the system. You can integrate the L2, L3 
and L4 with the (VPP) vSwitch and have your App sit on VCL. This ends up 
being simplier and more lightweight, but you need to know that VPP can 
be your vSwitch.


Thanks,


Ray K

On 27/02/2018 11:53, Shashi Kant Singh wrote:

Inline...


-Original Message-
From: Ray Kinsella [mailto:m...@ashroe.eu]
Sent: 27 February 2018 17:20
To: Shashi Kant Singh; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Developing application on top of VPP


Would be good if you could provide some additional information.

What kind of application is it - UDP/TCP/RAW socket based?
SKS: Would be a mix of UDP/GTP and TCP/SCTP. UDP/GTP over IPSEC.

How is it typically deployed - Cloud Based, Virtualized Appliance or Discrete 
Appliance?
SKS: Cloud Based in a VM.


Ray K

On 27/02/2018 08:21, Shashi Kant Singh wrote:

Hi

There is a need to port AI kind of application on top of VPP. This
could  > 20k lines of code with fair complexity.

Would it make sense to put this as plugin in VPP or have an
independent application and connect to VPP using VCL?

Does it mean that AI app need to be broken down in 10 of nodes if
plugin is the option?

Performance required from AI app is like that of a typical data path.

Regards

Shashi









-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8358): https://lists.fd.io/g/vpp-dev/message/8358
View All Messages In Topic (4): https://lists.fd.io/g/vpp-dev/topic/13095162
Mute This Topic: https://lists.fd.io/mt/13095162/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] Upcoming memif API and CLI changes.

2018-02-27 Thread Jon Loeliger
Peter,


> Trying to configure Memif:
>
>
>
> vat# memif_dump
>
> Sending ping id=714
>
> memif0/0: sw_if_index 3 mac 02:fe:db:be:87:29
>
>id 0 socket-id 0 role slave
>
>ring_size 1 buffer_size 0
>
>state down link down
>

If you also dump the memif socket table you should see
that socket-id 0 is the default socket filename.

Which means ...

> vat# memif_socket_filename_add_del add id 0 filename /tmp/memif
>
> Invalid socket idmemif_socket_filename_add_del error: Misc
>

 you can neither create nor delete that socket-id 0.


> vat# memif_socket_filename_add_del add id 1 filename /tmp/memif
>
> memif_socket_filename_add_del error: Misc
>
>
>
> vat# memif_create id 0 socket-id 1 master
>
> memif_create error: Invalid argument
>

That might be an issue...  And it might be localized to VAT because:

vpp# create memif socket id 1 filename /tmp/foo.sock
vpp# show memif
sockets
  id  listenerfilename
  0   no  /run/vpp/memif.sock
  1   no  /tmp/foo.sock

I'll peer at VAT unless John Lo beats me to it. :-)

jdl


[vpp-dev] Compiling NSH plugin with VPP

2018-02-27 Thread . ılı . D'p
Hi,

I am getting compilation errors with NSH plugin.
I am using the latest VPP and NSH plugin
And also i downgraded and tried with VPP 17.04 and NSH 17.04.

Same error persists.
"[WARNING] The POM for io.fd.vpp:jvpp-registry:jar:17.04 is missing, no
dependency information available
Downloading:
https://repo.maven.apache.org/maven2/io/fd/vpp/jvpp-registry/17.04/jvpp-registry-17.04.jar
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 17.720 s
[INFO] Finished at: 2018-02-27T22:46:40+05:30
[INFO] Final Memory: 11M/201M
[INFO]

[ERROR] Failed to execute goal on project nsh-sfc: Could not resolve
dependencies for project io.fd.nsh_sfc:nsh-sfc:jar:17.04: Could not find
artifact io.fd.vpp:jvpp-registry:jar:17.04 in central (
https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Makefile:987: recipe for target 'jvpp/io_fd_vpp_jvpp_nsh_JVppNshImpl.h'
failed
make[2]: *** [jvpp/io_fd_vpp_jvpp_nsh_JVppNshImpl.h] Error 1
make[2]: Leaving directory
'/home/deepakch/vpp_1704/nsh_sfc_17.04/nsh_sfc/nsh-plugin/build/java'
Makefile:671: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
'/home/deepakch/vpp_1704/nsh_sfc_17.04/nsh_sfc/nsh-plugin/build'
Makefile:439: recipe for target 'all' failed
make: *** [all] Error 2"

-- 

Regards,
Deepak Kumar Ch


[vpp-dev] Errors on compiling NSH plugin with VPP on ubuntu 16.04

2018-02-27 Thread . ılı . D'p
Hi,

I am getting compilation errors with NSH plugin.
I am using the latest VPP and NSH plugin
And also i downgraded and tried with VPP 17.04 and NSH 17.04.

Same error persists.
"[WARNING] The POM for io.fd.vpp:jvpp-registry:jar:17.04 is missing, no
dependency information available
Downloading: https://repo.maven.apache.org/maven2/io/fd/vpp/jvpp-
registry/17.04/jvpp-registry-17.04.jar
[INFO] 

[INFO] BUILD FAILURE
[INFO] 

[INFO] Total time: 17.720 s
[INFO] Finished at: 2018-02-27T22:46:40+05:30
[INFO] Final Memory: 11M/201M
[INFO] 

[ERROR] Failed to execute goal on project nsh-sfc: Could not resolve
dependencies for project io.fd.nsh_sfc:nsh-sfc:jar:17.04: Could not find
artifact io.fd.vpp:jvpp-registry:jar:17.04 in central (
https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/
DependencyResolutionException
Makefile:987: recipe for target 'jvpp/io_fd_vpp_jvpp_nsh_JVppNshImpl.h'
failed
make[2]: *** [jvpp/io_fd_vpp_jvpp_nsh_JVppNshImpl.h] Error 1
make[2]: Leaving directory '/home/deepakch/vpp_1704/nsh_
sfc_17.04/nsh_sfc/nsh-plugin/build/java'
Makefile:671: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/deepakch/vpp_1704/nsh_
sfc_17.04/nsh_sfc/nsh-plugin/build'
Makefile:439: recipe for target 'all' failed
make: *** [all] Error 2"


-- 


Regards,
Deepak Kumar Ch

“We judge ourselves by our intentions and others by their actions.”-
Stephen M.R. Covey


Re: [vpp-dev] Errors on compiling NSH plugin with VPP on ubuntu 16.04

2018-02-27 Thread Florin Coras
Hi Deepak, 

This should be directed at the nsh dev list. 

Florin

> On Feb 27, 2018, at 9:32 AM, .ılı.D'p@k.ılı.  wrote:
> 
> Hi,
> 
> I am getting compilation errors with NSH plugin.
> I am using the latest VPP and NSH plugin
> And also i downgraded and tried with VPP 17.04 and NSH 17.04.
> 
> Same error persists.
> "[WARNING] The POM for io.fd.vpp:jvpp-registry:jar:17.04 is missing, no 
> dependency information available
> Downloading: 
> https://repo.maven.apache.org/maven2/io/fd/vpp/jvpp-registry/17.04/jvpp-registry-17.04.jar
>  
> 
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 17.720 s
> [INFO] Finished at: 2018-02-27T22:46:40+05:30
> [INFO] Final Memory: 11M/201M
> [INFO] 
> 
> [ERROR] Failed to execute goal on project nsh-sfc: Could not resolve 
> dependencies for project io.fd.nsh_sfc:nsh-sfc:jar:17.04: Could not find 
> artifact io.fd.vpp:jvpp-registry:jar:17.04 in central 
> (https://repo.maven.apache.org/maven2 ) 
> -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>  
> 
> Makefile:987: recipe for target 'jvpp/io_fd_vpp_jvpp_nsh_JVppNshImpl.h' failed
> make[2]: *** [jvpp/io_fd_vpp_jvpp_nsh_JVppNshImpl.h] Error 1
> make[2]: Leaving directory 
> '/home/deepakch/vpp_1704/nsh_sfc_17.04/nsh_sfc/nsh-plugin/build/java'
> Makefile:671: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory 
> '/home/deepakch/vpp_1704/nsh_sfc_17.04/nsh_sfc/nsh-plugin/build'
> Makefile:439: recipe for target 'all' failed
> make: *** [all] Error 2"
> 
> 
> -- 
> 
> 
> Regards,
> Deepak Kumar Ch
> 
> “We judge ourselves by our intentions and others by their actions.”- Stephen 
> M.R. Covey
> 



Re: [vpp-dev] Upcoming memif API and CLI changes.

2018-02-27 Thread Jon Loeliger
Peter,

On Tue, Feb 27, 2018 at 11:09 AM, Jon Loeliger  wrote:

> Peter,
>
> vat# memif_socket_filename_add_del add id 1 filename /tmp/memif
>>
>> memif_socket_filename_add_del error: Misc
>>
>>
>>
>> vat# memif_create id 0 socket-id 1 master
>>
>> memif_create error: Invalid argument
>>
>
> That might be an issue...  And it might be localized to VAT because:
>
> vpp# create memif socket id 1 filename /tmp/foo.sock
> vpp# show memif
> sockets
>   id  listenerfilename
>   0   no  /run/vpp/memif.sock
>   1   no  /tmp/foo.sock
>
> I'll peer at VAT unless John Lo beats me to it. :-)
>
> jdl
>

Indeed this was a bug in the VAT call to that API function.
I have submitted the patch:

https://gerrit.fd.io/r/#/c/10848/

to address this issue.

Thank you!
jdl

._,_.
Tt


Re: [vpp-dev] VPP sample plugins

2018-02-27 Thread Kawshik Sarkar
Hi ray 

I am aware of hc2vpp. it offers control through ODL but doesn’t mean vpp 
support openflow.
> On Feb 27, 2018, at 11:15 AM, Ray Kinsella  wrote:
> 
> ***WARNING! THIS EMAIL ORIGINATES FROM OUTSIDE VT IDIRECT.***
> 
> .
> 
> Hi Kawshik,
> 
> VPP is supported in ODL through Netconf/Yang.
> See the Honeycomb subproject for more information.
> 
> Ray K
> 
> 
>> On 27/02/2018 15:45, Kawshik Sarkar wrote:
>> Hi,
>> Can anyone tell me if openflow is supported on VPP. If so is there any 
>> tutorial that’s available on how to set that up with an ODL Controller.
>> BR
>> Kawshik
>> -Original Message-
>> From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Sara 
>> Gittlin
>> Sent: Tuesday, February 27, 2018 10:28 AM
>> To: vpp-dev@lists.fd.io
>> Subject: Re: [vpp-dev] VPP sample plugins
>> ***WARNING! THIS EMAIL ORIGINATES FROM OUTSIDE VT IDIRECT.***
>> .
>> Hello All,
>> I'm a vpp newbei.
>> I want to activate some existing plugins - i see that many of them are 
>> loaded (e.g, acl, flowprob )  but I cannot  activate them.
>> another question is - I understand that i can customize  the code of these 
>> plugins examples - correct ?
>> Thank you in advance
>> - Sara
>>> On Tue, Feb 27, 2018 at 5:10 PM, Sara Gittlin  
>>> wrote:
>>> Hello All,
>>> I'm a vpp newbei.
>>> I want to activate some existing plugins - i see that many of them are
>>> loaded (e.g, acl, flowprob )  but I cannot  activate them.
>>> another question is - I understand that i can customize  the code of
>>> these plugins examples - correct ?
>>> 
>>> Thank you in advance
>>> - Sara
>> 
>> This electronic message and any files transmitted with it contains
>> information from iDirect, which may be privileged, proprietary
>> and/or confidential. It is intended solely for the use of the individual
>> or entity to whom they are addressed. If you are not the original
>> recipient or the person responsible for delivering the email to the
>> intended recipient, be advised that you have received this email
>> in error, and that any use, dissemination, forwarding, printing, or
>> copying of this email is strictly prohibited. If you received this email
>> in error, please delete it and immediately notify the sender.
>> 


This electronic message and any files transmitted with it contains
information from iDirect, which may be privileged, proprietary
and/or confidential. It is intended solely for the use of the individual
or entity to whom they are addressed. If you are not the original
recipient or the person responsible for delivering the email to the
intended recipient, be advised that you have received this email
in error, and that any use, dissemination, forwarding, printing, or
copying of this email is strictly prohibited. If you received this email
in error, please delete it and immediately notify the sender.

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8364): https://lists.fd.io/g/vpp-dev/message/8364
View All Messages In Topic (4): https://lists.fd.io/g/vpp-dev/topic/13147560
Mute This Topic: https://lists.fd.io/mt/13147560/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] Developing application on top of VPP

2018-02-27 Thread Shashi Kant Singh
Thanks Ray

I could see that at VPP, I could receive at line rate of 10G, process and send 
out the traffic (macswap)

When I tried to use the test_server / test_client (vcl_test_client), I could 
not go beyond 3.5G rate in stream test mode. It is probably because of VCL 
sockets being used to send and receive SINGLE packets at the vcl_test_client . 
It does not do multiple packet processing like VPP does.

How would  I get near line of packet send /receive using VCL in my application ?
I see recvmmsg kind of function in VCL but it is still not implemented using 
vpp library.

Regards
Shashi



-Original Message-
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Ray Kinsella
Sent: 27 February 2018 21:56
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Developing application on top of VPP

Really it depends on the kind of application you want to develop?

If your intention is to do something monolithic like a tightly integrated VNF 
application. A VNF with L2, L3, L4 and app as an integrated appliance. Then the 
plugin _might_ make the sense for you, however I suspect that VCL library might 
still be easier to maintain and integrate with in this instance

However if you intend to use a vSwitch on the system or you anticipate that a 
vSwitch will be used in the system. You can integrate the L2, L3 and L4 with 
the (VPP) vSwitch and have your App sit on VCL. This ends up being simplier and 
more lightweight, but you need to know that VPP can be your vSwitch.

Thanks,


Ray K

On 27/02/2018 11:53, Shashi Kant Singh wrote:
> Inline...
> 
> 
> -Original Message-
> From: Ray Kinsella [mailto:m...@ashroe.eu]
> Sent: 27 February 2018 17:20
> To: Shashi Kant Singh; vpp-dev@lists.fd.io
> Subject: Re: [vpp-dev] Developing application on top of VPP
> 
> 
> Would be good if you could provide some additional information.
> 
> What kind of application is it - UDP/TCP/RAW socket based?
> SKS: Would be a mix of UDP/GTP and TCP/SCTP. UDP/GTP over IPSEC.
> 
> How is it typically deployed - Cloud Based, Virtualized Appliance or Discrete 
> Appliance?
> SKS: Cloud Based in a VM.
> 
> 
> Ray K
> 
> On 27/02/2018 08:21, Shashi Kant Singh wrote:
>> Hi
>>
>> There is a need to port AI kind of application on top of VPP. This 
>> could  > 20k lines of code with fair complexity.
>>
>> Would it make sense to put this as plugin in VPP or have an 
>> independent application and connect to VPP using VCL?
>>
>> Does it mean that AI app need to be broken down in 10 of nodes if 
>> plugin is the option?
>>
>> Performance required from AI app is like that of a typical data path.
>>
>> Regards
>>
>> Shashi
>>
>>
> 
> 
> 
> 




-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8365): https://lists.fd.io/g/vpp-dev/message/8365
View All Messages In Topic (5): https://lists.fd.io/g/vpp-dev/topic/13095162
Mute This Topic: https://lists.fd.io/mt/13095162/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Building gtpu plugin alone

2018-02-27 Thread Shashi Kant Singh
Hi

I usually use make build / build-release to build the VPP. I just need to 
modify gtpu plugin directory. How do I build that alone?

Regards
Shashi



-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8366): https://lists.fd.io/g/vpp-dev/message/8366
View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/13267067
Mute This Topic: https://lists.fd.io/mt/13267067/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] How to activate the sample plugins

2018-02-27 Thread Sara Gittlin
Hello All,
Resending this -my last mail was broken by other  issues
I'm a vpp newbei.
I want to activate some existing plugins - i see that many of them are
loaded (e.g, acl, flowprob )  but I cannot  activate them.
another question is - I understand that i can customize  the code of
these plugins examples - correct ?

Thank you in advance
- Sara

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8367): https://lists.fd.io/g/vpp-dev/message/8367
View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/13267098
Mute This Topic: https://lists.fd.io/mt/13267098/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] Developing application on top of VPP

2018-02-27 Thread Florin Coras
Shashi, 

You can’t really compare macswap with a full fledged host stack. As you 
delegate more work to vpp, you should expect a drop in throughput.

Also worth noting is that the stack sends/receives byte streams, not single 
packets and up to transport layer, it does make use of vectorization. The 
amount of bytes transferred per call depends on the size of the fifos and app 
buffers used. Depending on your hardware, the builtin echo client/server can 
push more than 10Gbps/connection. If you use more connections in parallel, you 
should be able to go over 20Gbps. 

Florin

> On Feb 27, 2018, at 9:17 PM, Shashi Kant Singh  wrote:
> 
> Thanks Ray
> 
> I could see that at VPP, I could receive at line rate of 10G, process and 
> send out the traffic (macswap)
> 
> When I tried to use the test_server / test_client (vcl_test_client), I could 
> not go beyond 3.5G rate in stream test mode. It is probably because of VCL 
> sockets being used to send and receive SINGLE packets at the vcl_test_client 
> . It does not do multiple packet processing like VPP does.
> 
> How would  I get near line of packet send /receive using VCL in my 
> application ?
> I see recvmmsg kind of function in VCL but it is still not implemented using 
> vpp library.
> 
> Regards
> Shashi
> 
> 
> 
> -Original Message-
> From: vpp-dev@lists.fd.io  
> [mailto:vpp-dev@lists.fd.io ] On Behalf Of Ray 
> Kinsella
> Sent: 27 February 2018 21:56
> To: vpp-dev@lists.fd.io 
> Subject: Re: [vpp-dev] Developing application on top of VPP
> 
> Really it depends on the kind of application you want to develop?
> 
> If your intention is to do something monolithic like a tightly integrated VNF 
> application. A VNF with L2, L3, L4 and app as an integrated appliance. Then 
> the plugin _might_ make the sense for you, however I suspect that VCL library 
> might still be easier to maintain and integrate with in this instance
> 
> However if you intend to use a vSwitch on the system or you anticipate that a 
> vSwitch will be used in the system. You can integrate the L2, L3 and L4 with 
> the (VPP) vSwitch and have your App sit on VCL. This ends up being simplier 
> and more lightweight, but you need to know that VPP can be your vSwitch.
> 
> Thanks,
> 
> 
> Ray K
> 
> On 27/02/2018 11:53, Shashi Kant Singh wrote:
>> Inline...
>> 
>> 
>> -Original Message-
>> From: Ray Kinsella [mailto:m...@ashroe.eu]
>> Sent: 27 February 2018 17:20
>> To: Shashi Kant Singh; vpp-dev@lists.fd.io
>> Subject: Re: [vpp-dev] Developing application on top of VPP
>> 
>> 
>> Would be good if you could provide some additional information.
>> 
>> What kind of application is it - UDP/TCP/RAW socket based?
>> SKS: Would be a mix of UDP/GTP and TCP/SCTP. UDP/GTP over IPSEC.
>> 
>> How is it typically deployed - Cloud Based, Virtualized Appliance or 
>> Discrete Appliance?
>> SKS: Cloud Based in a VM.
>> 
>> 
>> Ray K
>> 
>> On 27/02/2018 08:21, Shashi Kant Singh wrote:
>>> Hi
>>> 
>>> There is a need to port AI kind of application on top of VPP. This 
>>> could  > 20k lines of code with fair complexity.
>>> 
>>> Would it make sense to put this as plugin in VPP or have an 
>>> independent application and connect to VPP using VCL?
>>> 
>>> Does it mean that AI app need to be broken down in 10 of nodes if 
>>> plugin is the option?
>>> 
>>> Performance required from AI app is like that of a typical data path.
>>> 
>>> Regards
>>> 
>>> Shashi
>>> 
>>> 
>> 
>> 
>> 
>> 
> 
> 
> 
> 
>