Re: [vpp-dev] string test failing

2018-12-14 Thread Dave Barach via Lists.Fd.Io
Please revert https://gerrit.fd.io/r/#/c/16429/ and report results. -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Stephen Hemminger Sent: Friday, December 14, 2018 2:58 PM To: vpp-dev@lists.fd.io Subject: [vpp-dev] string test failing String tests now failing on Debian testi

Re: [vpp-dev] vppinfra vec alignment

2018-12-14 Thread Dave Barach via Lists.Fd.Io
I’ve +2ed the patch, feel free to submit when verified... Thanks for fixing the doxygen tag... D From: vpp-dev@lists.fd.io On Behalf Of Dave Wallace Sent: Friday, December 14, 2018 9:19 AM To: Dave Barach (dbarach) ; dmar...@me.com; Mohammed Alshohayeb Cc: vpp-dev@lists.fd.io Subject: Re

Re: [vpp-dev] first packet to yet unknown IP is lost

2018-12-14 Thread Dave Barach via Lists.Fd.Io
Have your favorite orchestrator prepopulate arp / ND tables. APIs are available. From: Andreas Schultz Sent: Friday, December 14, 2018 8:32 AM To: Dave Barach (dbarach) Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] first packet to yet unknown IP is lost Dave Barach (dbarach) mailto:dbar

Re: [vpp-dev] first packet to yet unknown IP is lost

2018-12-14 Thread Dave Barach via Lists.Fd.Io
This is a conscious design decision / best practice used in routers for decades. We’re not going to change this behavior. Imagine what happens when a DDoS attack sends one packet to each of a large number of nonexistent hosts behind a certain router: all of its packet buffers end up on a reinje

Re: [vpp-dev] vppinfra vec alignment

2018-12-13 Thread Dave Barach via Lists.Fd.Io
Thanks for this one... If you can spare the time, please fix the doxygen tag / comment in .../src/vppinfra/vec.h... From: vpp-dev@lists.fd.io On Behalf Of Dave Wallace Sent: Thursday, December 13, 2018 12:33 PM To: dmar...@me.com; Mohammed Alshohayeb Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-de

Re: [vpp-dev] get the same IP address from DHCP server for two VPP DHCP clients

2018-12-12 Thread Dave Barach via Lists.Fd.Io
What’s needed here is a proper seed, just as Neale wrote. It’s a ONE LINE change. Simply read the CPU tick register and you’re done. D. From: Hu, Xuekun Sent: Tuesday, December 11, 2018 9:02 PM To: Neale Ranns (nranns) ; Dave Barach (dbarach) ; vpp-dev Subject: RE: [vpp-dev] get the same IP

Re: [vpp-dev] perfmon plugin

2018-12-11 Thread Dave Barach via Lists.Fd.Io
:18 AM To: Dave Barach (dbarach) ; vpp-dev Subject: [vpp-dev] perfmon plugin Hi Dave, I’m looking at the perfmon plugin. It is a fantastic tool tuning node performance, extremely helpful. Thanks for the great contribution. Here I got a question about ‘cpu-cycles’ event. It shows very different

Re: [vpp-dev] get the same IP address from DHCP server for two VPP DHCP clients

2018-12-10 Thread Dave Barach via Lists.Fd.Io
Just to ask: is there any chance that the 2x UUT’s are using the same MAC address by mistake? D. From: vpp-dev@lists.fd.io On Behalf Of Xuekun Sent: Monday, December 10, 2018 9:05 AM To: Dave Barach (dbarach) ; vpp-dev Subject: Re: [vpp-dev] get the same IP address from DHCP server for two

Re: [vpp-dev] get the same IP address from DHCP server for two VPP DHCP clients

2018-12-10 Thread Dave Barach via Lists.Fd.Io
This sounds more like dhcp server misconfiguration than a dhcp client bug in vpp, but anyway... You can submit a Jira ticket, but it will end up in "information request" state immediately if it doesn't include a pcap capture which shows both transactions. The vpp dhcp client code is not new, an

Re: [vpp-dev] Timer expiry spikes in TW timer implementation

2018-12-08 Thread Dave Barach via Lists.Fd.Io
Probably due to the vpp process sitting in an epoll_pwait(). See .../src/vlib/unix/input.c:linux_epoll_input_inline(...). The tw_timer code does its best, but if you don’t call the tw_timer_expire_timers_XXX(...) method precisely it won’t yield the sort of precision you’re looking for. If you

Re: [vpp-dev] String tests failures

2018-12-06 Thread Dave Barach via Lists.Fd.Io
Glad to hear that. I'm not surprised, the problem was anything but subtle... D. From: vpp-dev@lists.fd.io On Behalf Of Juraj Linkeš Sent: Thursday, December 6, 2018 4:13 AM To: Dave Barach (dbarach) ; Lijian Zhang (Arm Technology China) Cc: Damjan Marion ; Steven Luong (sluong) ; vp

Re: [vpp-dev] Heap allocation

2018-12-05 Thread Dave Barach via Lists.Fd.Io
You can have as many heaps as you need. There is no inherent limit. The constant CLIB_MAX_MHEAPS has to do with the number of distinct thread-id’s which os_get_thread_index() will return. This guitar-lick means “temporarily use the supplied heap for all allocations”: void *oldheap = clib_mem_

Re: [vpp-dev] String tests failures

