Re: [vpp-dev] SPAN feature backport

2018-06-15 Thread Harish Patil
Hi Damjan,

Thanks for the response and your suggestions.
Yes I too noticed that buffer clone API like vlib_buffer_copy() is missing.
Let me check if there is a way out to move to newer VPP in our project.
Shall get back if we have more questions.

Thanks,
Harish






On Fri, Jun 15, 2018 at 8:46 AM, Damjan Marion  wrote:

>
> That's pretty bad idea. Beside feature arcs, SPAN is also using buffer
> cloning which is introduced post 16.06.
>
> 16.06 is very old release, not maintained, strongly suggest to move to new
> version...
>
>
> On 15 Jun 2018, at 17:07, Harish Patil  wrote:
>
> Hi,
>
> I are currently using VPP 16.06 release.
> We would like to enable SPAN feature (port mirroring) in 16.06, but it is
> available only in VPP 17.01 release and above. It seems SPAN module depends
> on vnet feature arc (vnet/feature/).
> So my question is can we bypass vnet feature arc using some workaround and
> backport it into 16.06? If so, how easy or difficult would be that?
> Are there any other alternates besides upgrading VPP?
>
> Thanks,
>
> Harish
>
>
> 
>
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#9630): https://lists.fd.io/g/vpp-dev/message/9630
Mute This Topic: https://lists.fd.io/mt/22296204/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] SPAN feature backport

2018-06-15 Thread Damjan Marion

That's pretty bad idea. Beside feature arcs, SPAN is also using buffer cloning 
which is introduced post 16.06.

16.06 is very old release, not maintained, strongly suggest to move to new 
version...


> On 15 Jun 2018, at 17:07, Harish Patil  wrote:
> 
> Hi,
> 
> I are currently using VPP 16.06 release.
> We would like to enable SPAN feature (port mirroring) in 16.06, but it is 
> available only in VPP 17.01 release and above. It seems SPAN module depends 
> on vnet feature arc (vnet/feature/).
> So my question is can we bypass vnet feature arc using some workaround and 
> backport it into 16.06? If so, how easy or difficult would be that? 
> Are there any other alternates besides upgrading VPP?
> 
> Thanks,
> 
> Harish
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#9629): https://lists.fd.io/g/vpp-dev/message/9629
Mute This Topic: https://lists.fd.io/mt/22296204/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] SPAN feature backport

2018-06-15 Thread Harish Patil
Hi,

I are currently using VPP 16.06 release.
We would like to enable SPAN feature (port mirroring) in 16.06, but it is
available only in VPP 17.01 release and above. It seems SPAN module depends
on vnet feature arc (vnet/feature/).
So my question is can we bypass vnet feature arc using some workaround and
backport it into 16.06? If so, how easy or difficult would be that?
Are there any other alternates besides upgrading VPP?

Thanks,

Harish

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#9628): https://lists.fd.io/g/vpp-dev/message/9628
Mute This Topic: https://lists.fd.io/mt/22296204/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] How to disable assert in VPP

2018-06-15 Thread Dave Barach via Lists.Fd.Io
As you’ve seen, ASSERTs are not compiled into production images. There are far 
too many of them to simply change the macro in CLIB_DEBUG=0 images and expect 
anything like acceptable performance.

I would guess it’s at least a 50% hit. A -g -O0 (TAG=vpp_debug) image is often 
an order-of-magnitude slower than a production image for a given use-case.

When I decide that an error condition warrants checking in production images, I 
generally use a clib_warning(...); abort(); pair.

There’s no point in submitting a patch which changes the ASSERT macro, it will 
not be merged.

D.

From: vpp-dev@lists.fd.io  On Behalf Of chetan bhasin
Sent: Friday, June 15, 2018 5:11 AM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] How to disable assert in VPP

Hi ,

For deployment , we want to replace assert with error log. Is there a way in 
VPP to do that?

Thanks,
Chetan


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#9627): https://lists.fd.io/g/vpp-dev/message/9627
Mute This Topic: https://lists.fd.io/mt/22293940/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Problem of policer configure

2018-06-15 Thread ??????

Hello. In our configuration process, it is not clear where the policer speed 
limit is on the inbound flow rate or the output direction speed limit on the 
interface. If it is in the direction, it would like to configure how the speed 
limit of the output direction should be configured.
set int state GigabitEthernet1/0/0  up
set int state GigabitEthernet2/0/0  up
set int ip address  GigabitEthernet1/0/0 1.1.1.1/24
set int ip address  GigabitEthernet2/0/0 2.1.1.1/24
classify table table-index 0 mask l3 ip4 dst
configure policer name test cir 100 cb 50 rate kbps conform-action transmit
classify session policer-hit-next test table-index 0 match l3 ip4 dst 1.1.1.2
set policer classify interface GigabitEthernet2/0/0 ip4-table 0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#9626): https://lists.fd.io/g/vpp-dev/message/9626
Mute This Topic: https://lists.fd.io/mt/22294608/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [EXTERNAL] [vpp-dev] How to disable assert in VPP

