[vpp-dev] How to actively close the client connections in http server? #vnet

2018-05-17 Thread muziding
Hi

I want to make the example of http server  actively close the client 
connection, instead of waiting for the client to close connection, after http 
server has responded  to the client request. What should I do?


[vpp-dev] L2fib entry not updating for BVI

2018-05-17 Thread Gudimetla, Leela Sankar
Hi,

I have created a loopback interface (with MAC address and instance ) and added 
it to a bridge as BVI. I see the interface MAC address is getting added to 
l2fib since it is a BVI.
But when I change the interface MAC address (loopback’s), I don’t see the 
corresponding l2fib entry is not getting updated whereas the interface MAC is 
getting updated.
Is the l2fib entry not-getting-updated for BVI upon changing the interface-MAC, 
expected?
If yes, could you explain why?

Thanks,
Leela sankar


Re: [vpp-dev] NOTIFICATION: FD.io Maintenance

2018-05-17 Thread Vanessa Valderrama
Thank you to Anton for completing all the AWS moves for FD.io.  The
Sonar move is complete.


On 05/17/2018 02:44 PM, Vanessa Valderrama wrote:
>
> Sonar maintenance will begin in 15 minutes
>
>
> On 05/16/2018 09:12 AM, Vanessa Valderrama wrote:
>>
>> Reminder of Sonar maintenance today
>>
>>
>> On 04/26/2018 10:02 AM, Vanessa Valderrama wrote:
>>>
>>> *Sonar 2018-05-16 - **2100 UTC to 0100 UTC*
>>>
>>> Sonar will be unavailable for approximately 2-3 hours depending on
>>> data transfer.
>>>
>>
>



Re: [vpp-dev] Static ARP Flag Question

2018-05-17 Thread Jon Loeliger
On Tue, May 15, 2018 at 8:53 PM, John Lo (loj)  wrote:

> Hi Jon,
>
>
>
> I am in the process of fixing up something in handling of IP neighbor
> pools.  I can include fixing the S/D bits of ARP flag in my patch, if you
> are not in a hurry to have this fixed.
>
>
>
> Regards,
>
> John
>

John,

Heh.  It has just now bubbled up to the top on my To Do list!
I'll look around to see if you beat me to it...

jdl


Re: [EXT] [vpp-dev] Marvell's AI from last call

2018-05-17 Thread Damjan Marion

Fine if this is going to stay out of vpp repo, as it is duplicate functionality 
and also it will make dpdk plugin more messy due to external dependencies on 
musdk.
Will be better to do that work with some NIC which have native DPDK drivers, 
not wrapper like in musdk case...

-- 
Damjan

> On 17 May 2018, at 14:09, Nitin Saxena  wrote:
> 
> Hi Damjan,
> 
> This request was discussed in FD.io ARM call in order to optimize dpdk-input 
> node for ARM platforms. Macchiatobin is one common platform where almost all 
> ARM stakeholders are working on and profiling data/details can be easily 
> shared among them.
> 
> Thanks,
> Nitin
> 
> On Wednesday 16 May 2018 11:37 PM, Damjan Marion wrote:
>> Hi Natalie,
>> Who requested that?
>> Thanks,
>> -- 
>> Damjan
>>> On 16 May 2018, at 15:33, Natalie Samsonov >> > wrote:
>>> 
>>> Dear Damjan,
>>> As I understood, it was a request to use DPDK plugin with all platforms and 
>>> I was asked to upstream Marvell DPDK plugin.
>>> Best Regards,
>>> Natalie
>>> *From:*Damjan Marion [mailto:dmarion.li...@gmail.com]
>>> *Sent:*Wednesday, May 16, 2018 16:03
>>> *To:*Natalie Samsonov >
>>> *Cc:*Tina Tsou >> >;vpp-dev@lists.fd.io 
>>> ; Maen Suleiman >> >
>>> *Subject:*[EXT] Re: [vpp-dev] Marvell's AI from last call
>>> External Email
>>> 
>>> Dear Natalie,
>>> What is the point of using DPDK marvel driver (which is actually just a 
>>> wrapper around musdk) if we already have native musdk support in vpp?
>>> -- 
>>> Damjan
>>> 
>>> 
>>>On 15 May 2018, at 08:48, Natalie Samsonov >>> wrote:
>>>Hi,
>>>1.We are working now on upstreaming Marvell’s PMD support in VPP
>>>DPDK plugin.
>>>I’m attaching the patch as well in case you want play with it.
>>>2.Regarding the L3FWD performance difference between MUSDK and
>>>DPDK, currently we don’t have numbers with VPP L3FW.
>>>We only have  the numbers with two different applications. One is
>>>our own L3FW application running on top of MUSDK and other is a
>>>standard DPDL L3FWD application, so it’s not a fair comparison.
>>>Best Regards,
>>>Natalie Samsonov
>>><0001-plugins-dpdk-Add-support-for-net_mrvl-dpdk-driver.patch>
>> 