2018-12-05 Thread Dave Barach via Lists.Fd.Io
en aarch64 and x86_64. HTH... Dave From: Lijian Zhang (Arm Technology China) Sent: Wednesday, December 5, 2018 4:39 AM To: Dave Barach (dbarach) Cc: Juraj Linkeš ; Dave Barach (dbarach) ; Damjan Marion Subject: String tests failures Hi Dave, StringTest is failing on ARM machines. I narrowe

Re: [vpp-dev] ip_reassembly_enable_disable api

2018-12-01 Thread Dave Barach via Lists.Fd.Io
Merged, thanks for the fix... Dave From: vpp-dev@lists.fd.io On Behalf Of emma sdi Sent: Saturday, December 1, 2018 9:06 AM To: vpp-dev Subject: [vpp-dev] ip_reassembly_enable_disable api Dear VPP https://gerrit.fd.io/r/#/c/16236/ is updated(i had an unknown problem with build and it was fixe

Re: [vpp-dev] Regarding own pthreads

2018-11-28 Thread Dave Barach via Lists.Fd.Io
The main vpp heap is thread-safe, so yes, you can use clib_mem_alloc(...) / clib_mem_free(...). Please use the VLIB_REGISTER_THREAD(...) macro, which offers a number of controls beyond "just go spin up a thread..." D. -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Prashant

Re: [vpp-dev] SIGSEGV after calling vlib_get_frame_to_node

2018-11-28 Thread Dave Barach via Lists.Fd.Io
None of the routine names in the backtrace exist in master/latest – it’s your code - so it will be challenging for the community to help you. See if you can repro the problem with a TAG=vpp_debug images (aka “make build” not “make build-release”). If you’re lucky, one of the numerous ASSERTs wil

Re: [vpp-dev] About in-band telnet/ssh support of VPP

2018-11-27 Thread Dave Barach via Lists.Fd.Io
er 27, 2018 12:19 AM To: 'Hu, Xuekun' ; Dave Barach (dbarach) ; vpp-dev@lists.fd.io Subject: RE: [vpp-dev] About in-band telnet/ssh support of VPP Partially completed work will also be welcome if you agree to share. Or you can just push your temporary work to sandbox gerrit so that anyone

Re: [vpp-dev] About in-band telnet/ssh support of VPP

2018-11-26 Thread Dave Barach via Lists.Fd.Io
Please do not use the vpp host stack to listen to port 23 (telnet) on a network-facing interface. You could do that, but please don't do that. All you would need to add is a well-known default password, and you would have created a super-trivial attack surface for your product. Florin and I are

Re: [vpp-dev] Performance test issues : Average cpu time cost changes as the tx speed changes.

2018-11-23 Thread Dave Barach via Lists.Fd.Io
You just demonstrated one of the basic properties of vector packet processing: as the offered load increases, the cost per vector element decreases. Although you didn’t explicitly report the vector sizes involved, the vector size necessarily increases as the offered load increases. Anyhow, it’s

Re: [vpp-dev] Difference between PRE_INPUT and INPUT nodes