2018-06-15 Thread Chris Luke
You can provide your own ASSERT mechanism in vppinfra/error_bootstrap.h

As is typical, we do not compile ASSERTs for non-debug builds. They add a 
measurable overhead and peak forwarding performance will be impacted.

Chris.

From: vpp-dev@lists.fd.io  On Behalf Of chetan bhasin
Sent: Friday, June 15, 2018 5:11
To: vpp-dev@lists.fd.io
Subject: [EXTERNAL] [vpp-dev] How to disable assert in VPP

Hi ,

For deployment , we want to replace assert with error log. Is there a way in 
VPP to do that?

Thanks,
Chetan


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#9625): https://lists.fd.io/g/vpp-dev/message/9625
Mute This Topic: https://lists.fd.io/mt/22294474/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [EXTERNAL] [vpp-dev] VPP & CPU

2018-06-15 Thread Chris Luke
Since those are all Intel platforms and you propose building on an Intel 
platform, just build and use it as-is. If you're not modifying anything just 
use the packages we produce.

Most of the performance critical places that make use of CPU optimizations do 
some magic to build more than one version of a function with different CPU 
optimizations and then select the correct version when the runtime linker loads 
the binary. That means we need not worry about cross-compiling for specific 
optimizations within an architecture.

Chris

From: vpp-dev@lists.fd.io  On Behalf Of xulang
Sent: Friday, June 15, 2018 4:57
To: vpp-dev@lists.fd.io
Subject: [EXTERNAL] [vpp-dev] VPP & CPU

Hi all,
I want to run vpp on those kinds of CPU, such as N2600 D525 2117U.
Is that possible? How can I do it if I build vpp on CPU I7?


Regards,
xlangyun





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#9624): https://lists.fd.io/g/vpp-dev/message/9624
Mute This Topic: https://lists.fd.io/mt/22294408/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] How to disable assert in VPP

2018-06-15 Thread chetan bhasin
Hi ,

For deployment , we want to replace assert with error log. Is there a way
in VPP to do that?

Thanks,
Chetan

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#9623): https://lists.fd.io/g/vpp-dev/message/9623
Mute This Topic: https://lists.fd.io/mt/22293940/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] Integration with libbacktrace

2018-06-15 Thread Kingwel Xie
Done patch:

https://gerrit.fd.io/r/13070

1. make use of glic backtrace in execinfo.h. the old clib_backtrace is changed 
to clib_backtrace_no_good
   the old one is using __builtin_frame_address which can not retrieve stack 
trace in release version (don’t know why)
2. install SIGABRT in signal handler, but have to remove it when backtrace is 
done
   reason is we want to capture stack trace caused by SIGABRT. vPP ASSERT 
always call os_exit then abort()
   we definitely want to know the trace of this situation. It is a little 
tricky to avoid SIGABRT infinite loop
3. A text log file will be generated as well as the output to stderr. we'd like 
to have a simple file to trace the crash
   this file generation can be removed if vPP thinks it is not suitable
4. always load symbols by calling   clib_elf_main_init () in main(). Otherwise, 
only addresses can be displayed.

In the end, this is what we got:

……
load_one_plugin:189: Loaded plugin: srv6ad_plugin.so (Dynamic SRv6 proxy)
load_one_plugin:189: Loaded plugin: srv6am_plugin.so (Masquerading SRv6 proxy)
load_one_plugin:189: Loaded plugin: srv6as_plugin.so (Static SRv6 proxy)
load_one_plugin:189: Loaded plugin: stn_plugin.so (VPP Steals the NIC for 
Container integration)
load_one_plugin:189: Loaded plugin: tlsmbedtls_plugin.so (mbedtls based TLS 
Engine)
load_one_plugin:189: Loaded plugin: tlsopenssl_plugin.so (openssl based TLS 
Engine)
Writing crashdump to ./crashdump-2018-06-15-04-55-45.log ...
#0  0x7f872383d0bc generate_crash_backtrace + 0xfe
#1  0x7f872383d366 unix_signal_handler + 0x1b3
#2  0x7f872206f390 0x7f872206f390
#3  0x7f87222c89a8 hash_header_bytes + 0x2a
#4  0x7f87222c8a04 hash_header + 0x27
#5  0x7f87222ca554 _hash_get + 0x2b
#6  0x7f87222ed17a mheap_get_trace + 0x18e
#7  0x7f87222ea9db mheap_get_aligned + 0x236
#8  0x7f872233fe6a clib_mem_alloc_aligned_at_offset + 0xa5
#9  0x7f872234020a vec_resize_allocate_memory + 0x6f
#10 0x7f87222bbf4a _vec_resize_inline + 0x136
#11 0x7f87222bcf9a do_percent + 0xcb6
#12 0x7f87222bd407 va_format + 0x113
#13 0x7f87222bd5a0 format + 0xb8
#14 0x7f872259614a shm_name_from_svm_map_region_args + 0x32d
Aborted (core dumped)
Makefile:446: recipe for target 'run' failed