[vpp-dev] tap-inject - router plugin and vlans

2018-05-17 Thread Demian Pecile
Hi
I need to route vlans using the router plugin and tap-inject.
somebody know if this is supported ?
When I assign ip address in the quagga sample, I can’t see the IP in 
vpp if I use vlans.
And the traffic is not going anywhere.

Any idea how to use vlans and tap-inject ?

Thanks

--
Demian Pecile
Siete Capas S.R.L.
Periodistas Neuquinos 136
Piso 4 - Dpto. A - 8300 Neuquen
Argentina
Tel +54-299-4479172 
Cel. +549-299-5833500



Re: [vpp-dev] router_plugin

2018-05-17 Thread Demian Pecile
I was able to solve copying the libs to linux lib folder.
But not working fine yet, unable to route traffic (when load tap-inject, 
traffic stop passing), and now only see cpp0, cpp1, and vpp2 for local0.

Deleteing all the folders and compiling again.

Thanks

Demian

> El 17 may. 2018, a las 10:45, Wang  escribió:
> 
> I will take a look at it. Thanks
> 
> 2018-05-17 0:12 GMT-04:00 Demian Pecile  >:
> Hi Wang trying last version.
> I have cannot find -lrtnl error.
> 
> Any idea ?
> 
> its working with last versions ?
> 
>  Arch for platform 'vpp' is native 
>  Finding source for router 
>  Makefile fragment found in /vpp/build-data/packages/router.mk 
>  
>  Source found in /vpp/router 
>  Configuring router: nothing to do 
>  Building router in /vpp/build-root/build-vpp-native/router 
> make[1]: Entering directory '/vpp/build-root/build-vpp-native/router'
>   CC   router/tap_inject_netlink.lo
>   CCLD router.la 
> /usr/bin/ld: cannot find -lrtnl
> collect2: error: ld returned 1 exit status
> Makefile:444: recipe for target 'router.la ' failed
> make[1]: *** [router.la ] Error 1
> make[1]: Leaving directory '/vpp/build-root/build-vpp-native/router'
> Makefile:691: recipe for target 'router-build' failed
> make: *** [router-build] Error 2
> 
> 
> 
>> El 4 mar. 2018, a las 23:38, Wang > > escribió:
>> 
>> HI Gulakh,
>> 
>> From my experience, VPP and VPPSB are compatible with the latest versions. 
>> What sequence of command lines did you use?
>> 
>> 2018-03-04 4:58 GMT-05:00 Gulakh > >:
>> Hi,
>> I am using vppsb router plugin with vpp. there is a problem when I use 
>> tap-inject.
>> The problem is that after I enable tap-inject and set interfaces' and taps' 
>> IP address, I want to make taps' state up but at this point vpp crashes and 
>> everything rolls back to its first state (No tap, No IP address, ...)
>> 
>> Q1) What is the problem??
>> 
>> Q2) I have heard that VPP and VPPSB are not compatible in some versions ... 
>> To which versions Should checkout both source code so that they can work 
>> correctly??
>> 
>> Thanks in advance
>> 
>> 
>> 
>> 
> 
> --
> Demian Pecile
> Siete Capas S.R.L.
> Periodistas Neuquinos 136 
> 
> Piso 4 - Dpto. A - 8300 Neuquen
> Argentina
> Tel +54-299-4479172 
> Cel. +549-299-5833500
> 
> 
> 

--
Demian Pecile
Siete Capas S.R.L.
Periodistas Neuquinos 136
Piso 4 - Dpto. A - 8300 Neuquen
Argentina
Tel +54-299-4479172 
Cel. +549-299-5833500



Re: [vpp-dev] router_plugin

2018-05-17 Thread Wang
I will take a look at it. Thanks

2018-05-17 0:12 GMT-04:00 Demian Pecile :