2018-11-22 Thread Dave Barach via Lists.Fd.Io
for node, see vlib_node_state_t */ void vlib_node_set_state (vlib_main_t * vm, u32 node_index, vlib_node_state_t new_state) -Original Message- From: Prashant Upadhyaya Sent: Thursday, November 22, 2018 8:53 AM To: Dave Barach (dbarach) Cc: vpp-dev@lists.fd.io Subject: Re: [vpp

Re: [vpp-dev] Difference between PRE_INPUT and INPUT nodes

2018-11-22 Thread Dave Barach via Lists.Fd.Io
Use VLIB_NODE_TYPE_INPUT. Pre-input nodes - of which there is one - exist to make sure that a certain epoll(...) call happens at the top of the loop. D. -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Prashant Upadhyaya Sent: Thursday, November 22, 2018 7:41 AM To: vpp-dev@lis

Re: [vpp-dev] Getting crash while running load on VPP18.01 for 6 hours

2018-11-20 Thread Dave Barach via Lists.Fd.Io
See https://wiki.fd.io/view/VPP/Pulling,_Building,_Running,_Hacking_and_Pushing_VPP_Code#Pushing_Code_with_git_review From: chetan bhasin Sent: Tuesday, November 20, 2018 11:43 AM To: Dave Barach (dbarach) Subject: Re: [vpp-dev] Getting crash while running load on VPP18.01 for 6 hours Thanks

Re: [vpp-dev] VPP crashes out of vlib_worker_thread_barrier_sync_int while workers stuck in clib_bihash_add_del

2018-11-20 Thread Dave Barach via Lists.Fd.Io
See previous email about 18.01 support. Much has changed in the code base in the last year. You would be well-advised to move to 18.10 at your earliest possible convenience. To start working out what’s wrong: grab one of the worker threads in gdb, and see what it’s doing. Possibilities include

Re: [vpp-dev] Getting crash while running load on VPP18.01 for 6 hours

2018-11-20 Thread Dave Barach via Lists.Fd.Io
Several suggestions: * Try a debug image (PLATFORM=vpp TAG=vpp_debug) so the crash will be more enlightening * Switch to 18.10. 18.01 is no longer supported. We don’t use the mheap.c memory allocator anymore, and so on and so forth. * See https://wiki.fd.io/view/VPP/BugReports Fro

Re: [vpp-dev] VPP coredump question

2018-11-19 Thread Dave Barach via Lists.Fd.Io
See https://wiki.fd.io/view/VPP/BugReports "Core Files" section. From: vpp-dev@lists.fd.io On Behalf Of Rubina Bianchi Sent: Monday, November 19, 2018 8:05 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] VPP coredump question Hi Dear VPP I have two question about vpp coredump. How can I use full-

[vpp-dev] Andrew Yourtchenko is now a vpp project committer!

2018-11-15 Thread Dave Barach via Lists.Fd.Io
The TSC formally approved Andrew's vpp committer nomination a short while ago. Congratulations, and thanks in advance for your participation as a committer. Dave -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11261): https://lists.fd.io/g/vpp-dev

Re: [vpp-dev] ip4-load-balance

2018-11-14 Thread Dave Barach via Lists.Fd.Io
+1, "vpp# show hardware" and "$ cat /proc/cpuinfo" to make sure that the selected cores are on the right NUMA socket... HTH... Dave -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Vratko Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io Sent: Wednesday, Nove

[vpp-dev] Holiday meeting cancellations

2018-11-13 Thread Dave Barach via Lists.Fd.Io
Folks, As discussed during today's vpp project call, we will NOT hold vpp project calls on either 2018-12-25 or 2019-01-01. Meetings will resume on 2019-01-08. Happy Holidays... Thanks... Dave -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1122

Re: [vpp-dev] VPP not starting under centos on VIRL

2018-11-13 Thread Dave Barach via Lists.Fd.Io
Try fixing this problem, reported in the Jenkins job log: Identified problems virl nfs mount failure virl simulated node not mounting nfs directory properly Indication 1

Re: [vpp-dev] Example code of a VPP based application?

2018-11-12 Thread Dave Barach via Lists.Fd.Io
Take a look at https://fdio-vpp.readthedocs.io/en/latest, https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/index.html, and https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/add_plugin.html. HTH... Dave From: vpp-dev@lists.fd.io On Behalf Of Staffan Wiklun

Re: [vpp-dev] Regarding dead client scan in shared memory interface (vl api)

2018-11-12 Thread Dave Barach via Lists.Fd.Io
Please submit this as a draft patch, and add me as a reviewer. Thanks... Dave -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Prashant Upadhyaya Sent: Monday, November 12, 2018 1:21 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] Regarding dead client scan in shared memory interfa

Re: [vpp-dev] Regarding communication from main thread to worker threads

2018-11-11 Thread Dave Barach via Lists.Fd.Io
Yes, it should be easy to cherry-pick into any release where it's needed. HTH... Dave -Original Message- From: Prashant Upadhyaya Sent: Sunday, November 11, 2018 3:05 PM To: Dave Barach (dbarach) Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] Regarding communication from main t

Re: [vpp-dev] Regarding communication from main thread to worker threads

2018-11-11 Thread Dave Barach via Lists.Fd.Io
Check out src/plugins/perfmon/perfmon_periodic.c for one take on that problem... Dave -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Prashant Upadhyaya Sent: Sunday, November 11, 2018 2:37 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] Regarding communication from main thread t

Re: [vpp-dev] vlib_buffer_alloc error

2018-11-10 Thread Dave Barach via Lists.Fd.Io
Dear Ewan, Please consider moving to vpp 18.10. 17.04 is not supported anymore. Thanks... Dave From: vpp-dev@lists.fd.io On Behalf Of xulang Sent: Saturday, November 10, 2018 4:37 AM To: xulang Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] vlib_buffer_alloc error My version is 17.04. At

Re: [vpp-dev] New Committer Nomination: Andrew Yourtchenko

2018-11-08 Thread Dave Barach via Lists.Fd.Io
+1 Dave -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Dave Barach via Lists.Fd.Io Sent: Thursday, November 8, 2018 7:14 AM To: vpp-dev@lists.fd.io Cc: vpp-dev@lists.fd.io Subject: [vpp-dev] New Committer Nomination: Andrew Yourtchenko In view of significant code

[vpp-dev] New Committer Nomination: Andrew Yourtchenko

2018-11-08 Thread Dave Barach via Lists.Fd.Io
In view of significant code contributions to the vpp project - see below - I'm pleased to nominate Andrew Yourtchenko as a vpp project committer. I have high confidence that he'll be a major asset to the project in a committer role. Andrew has contributed 181 merged patches, including signific

Re: [vpp-dev] vppctl issue

2018-11-07 Thread Dave Barach via Lists.Fd.Io
+1. If the vpp service is running - and you're using the distributed version of /etc/vpp/startup.conf - you'll see this stanza: api-segment { gid vpp } Make sure that the user running vppctl is either in the vpp group, or is root. HTH... Dave From: vpp-dev@lists.fd.io On Behalf Of alp.ars

Re: [vpp-dev] About memory debug

2018-11-06 Thread Dave Barach via Lists.Fd.Io
Sure: go look at .../src/vppinfra/{dlmalloc.[ch], mheap.[ch]} From: vpp-dev@lists.fd.io On Behalf Of tianye@sina Sent: Monday, November 5, 2018 9:23 PM To: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] About memory debug So, everybody here debug the memory issue only with code review? :) That does

Re: [vpp-dev] Incrementing node counters