From: Damjan Marion 
Sent: Thursday, June 14, 2018 8:31 PM
To: Dave Barach ; Kingwel Xie 
Cc: vpp-dev 
Subject: Re: [vpp-dev] Integration with libbacktrace


+1, send to stderr so systemd can pick it up

Thanks for your contribution...


On 14 Jun 2018, at 14:21, Dave Barach via Lists.Fd.Io 
mailto:dbarach=cisco@lists.fd.io>> wrote:

Sure. Personally, I'd send the backtrace to syslog vs. creating yet-another 
logfile.

D.

-Original Message-
From: vpp-dev@lists.fd.io 
mailto:vpp-dev@lists.fd.io>> On Behalf Of Kingwel Xie
Sent: Thursday, June 14, 2018 2:54 AM
To: Kingwel Xie mailto:kingwel@ericsson.com>>; 
Damjan Marion mailto:dmar...@me.com>>
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Integration with libbacktrace

Hi,

Finally I removed libbacktrace dependency, but to use glibc 'backtrace' which 
can be found in execinfo.h.

The generated crashdump will look like below. I can create a patch if you think 
it is valuable.

Regards,
Kingwel

---
DBGvpp#
DBGvpp# test crash

Thread 1 "kw_main" received signal SIGSEGV, Segmentation fault.
0x00407ace in test_crash_command_fn (vm=0x77b89ac0 
, input=0x7fffbceabee0, cmd=0x7fffbcdda1a0)
   at /home/vppshare/kingwel/vpp/build-data/../src/vpp/vnet/main.c:387
/home/vppshare/kingwel/vpp/src/vpp/vnet/main.c:387:8300:beg:0x407ace
(gdb) c
Continuing.
Writing crashdump to ./crashdump-2018-06-14-06-51-53.log ...
#0  0x7794a428 unix_signal_handler + 0x2e7
#1  0x76168390 0x76168390
#2  0x00407ace test_crash_command_fn + 0x53
#3  0x7789bd47 vlib_cli_dispatch_sub_commands + 0xc27
#4  0x7789bc55 vlib_cli_dispatch_sub_commands + 0xb35
#5  0x7789c02c vlib_cli_input + 0xc0
#6  0x77940ac0 unix_cli_process_input + 0x2dc
#7  0x779415e2 unix_cli_process + 0x94
#8  0x778db84d vlib_process_bootstrap + 0x66
#9  0x763ca8a8 0x763ca8a8

Thread 1 "kw_main" received signal SIGABRT, Aborted.
0x75bbe428 in __GI_raise (sig=sig@entry=6) at 
../sysdeps/unix/sysv/linux/raise.c:54
54  ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x75bbe428 in __GI_raise (sig=sig@entry=6) at 
../sysdeps/unix/sysv/linux/raise.c:54
#1  0x75bc002a in __GI_abort () at abort.c:89
#2  0x004079c9 in os_exit (code=1) at 
/home/vppshare/kingwel/vpp/build-data/../src/vpp/vnet/main.c:334
#3  0x7794a528 in unix_signal_handler (signum=11, si=0x7fffbceab6f0, 
uc=0x7fffbceab5c0)
   at /home/vppshare/kingwel/vpp/build-data/../src/vlib/unix/main.c:181
#4  
#5  0x004

[vpp-dev] VPP & CPU

2018-06-15 Thread xulang
Hi all,
I want to run vpp on those kinds of CPU, such as N2600 D525 2117U.
Is that possible? How can I do it if I build vpp on CPU I7?




Regards,
xlangyun
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#9621): https://lists.fd.io/g/vpp-dev/message/9621
Mute This Topic: https://lists.fd.io/mt/22293893/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-