> Hi Wang trying last version.
> I have cannot find -lrtnl error.
>
> Any idea ?
>
> its working with last versions ?
>
>  Arch for platform 'vpp' is native 
>  Finding source for router 
>  Makefile fragment found in /vpp/build-data/packages/router.mk 
>  Source found in /vpp/router 
>  Configuring router: nothing to do 
>  Building router in /vpp/build-root/build-vpp-native/router 
> make[1]: Entering directory '/vpp/build-root/build-vpp-native/router'
>   CC   router/tap_inject_netlink.lo
>   CCLD router.la
> /usr/bin/ld: cannot find -lrtnl
> collect2: error: ld returned 1 exit status
> Makefile:444: recipe for target 'router.la' failed
> make[1]: *** [router.la] Error 1
> make[1]: Leaving directory '/vpp/build-root/build-vpp-native/router'
> Makefile:691: recipe for target 'router-build' failed
> make: *** [router-build] Error 2
>
>
>
> El 4 mar. 2018, a las 23:38, Wang  escribió:
>
> HI Gulakh,
>
> From my experience, VPP and VPPSB are compatible with the latest versions.
> What sequence of command lines did you use?
>
> 2018-03-04 4:58 GMT-05:00 Gulakh :
>
>> Hi,
>> I am using vppsb router plugin with vpp. there is a problem when I use
>> tap-inject.
>> The problem is that after I enable tap-inject and set interfaces' and
>> taps' IP address, I want to make taps' state up but at this point vpp
>> crashes and everything rolls back to its first state (No tap, No IP
>> address, ...)
>>
>> Q1) What is the problem??
>>
>> Q2) I have heard that VPP and VPPSB are not compatible in some versions
>> ... To which versions Should checkout both source code so that they can
>> work correctly??
>>
>> Thanks in advance
>>
>>
>>
>>
> 
>
>
> --
> Demian Pecile
> Siete Capas S.R.L.
> Periodistas Neuquinos 136
> 
> Piso 4 - Dpto. A - 8300 Neuquen
> Argentina
> Tel +54-299-4479172
> Cel. +549-299-5833500
>
>


Re: [vpp-dev] router plugin improvements

2018-05-17 Thread Wang
Hi Tom,

You can enable router-plugin by adding "enable tap-inject" in the startup
config file.

unix {
  nodaemon
  log /var/log/vpp/vpp.log
  full-coredump
  cli-listen /run/vpp/cli.sock
  gid vpp
  exec /vpp.init
}

in vpp.init you can write

"enable tap-inject"

Thanks
Chad

2018-05-17 2:11 GMT-04:00 Glaza :

> Hi
>
> At the beginning I would like to thank for router plugin.
>
> Actually my systemd service to start vpp looks like:
>
> ExecStart=/usr/bin/vpp -c /etc/vpp/startup.conf
> ExecStartPost=-/bin/sleep 5
> ExecStartPost=-/sbin/ip link set dev vpp0 up
> ExecStartPost=-/sbin/ip address add 10.0.0.14/30 dev vpp0
>
> Is there any better way to start vpp with router plugin enabled? It would
> be nice to have it in configuration like in https://github.com/iqiyi/dpvs
> where rte_kni.ko is used to make similar functionality.
>
> Thanks,
> Tom
>
>
>
> 
>
>


[vpp-dev] router plugin improvements

2018-05-17 Thread Glaza
Hi

At the beginning I would like to thank for router plugin.

Actually my systemd service to start vpp looks like:

ExecStart=/usr/bin/vpp -c /etc/vpp/startup.conf
ExecStartPost=-/bin/sleep 5
ExecStartPost=-/sbin/ip link set dev vpp0 up
ExecStartPost=-/sbin/ip address add 10.0.0.14/30 dev vpp0

Is there any better way to start vpp with router plugin enabled? It would be 
nice to have it in configuration like in https://github.com/iqiyi/dpvs where 
rte_kni.ko is used to make similar functionality.

Thanks,
Tom



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

You receive all messages sent to this group.