2018-11-03 Thread Dave Barach via Lists.Fd.Io
timized by complier. I am still wondering how different between using xxx_node.index and node->node_index. Anyway,thanks, now I understand it is a performance consideration. Best Regards, Kingwel 原始邮件 主题: RE: Incrementing node counters 来自: "Dave Barach (dbarach)" 发

Re: [vpp-dev] Regarding vlib_buffer_alloc

2018-11-02 Thread Dave Barach via Lists.Fd.Io
See also https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/vnet.html#creating-packets-from-scratch -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Prashant Upadhyaya Sent: Friday, November 2, 2018 12:54 PM To: vpp-dev@lists.fd.io Subject: [vpp-dev] Regarding

Re: [vpp-dev] Incrementing node counters

2018-11-02 Thread Dave Barach via Lists.Fd.Io
Yes, you missed something. This pattern is used in inline functions called with compile-time constant values for is_ip6: always_inline uword ah_encrypt_inline (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * from_frame, int is_ip6) VLIB_NODE_FN (ah4_encr

Re: [vpp-dev] Run failed on 1807 version vpp code on centos7.

2018-11-01 Thread Dave Barach via Lists.Fd.Io
# rm /dev/shm/* # and try it again. From: vpp-dev@lists.fd.io On Behalf Of ??? Sent: Wednesday, October 31, 2018 11:29 PM To: vpp-dev@lists.fd.io Subject: [vpp-dev] Run failed on 1807 version vpp code on centos7. Hi, make run didn't seem to work, Logs : [root@localhost vpp]# ls bui

Re: [vpp-dev] Snooping non-IP packets

2018-10-30 Thread Dave Barach via Lists.Fd.Io
When you register a feature node on the "device-input" arc, that node will receive EVERY packet on all interfaces which have the feature enabled... -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Prashant Upadhyaya Sent: Monday, October 29, 2018 10:11 PM To: Damjan Marion Cc:

Re: [vpp-dev] NAT44 && vxlan tunnel conflict

2018-10-30 Thread Dave Barach via Lists.Fd.Io
Please send the exact config you used, and the relevant packet tracer output. From: wangchuan...@163.com Sent: Tuesday, October 30, 2018 1:13 AM To: Dave Barach (dbarach) ; vpp-dev Subject: Re: RE: [vpp-dev] NAT44 && vxlan tunnel conflict The attempt failed! Adding static mapping t

Re: [vpp-dev] Regarding vlib_buffer_t construction for tx of a self-made packet

2018-10-29 Thread Dave Barach via Lists.Fd.Io
Cool, glad you found what you needed... -Original Message- From: Prashant Upadhyaya Sent: Monday, October 29, 2018 11:48 AM To: Dave Barach (dbarach) Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] Regarding vlib_buffer_t construction for tx of a self-made packet Thanks a bunch Dave

Re: [vpp-dev] NAT44 && vxlan tunnel conflict

2018-10-29 Thread Dave Barach via Lists.Fd.Io
The NAT plugin is tossing vxlan out-to-in packets. You’ll get different results if you add a static mapping for (UDP, 4789) packets - maybe not the desired result, but at least a different result... D. From: vpp-dev@lists.fd.io On Behalf Of wangchuan...@163.com Sent: Monday, October 29, 2018

Re: [vpp-dev] Regarding vlib_buffer_t construction for tx of a self-made packet

2018-10-28 Thread Dave Barach via Lists.Fd.Io
Look at .../src/vnet/ipfix-export/flow_report.c : send_template_packet(...) for a decent example of most of the mechanics involved. Also look at .../src/vlib/buffer.c : vlib_buffer_add_data(...). If you're going to send lots of such packets, it may well improve performance to allocate a fair nu

Re: [vpp-dev] How to save VPP configuration

2018-10-26 Thread Dave Barach via Lists.Fd.Io
Here’s one simple way to do it: $ cat /etc/vpp/startup.conf unix { nodaemon log /var/log/vpp/vpp.log full-coredump cli-listen /run/vpp/cli.sock startup-config /etc/setup.gate gid vpp } From: vpp-dev@lists.fd.io On Behalf Of tianye@sina Sent: Friday, October 26, 2018 6:29 AM To: vp

Re: [vpp-dev] VPP cores out of vl_client_connect()

2018-10-25 Thread Dave Barach via Lists.Fd.Io
“# rm /dev/shm/*” and try again. The shared VM arena is persistent. From: vpp-dev@lists.fd.io On Behalf Of siddarth rai Sent: Thursday, October 25, 2018 8:44 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] VPP cores out of vl_client_connect() Hi all, I am facing VPP crash from vl_client_connect .

Re: [vpp-dev] Memory Performance issue #vpp

2018-10-24 Thread Dave Barach via Lists.Fd.Io
There is no such thing as a free lunch. If you force a fresh allocation measured in gigabytes, the memory allocator will mmap(...) a bunch of (4k) pages which will incur (expensive) pagefaults as they’re populated. Vec_validate(...) copies data when necessary. When structures grow to gigabytes,

Re: [vpp-dev] Memory Performance issue #vpp

2018-10-24 Thread Dave Barach via Lists.Fd.Io
“show memory” looks at every object in the heap, with packet processing disabled for the duration. From: vpp-dev@lists.fd.io On Behalf Of david.leitch@gmail.com Sent: Wednesday, October 24, 2018 4:58 AM To: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] Memory Performance issue #vpp hi Matus

Re: [vpp-dev] Regarding VLIB_REGISTER_NODE

2018-10-24 Thread Dave Barach via Lists.Fd.Io
Use vlib_node_add_next(...) to create the graph arc at your convenience. Memorize the arc index when you create it, so you can set e.g. next0 to the correct value in MyNode. HTH... Dave -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Prashant Upadhyaya Sent: Wednesday, Octo

Re: [vpp-dev] VPP crashing out of dead_client_scan()

2018-10-23 Thread Dave Barach via Lists.Fd.Io
Read at face value, the vpp binary API memory segment (VA range 0x3000 and above) is out of memory. The failing allocation is a request for 60 bytes, which is not an unreasonable ask. Before doing anything else, try increasing the size of the API segment and see if the problem recurs. We d

Re: [vpp-dev] How translate some ctrl data to OS ?

2018-10-23 Thread Dave Barach via Lists.Fd.Io
See https://wiki.fd.io/view/VPP/VPP_Home_Gateway for a NAT-based example. From: vpp-dev@lists.fd.io On Behalf Of wangchuan...@163.com Sent: Tuesday, October 23, 2018 2:55 AM To: vpp-dev Subject: [vpp-dev] How translate some ctrl data to OS ? Hi all, PCA have running a VPP that have only 1

Re: [vpp-dev] How are graph nodes scheduled?

2018-10-21 Thread Dave Barach via Lists.Fd.Io
See …/src/vlib/main.c, and https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/vlib.html?highlight=dispatch#graph-node-dispatcher At this level, we need to make a distinction between a vlib_pending_frame_t – a vector of buffer indices to be processed by a certain node – and the

Re: [vpp-dev] VPP crash after days of heavy traffic, next_index is not associated to an interface #vpp_stability

2018-10-21 Thread Dave Barach via Lists.Fd.Io
Thanks for the report… This is the sort of thing we need to clean up. We do very little negative testing of the form: send the kitchen sink with nothing configured. From: on behalf of JB Date: Sunday, October 21, 2018 at 9:59 AM To: "vpp-dev@lists.fd.io" Subject: Re: [vpp-dev] VPP crash after

Re: [vpp-dev] Question about VPP plugin/node's life cycle

2018-10-19 Thread Dave Barach via Lists.Fd.Io
Dear Ray, As you probably suspect: plugins are neither unloaded nor reloaded. HTH... Dave From: vpp-dev@lists.fd.io On Behalf Of Rui Cai via Lists.Fd.Io Sent: Thursday, October 18, 2018 9:43 PM To: vpp-dev@lists.fd.io Cc: vpp-dev@lists.fd.io Subject: [SUSPICIOUS] [vpp-dev] Question about VPP p

Re: [vpp-dev] Unable to build router plugin

2018-10-18 Thread Dave Barach via Lists.Fd.Io
#include and try again? -Original Message- From: vpp-dev@lists.fd.io On Behalf Of carlito nueno Sent: Wednesday, October 17, 2018 11:16 PM To: hongjun...@intel.com Cc: Mehran Memarnejad ; vpp-dev@lists.fd.io Subject: Re: [vpp-dev] Unable to build router plugin Hi Hongjun, Thanks for th

Re: [vpp-dev] Elog binary file format

2018-10-10 Thread Dave Barach via Lists.Fd.Io
There’s no reason to economize when sizing the main heap for a vppinfra application. It’s virtual memory, only pages which are in use are backed by physical pages, etc. From: on behalf of Aleksander Djuric Date: Wednesday, October 10, 2018 at 3:29 AM To: "vpp-dev@lists.fd.io" Subject: Re: [v

Re: [vpp-dev] Query regarding cli function handler

2018-10-09 Thread Dave Barach via Lists.Fd.Io
Debug CLI commands are executed in “process” [aka cooperating multitasking thread] context. As such, the stack has a fixed maximum size of 65K. See …/src/vlib/unix/cli.c, search for “.process_log2_n_stack_bytes = 16”… HTH… Dave From: on behalf of Alok Makhariya Date: Tuesday, October 9, 2018

Re: [vpp-dev] Tx packet drops - dpdk tx failure

2018-10-06 Thread Dave Barach via Lists.Fd.Io
Note the vector size. Vpp isn’t even working hard enough to run efficiently. The tx side of the interface you’re using appears to be throttled. D. From: Santosh Kumar Dornal Sent: Friday, October 5, 2018 6:30 PM To: j...@netgate.com Cc: vpp-dev@lists.fd.io; Dave Barach (dbarach) Subject: Re

Re: [vpp-dev] Tx packet drops - dpdk tx failure

2018-10-05 Thread Dave Barach via Lists.Fd.Io
I’ll let others jump in on the tx [and rx] drops. At some level, it looks the vfio device simply isn’t disposing of traffic rapidly enough. Perhaps too few buffers have been configured, but I don’t think that’s the most likely explanation. The “show run” stats are not helpful because they inclu

Re: [vpp-dev] WRED

2018-10-04 Thread Dave Barach via Lists.Fd.Io
accident might be involved, but I don’t see the problem. HTH... Dave From: vpp-dev@lists.fd.io On Behalf Of Dave Barach via Lists.Fd.Io Sent: Wednesday, October 3, 2018 6:10 PM To: Brendan Kelly Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] WRED OK, let me see if I can repro it... From

Re: [vpp-dev] WRED