View/Reply Online (#9316): https://lists.fd.io/g/vpp-dev/message/9316
View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/19284371
Mute This Topic: https://lists.fd.io/mt/19284371/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] Highly available VPP

2018-05-17 Thread Glaza
Hi

I am using vpp 18.04 with lacp and router plugin and looking for a way to make 
it highly available. Does anyone now how to achieve this, for example using 
keepalived+VRRP?

Thanks,
Tom



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

You receive all messages sent to this group.

View/Reply Online (#9315): https://lists.fd.io/g/vpp-dev/message/9315
View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/19284370
Mute This Topic: https://lists.fd.io/mt/19284370/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 create a CSIT topology file?

2018-05-17 Thread 汤超
cd ${CSIT_DIR}
export PYTHONPATH=$(pwd)
./resources/tools/topology/update_topology.py -f -v -o 
topologies/available/vagrant_pci.yaml topologies/available/vagrant.yaml
According to this step, I have the following error:
(env) root@ubuntu:/csit# ./resources/tools/topology/update_topology.py -f -v -o 
topologies/available/vagrant_pci.yaml topologies/available/vagrant.yaml
Traceback (most recent call last):
   File "./resources/tools/topology/update_topology.py", line 27, 
in 
from resources.libraries.python.ssh import SSH
   File "/csit/resources/libraries/python/ssh.py", line 23, in 

from scp import SCPClient
   ImportError: No module named scp


I've tried it :
(env) root@ubuntu:/csit# sudo pip install SSH
Requirement already satisfied (use --upgrade to upgrade): SSH in 
/usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): pycrypto!=2.4,>=2.1 
in /usr/lib/python2.7/dist-packages (from SSH)
You are using pip version 8.1.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

(env) root@ubuntu:/csit# sudo pip install  SCPClient
Collecting SCPClient
  Downloading 
https://files.pythonhosted.org/packages/2d/53/19b5fe3db38c349d877a1ac9af898de0ac2c36f26a1730cd1c1ab2b2001b/scpclient-0.7-py2-none-any.whl
Installing collected packages: SCPClient
Successfully installed SCPClient-0.7
You are using pip version 8.1.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

How should I solve it?


nwnj...@fiberhome.com


Re: [EXT] [vpp-dev] Marvell's AI from last call

2018-05-17 Thread Nitin Saxena

Hi Damjan,

This request was discussed in FD.io ARM call in order to optimize 
dpdk-input node for ARM platforms. Macchiatobin is one common platform 
where almost all ARM stakeholders are working on and profiling 
data/details can be easily shared among them.


Thanks,
Nitin

On Wednesday 16 May 2018 11:37 PM, Damjan Marion wrote:


Hi Natalie,

Who requested that?

Thanks,

--
Damjan

On 16 May 2018, at 15:33, Natalie Samsonov > wrote:


Dear Damjan,
As I understood, it was a request to use DPDK plugin with all 
platforms and I was asked to upstream Marvell DPDK plugin.

Best Regards,
Natalie
*From:*Damjan Marion [mailto:dmarion.li...@gmail.com]
*Sent:*Wednesday, May 16, 2018 16:03
*To:*Natalie Samsonov >
*Cc:*Tina Tsou >;vpp-dev@lists.fd.io 
; Maen Suleiman >

*Subject:*[EXT] Re: [vpp-dev] Marvell's AI from last call
External Email

Dear Natalie,
What is the point of using DPDK marvel driver (which is actually just 
a wrapper around musdk) if we already have native musdk support in vpp?

--
Damjan


On 15 May 2018, at 08:48, Natalie Samsonov > wrote:
Hi,
1.We are working now on upstreaming Marvell’s PMD support in VPP
DPDK plugin.
I’m attaching the patch as well in case you want play with it.
2.Regarding the L3FWD performance difference between MUSDK and
DPDK, currently we don’t have numbers with VPP L3FW.
We only have  the numbers with two different applications. One is
our own L3FW application running on top of MUSDK and other is a
standard DPDL L3FWD application, so it’s not a fair comparison.
Best Regards,
Natalie Samsonov
<0001-plugins-dpdk-Add-support-for-net_mrvl-dpdk-driver.patch>





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

You receive all messages sent to this group.

View/Reply Online (#9313): https://lists.fd.io/g/vpp-dev/message/9313
View All Messages In Topic (2): https://lists.fd.io/g/vpp-dev/topic/19249841
Mute This Topic: https://lists.fd.io/mt/19249841/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] query on use_pthread in startup.conf

2018-05-17 Thread bindiya Kurle
Hi all,
I am tried to use use_pthread in startup.conf.but still it takes
Tried following option for creating multiple threads

cpu {
use-pthreads

   main-core 1
   corelist-workers 2,3
}

With this config , code always hit else part of below config  ,
file : src/vlib/threads.c

 if (tr->use_pthreads || tm->use_pthreads)
{

  for (j = 0; j < tr->count; j++)
{
  w = vlib_worker_threads + worker_thread_index++;
  err = vlib_launch_thread_int (vlib_worker_thread_bootstrap_fn,
w, 0);
  if (err)
clib_error_report (err);
}

}










*else{  uword c;  /* *INDENT-OFF* */
clib_bitmap_foreach (c, tr->coremask, ({w = vlib_worker_threads
+ worker_thread_index++;err = vlib_launch_thread_int
(vlib_worker_thread_bootstrap_fn,
w, c);if (err)  clib_error_report (err);
}));*
  /* *INDENT-ON* */
}

Can somebody help how can I create multiple thread using pthread instead
dpdk_launch_thread?


Regards,
Bindiya