2018-10-03 Thread Dave Barach via Lists.Fd.Io
OK, let me see if I can repro it... From: Brendan Kelly Sent: Wednesday, October 3, 2018 6:03 PM To: Dave Barach (dbarach) Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] WRED This is what I gathered. I need to figure out how to get on Jira. vpp# show version verbose Version

Re: [vpp-dev] WRED

2018-10-03 Thread Dave Barach via Lists.Fd.Io
, October 3, 2018 10:39 AM To: brendanake...@yahoo.com Cc: Dave Barach (dbarach) ; vpp-dev@lists.fd.io Subject: Re: [vpp-dev] WRED Hello Dave, if you change the nsim delay values on the fly it appears vpp crashes and all the state is lost. Is this supported? Should I file a bug? If so what logs

Re: [vpp-dev] WRED

2018-10-03 Thread Dave Barach via Lists.Fd.Io
It would be easy enough for the delay simulator to enable/disable promiscuous mode. But it’s handy to bridge the pipes: traffic flows whether or not the delay simulation is enabled. D. From: vpp-dev@lists.fd.io On Behalf Of Dave Barach via Lists.Fd.Io Sent: Wednesday, October 3, 2018 9:09 AM

Re: [vpp-dev] WRED

2018-10-03 Thread Dave Barach via Lists.Fd.Io
bin nsim_configure delay 10 ms bandwidth 10.1 gbit packet-size 128 bin nsim_enable_disable FortyGigabitEthernet86/0/1 TenGigabitEthernetd/0/0 HTH... Dave From: Brendan Kelly Sent: Tuesday, October 2, 2018 10:03 PM To: vpp-dev@lists.fd.io; Dave Barach (dbarach) Subject: Re: [vpp-dev] WRED Hello

Re: [vpp-dev] WRED

2018-10-02 Thread Dave Barach via Lists.Fd.Io
With respect to delay / loss impairments, please have a look at the “nsim” plugin: src/plugins/nsim. From: on behalf of "brendanakelly via Lists.Fd.Io" Reply-To: "brendanake...@yahoo.com" Date: Monday, October 1, 2018 at 6:18 PM To: "vpp-dev@lists.fd.io" Cc: "vpp-dev@lists.fd.io" Subject: [

Re: [vpp-dev] Question about ip4(6)-glean node behavior and packet drops

2018-10-01 Thread Dave Barach via Lists.Fd.Io
). D. From: Burt Silverman Sent: Sunday, September 30, 2018 9:36 PM To: Dave Barach (dbarach) Cc: ru...@microsoft.com; vpp-dev Subject: Re: [vpp-dev] Question about ip4(6)-glean node behavior and packet drops I read that a traditional Cisco CEF router behaves as follows: "When the

Re: [vpp-dev] Question about ip4(6)-glean node behavior and packet drops

2018-09-28 Thread Dave Barach via Lists.Fd.Io
This is deliberate, traditional router behavior. Alternatives involving queueing packets for reinjection after glean resolution events give rise to resource exhaustion attacks. Mitigating that kind of attack burns clock cycles, which in turn gives rise to a different kind of attack. HTH... Dave

Re: [vpp-dev] DPDK pmd info

2018-09-28 Thread Dave Barach via Lists.Fd.Io
Just to ask: a supported (64-bit (😊)) PCI-ID table, that plus vendor strings, or something else? Makes sense but as Damjan wrote we're swamped right now. If you have time, go for it. Stick the results in the stats segment, maybe? D. -Original Message- From: vpp-dev@lists.fd.io On Beh

Re: [vpp-dev] Skipping ipv4-input processing in L3Fwd

2018-09-22 Thread Dave Barach via Lists.Fd.Io
inline and instantiating it. Beyond that, Damjan is right: it's not a good idea, please don't go there. HTH... Dave -Original Message- From: Damjan Marion Sent: Saturday, September 22, 2018 10:31 AM To: Nitin Saxena Cc: Dave Barach (dbarach) ; vpp-dev Subject: Re: [vpp-dev]

Re: [vpp-dev] Skipping ipv4-input processing in L3Fwd

2018-09-22 Thread Dave Barach via Lists.Fd.Io
You would have to pull a bunch of work back into the device driver: counting IP packet errors, head of ip4/6 unicast/multicast input feature arcs, and mandatory input checks (expired TTL, ip header length, fragment). Hardware offload will NOT accomplish all of these tasks. If by chance you can

Re: [vpp-dev] How vpp choose the default base va 0x130000000ULL

2018-09-21 Thread Dave Barach via Lists.Fd.Io
Any address above the first 4gb would be fine. At this point, it’s a bit like Avogadro’s number: when I see it, I know instantaneously which heap it came from. If e.g. clib_mem_is_heap_object(...) ASSERTs on such an address, I know that some bit of code forgot “clib_mem_set_heap(...),” and so o

Re: [vpp-dev] Regarding pre_data field in vlib_buffer_t

2018-09-21 Thread Dave Barach via Lists.Fd.Io
+1. Note the vnet_buffer(b) and vnet_buffer2(b) macros. Track down the definitions in .../src/vlib/buffer.h and .../src/vnet/buffer.h and you'll understand how these opaque buffer metadata spaces are to be used. Depending on where your graph nodes land, you must be careful not to smash metadata

Re: [vpp-dev] Increase in main core CPU usage between 17.10 and 18.04

2018-09-18 Thread Dave Barach via Lists.Fd.Io
At that PPS rate, you don't need two worker threads. The worker threads burn a bunch of cycles - poll-wait or not - doing next-to-nothing. Try running the main thread all by itself... D. -Original Message- From: Heckman, Steve Sent: Tuesday, September 18, 2018 5:15 PM To: Dave B

Re: [vpp-dev] Increase in main core CPU usage between 17.10 and 18.04

2018-09-18 Thread Dave Barach via Lists.Fd.Io
"show run" please... -Original Message- From: vpp-dev@lists.fd.io On Behalf Of sheckman Sent: Tuesday, September 18, 2018 4:58 PM To: vpp-dev@lists.fd.io Subject: [vpp-dev] Increase in main core CPU usage between 17.10 and 18.04 I've been seeing a dramatic increase in CPU usage by the v

Re: [vpp-dev] VPP's C-type-api example

2018-09-11 Thread Dave Barach via Lists.Fd.Io
The typical coding pattern to use when you don't know how many messages will come back: send a dump request, followed by an echo-ping. When the ping reply shows up, the dump is complete... HTH... Dave From: vpp-dev@lists.fd.io On Behalf Of wangchuan...@163.com Sent: Tuesday, September 11, 201

Re: [vpp-dev] VPP main thread gets stuck in a deadlock on running CLI in loop

2018-09-08 Thread Dave Barach via Lists.Fd.Io
Please write up issues as described at: https://wiki.fd.io/view/VPP/BugReports. Without even a hint as to which version of vpp is involved, this report is not actionable. Here’s an excerpt from the wiki page: Although every situation is different, this page describes data which will help make

Re: [vpp-dev] crash when pressing TAB on CLI

2018-09-06 Thread Dave Barach via Lists.Fd.Io
In future, please refer to https://wiki.fd.io/view/VPP/BugReports. The issue you're reporting is not trivially reproducible. At a minimum: we'll need a backtrace from a debug image, the vpp version string, the vpp startup config, and the connection method you used. D. From: vpp-dev@lists.fd.io

[FD.io Helpdesk #60548] [linuxfoundation.org #60548] FW: [vpp-dev] Suspicious login on fd.io wiki

2018-09-05 Thread Dave Barach via RT
Folks, I've run into this annoyance myself. Attempting to authenticate to wiki.fd.io other than on the top-level page tends to produce "suspicious request, please try again" complaints. This seems like a configuration error. Please either fix it, or explain why it cannot or should not be fixed

FW: [vpp-dev] Suspicious login on fd.io wiki

2018-09-05 Thread Dave Barach via Lists.Fd.Io
Folks, I've run into this annoyance myself. Attempting to authenticate to wiki.fd.io other than on the top-level page tends to produce "suspicious request, please try again" complaints. This seems like a configuration error. Please either fix it, or explain why it cannot or should not be fixed

Re: [vpp-dev] vnet_feature_enable_disable disable option is broken

2018-09-04 Thread Dave Barach via Lists.Fd.Io
No, there isn’t. There isn’t much of a point in deleting graph arcs. If the feature is reenabled, the existing arc from A to B will be reused. D. From: vpp-dev@lists.fd.io On Behalf Of Andrew Yourtchenko Sent: Tuesday, September 4, 2018 2:50 PM To: .ılı.D'p@k.ılı. Cc: vpp-dev@lists.fd.io Subje

Re: [vpp-dev] crash in vpp 18.07

2018-08-28 Thread Dave Barach via Lists.Fd.Io
If possible, repeat the exercise with a debug image. The code involved is well tested, and does not crash without “help.” I wouldn’t be surprised to run into an ASSERT elsewhere which explains the problem. For the specific packet in question: see if vnet_buffer(b)->sw_if_index[VLIB_TX] is set t

Re: [vpp-dev] received signal SIGSEGV and vpp restarts continuously

2018-08-27 Thread Dave Barach via Lists.Fd.Io
Cool... Please let us know if you run into trouble... Thanks... Dave -Original Message- From: Carlito Nueno Sent: Monday, August 27, 2018 4:09 PM To: Dave Barach (dbarach) Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] received signal SIGSEGV and vpp restarts continuously Hi Dave, I

Re: [vpp-dev] Source Based Routing #vpp

2018-08-27 Thread Dave Barach via Lists.Fd.Io
Add graph node to the IP lookup feature arc. See attached code, from a known-to-work example. Program src routes into a non-default FIB. HTH... Dave From: vpp-dev@lists.fd.io On Behalf Of georgi.mel...@gmail.com Sent: Monday, August 27, 2018 1:28 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] S

Re: [vpp-dev] received signal SIGSEGV and vpp restarts continuously

2018-08-23 Thread Dave Barach via Lists.Fd.Io
Looks like a NULL pointer - please decode the pc. It would help if you could repro the problem with a debug image and send a full backtrace. vnet[10192]: received signal SIGSEGV, PC 0x7fa62aecade3, faulting address 0x0 D. -Original Message- From: vpp-dev@lists.fd.io On Behalf Of carli

Re: [vpp-dev] VPP crashes on multi core

2018-08-17 Thread Dave Barach via Lists.Fd.Io
Please refer to https://wiki.fd.io/view/VPP/BugReports for bug reporting, also https://wiki.fd.io/view/VPP/Configuration_Tool If you expect folks to volunteer to help you: write up your system configuration, vpp version and configuration, and so forth to a reasonable standard. From: vpp-dev@li

Re: [vpp-dev] VPP crashes with bvi interface

2018-08-15 Thread Dave Barach via Lists.Fd.Io
Almost no matter what, vpp shouldn’t crash. Please at share the backtrace. See https://wiki.fd.io/view/VPP/BugReports and also https://wiki.fd.io/view/VPP/VPP_Home_Gateway for a known-to-work similar BVI / IRB configuration. D. From: vpp-dev@lists.fd.io On Behalf Of Aleksander Djuric Sent: We

Re: [vpp-dev] Overlapping IP/subnet support on base/vlan interface

2018-08-14 Thread Dave Barach via Lists.Fd.Io
Dear Michael, It is completely normal for a router data plane to forbid this scenario. Given a packet to route to 13.13.13.114, which interface should the data plane choose? >From what I can tell, it looks like you’re trying to route untagged as well as >VLAN 11 and VLAN 12 packets. This sounds

Re: [vpp-dev] Regarding CLI command parsing

2018-08-13 Thread Dave Barach via Lists.Fd.Io
Try this in mycmd: u8 * line; if (unformat (input, "%U", unformat_line, &line)) process_line; Note that line will be a true u8 * vector: no null-termination. If you need null termination: vec_add1 (line, 0); Remember to vec_free(...) it unless you're planning to keep it. HTH... Dave -

Re: [vpp-dev] timing_wheel or tw_timer

2018-08-13 Thread Dave Barach via Lists.Fd.Io
The tw_timer implementation is extremely fast. We routinely test it to 60 million concurrent timers, the number required to bring up 10M TCP sessions. Given a 500ms granularity, we have: max range = 86400 (secs/day) * 2 (clock ticks/second) = 172800 slots. A 2-ring, 512 slots/ring geometry would

Re: [vpp-dev] vnet tcp.h include error

2018-08-13 Thread Dave Barach via Lists.Fd.Io
Although I could explain how to fix that specific problem, please do not to use 17.10. We don't support 17.10 anymore. The tcp stack worked better in 18.04, and much better than that in 18.07. I'd strongly suggest that you switch to 18.07... HTH... Dave -Original Message- From: vpp-d

Re: [vpp-dev] format_bihash not printing all the elements

2018-08-11 Thread Dave Barach via Lists.Fd.Io
) Sent: Saturday, August 11, 2018 5:24 AM To: Dave Barach (dbarach) Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] format_bihash not printing all the elements Hi Dave, Could you please let me know what params do you use for testing the “test_bihash_template” executable? vec64 options is passing

Re: [vpp-dev] Running VPP as non-root user

2018-08-09 Thread Dave Barach via Lists.Fd.Io
Which version of vpp are you running? This should work fine in 18.07 or master/latest... From: vpp-dev@lists.fd.io On Behalf Of Richard Throne Sent: Thursday, August 9, 2018 6:35 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] Running VPP as non-root user Hi, I need to run VPP as non-root user.

Re: [vpp-dev] Performance and CLI response degradation with inactive port

2018-08-09 Thread Dave Barach via Lists.Fd.Io
You might consider sending e-mail to the dpdk mailing list, or e.g. Ray Kinsella @ Intel. Pretty clearly a [dpdk] driver / HW issue. From: vpp-dev@lists.fd.io On Behalf Of j...@yeager1.com Sent: Wednesday, August 8, 2018 6:46 PM To: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] Performance and CLI

Re: [vpp-dev] format_bihash not printing all the elements

2018-08-08 Thread Dave Barach via Lists.Fd.Io
What is the maximum value of j at the start of the inner loop? Note that kv.key = i. The test replaces many, many keys on purpose. Set TESTS += test_bihash_template in vppinfra.am From: Vijay Katamreddy (vkatamre) Sent: Wednesday, August 8, 2018 3:47 PM To: Dave Barach (dbarach) Cc: vpp-dev

Re: [vpp-dev] format_bihash not printing all the elements

2018-08-08 Thread Dave Barach via Lists.Fd.Io
No known issues at that level. Since this sounds like a test code, can you share it? Thanks... Dave From: vpp-dev@lists.fd.io On Behalf Of Vijayabhaskar Katamreddy via Lists.Fd.Io Sent: Wednesday, August 8, 2018 3:14 PM To: vpp-dev@lists.fd.io Cc: vpp-dev@lists.fd.io Subject: [vpp-dev] format_

Re: [vpp-dev] Traffic generator

2018-08-08 Thread Dave Barach via Lists.Fd.Io
Dear Gulakh, As you move forward, please be careful. An arbitrary 10g NIC may or may not have adequate PCI bus bandwidth to handle 10gb line-rate, full-duplex @ 64 byte pkts. Depopulated memory channels, incorrect NUMA placement, and a host of other configuration errors may yield awful results.

Re: [vpp-dev] missing .deb for trusty

2018-08-07 Thread Dave Barach via Lists.Fd.Io
Trusty Tahr, aka Ubuntu 14.04, is no longer supported. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10059): https://lists.fd.io/g/vpp-dev/message/10059 Mute This Topic: https://lists.fd.io/mt/24220396/21656 Group Owner: vpp-dev+ow...@lists.fd.io

<    1   2   3   4   5   6   7   8   9   10   >