Re: [vpp-dev] CSIT test failure

2017-02-03 Thread Jon Loeliger
On Fri, Feb 3, 2017 at 10:01 AM, Rybalchenko, Kirill < kirill.rybalche...@intel.com> wrote: > Hi Jon, > > > > Yes, I think it is somehow related. > > Here is more detailed info: > > > > VPP – current master branch (commit e0cb0ccee10f1ce0e29c94acb3b486 > 1f46c0879d) > > CSIT – not related. > > >

Re: [vpp-dev] Add dpdk development packaging

2017-01-24 Thread Jon Loeliger
On Mon, Jan 23, 2017 at 10:28 PM, Alexander Popovsky (apopovsk) < apopo...@cisco.com> wrote: > Damjan, > > After this change, ‘pkg-rpm’ target on the CentOS host seems to be failing > (on master): > > $ git clean -xfd > $ make bootstrap pkg-rpm > ... > error: Installed (but unpackaged) file(s)

[vpp-dev] Building DPDK Packages

2017-01-30 Thread Jon Loeliger
Hi Folks, So, I recently used the "make dpdk-install-dev" target at the top of the VPP build and was surprised to see: == Up-to-date DPDK package already installed

Re: [vpp-dev] SNAT Plugin Use

2017-01-27 Thread Jon Loeliger
On Thu, Jan 26, 2017 at 4:38 PM, Jon Loeliger <j...@netgate.com> wrote: > > > Does this same mechanism hold true for the VPE messages? Is the collection > of the VPE message considered "a plugin", or "a base onto which plugins > will > be added"? There

Re: [vpp-dev] SNAT Plugin Use

2017-01-26 Thread Jon Loeliger
On Wed, Jan 25, 2017 at 10:49 AM, Dave Barach (dbarach) wrote: > Dear Jon, > > > > Sorry for the delayed response. > > > > Anyhow, the constant VL_MSG_FIRST_AVAILABLE is a historical name for a > simple thing: the number of binary API messages defined by a given plugin. >

Re: [vpp-dev] SNAT Plugin Use

2017-01-26 Thread Jon Loeliger
On Wed, Jan 25, 2017 at 10:49 AM, Dave Barach (dbarach) wrote: > > > > When it comes time to send binary API messages to a given plugin, the > control-plane agent recovers msg_id_base like so: > > > > /* Ask the vpp engine for the first assigned message-id */ > > name =

[vpp-dev] SNAT Plugin Use

2017-01-24 Thread Jon Loeliger
Folks, What is the expected method to use the SNAT plugin within the framework of the rest of a VPP system? Specifically, what is the expected use of VL_MSG_FIRST_AVAILABLE? It is several (4) enum include files, and they conflict if two or more are used in the same source file. Here is a terse

Re: [vpp-dev] SNAT API Question

2017-02-20 Thread Jon Loeliger
Hi Matus, Thanks for your answers here. On Sat, Feb 18, 2017 at 12:36 AM, Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES at Cisco) wrote: > If external_sw_if_index value is ~0 (-1) external_ip_address is ussed from > API (snat.c line 363). > OK, I see that in the code,

Re: [vpp-dev] SNAT API Question

2017-02-17 Thread Jon Loeliger
On Tue, Feb 14, 2017 at 11:52 PM, Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES at Cisco) wrote: > Hi Jon, > > > > snat_static_mapping_dump list only static mappings with resolved outside > address so snat_static_mapping_details doesn’t contain > external_sw_if_index. But

[vpp-dev] SNAT Future API Questions

2017-02-22 Thread Jon Loeliger
Dudes and Dudettes, As you may have guessed by now, I am working my way through the SNAT Realm these days. And now I have a question about some possible, future API messages for obtaining some running state information, notably for some form of "show snat" command. In VAT's current

[vpp-dev] Coding Preference Question

2017-02-23 Thread Jon Loeliger
VPPers, As a general rule, do you guys prefer to use: 1) An integer (i32) and -1 as a flag case, or 2) An unsigned integer (u32) and ~0 as the flag case? If it matters, this is for an API value. Thanks, jdl ___ vpp-dev mailing list

[vpp-dev] Loopback Interface Names

2017-02-22 Thread Jon Loeliger
Folks, So, I want to address this example from Dave's "home gateway" example: loopback create set int l2 bridge loop0 1 bvi set int ip address loop0 192.168.1.1/24 set int state loop0 up Here, lines 2, 3, and 4 all have unspoken knowledge of the effects of line 1. Specifically,

Re: [vpp-dev] VPP Wiki Release Plan Snigglet

2017-02-23 Thread Jon Loeliger
On Thu, Feb 23, 2017 at 2:04 AM, Jong Hahn (jonhahn) wrote: > Hi Jon, > > Per below, I updated the wiki and the Jira link. > > Thanks, > > Jong > > > Jong, Thank you! jdl ___ vpp-dev mailing list vpp-dev@lists.fd.io

Re: [vpp-dev] SNAT Future API Questions

2017-02-23 Thread Jon Loeliger
On Wed, Feb 22, 2017 at 11:28 PM, Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES at Cisco) wrote: > Hi, > > > > There is currently work on dump API for SNAT runtime data (users and > sessions). It will be finished in next few days. > > > > Matus > Matus, That is awesome

Re: [vpp-dev] Loopback Interface Names

2017-02-23 Thread Jon Loeliger
Dave, Thanks for taking the time to help me here! On Wed, Feb 22, 2017 at 4:47 PM, Dave Barach (dbarach) wrote: > You would certainly have to rewrite vnet_create_loopback_interface(...) a > little bit. That’s not necessarily a bad thing. > Yeah, I figured as much on that

[vpp-dev] VPP Wiki Release Plan Snigglet

2017-02-22 Thread Jon Loeliger
Hi Folks, Over on the VPP Wiki Page https://wiki.fd.io/view/Projects/vpp/Release_Plans/Release_Plan_17.04 There is an apparent cut-n-paste-ish style error at the very bottom where it suggests 17.07 features are being extracted from Jira using an obsolete and non-public search query.

Re: [vpp-dev] VPP API Synchronization Question

2017-02-10 Thread Jon Loeliger
On Fri, Feb 10, 2017 at 11:23 AM, Dave Barach (dbarach) wrote: > Dear Jon, > > > > If you send “please dump X” API message(s), followed by a control-ping > message: when the control-ping reply appears, all of dump reply messages > (if any) have appeared. > > > > That

[vpp-dev] SNAT API Question

2017-02-14 Thread Jon Loeliger
VPPers, Somewhat recently, (commit 36532bda926f5255a323c9cac3144dd758a05667), the external_sw_if_index was added to the SNAT API snat_add_static_mapping message. However, when dumping the static mappings with snat_static_mapping_dump the corresponding snat_static_mapping_details does not contain

Re: [vpp-dev] Failing Out-of-tree Builds

2017-02-13 Thread Jon Loeliger
On Fri, Feb 10, 2017 at 9:12 AM, Jon Loeliger <j...@netgate.com> wrote: > On Thu, Feb 9, 2017 at 11:16 PM, Akshaya Nadahalli (anadahal) < > anada...@cisco.com> wrote: > >> Hi Jon, >> >> fib_urpf_list.h needs to included inside the source file and need not

Re: [vpp-dev] Weird VPP API message processing failure

2017-01-18 Thread Jon Loeliger
On Wed, Jan 18, 2017 at 12:24 PM, Damjan Marion wrote: > > I see. > > But how come vat doesn't do this [msg ID mapping] step? > > Likely somebody needs to do the work… > > Thanks, > Damjan > Ed, As I indicated when we spoke, I have implemented the gunky details of

Re: [vpp-dev] Weird VPP API message processing failure

2017-01-17 Thread Jon Loeliger
On Mon, Jan 16, 2017 at 6:33 PM, Jon Loeliger <j...@netgate.com> wrote: > Folks, > > We are seeing a really strange VPP API message processing problem. > The scenario goes like this... > > > I've started to isolate it with git bisect, and so far I believe the

Re: [vpp-dev] Weird VPP API message processing failure

2017-01-17 Thread Jon Loeliger
On Tue, Jan 17, 2017 at 3:45 PM, Alexander Popovsky (apopovsk) < apopo...@cisco.com> wrote: > We have seen a similar issue related to the same ‘API refactoring : dpdk’ > change. > We are using an external API binding layer in C-language in our VPP based > solution. > After the change, it took

Re: [vpp-dev] Weird VPP API message processing failure

2017-01-18 Thread Jon Loeliger
On Wed, Jan 18, 2017 at 5:55 AM, Damjan Marion wrote: > As Ole explained, please use vl_api_get_msg_index. > > -DDPDK=1 will disappear soon when dpdk becomes a plugin… > > Thanks, > > Damjan > I see. But how come vat doesn't do this step? jdl

Re: [vpp-dev] Weird VPP API message processing failure

2017-01-18 Thread Jon Loeliger
On Wed, Jan 18, 2017 at 5:55 AM, Damjan Marion wrote: > > -DDPDK=1 will disappear soon when dpdk becomes a plugin… > > Thanks, > Damjan > Damjan, Will the DPDK that VPP builds be packaged and made available from the "make pkg-{rpm,deb}" targets? I see references to

[vpp-dev] Weird VPP API message processing failure

2017-01-16 Thread Jon Loeliger
Folks, We are seeing a really strange VPP API message processing problem. The scenario goes like this... Our CLI issues C API calls through the vlib API. The messages hit the shared memory queue, but are not processed. They sit there. Later, we fire up, say, vppctl and do a "show api"

Re: [vpp-dev] VPP Build Bombing Out on libsvm.la?

2017-01-13 Thread Jon Loeliger
On Thu, Jan 12, 2017 at 9:25 PM, Burt Silverman wrote: > Cool. My suggestion would not have solved the issue, but looking at > Damjan's .am files gives me a hint why the years ago project had issues, > for example: > > libsvm_la_LIBADD = libvppinfra.la -lrt -lpthread >

[vpp-dev] VPP Build Bombing Out on libsvm.la?

2017-01-11 Thread Jon Loeliger
Folks, I'm staring at some VPP builds on a fresh CentOS system. I've installed all the "install-deps", and get pretty far into the build before it wedges. I see warnings like this: /bin/sh ./libtool --mode=install /usr/bin/install -c libsvm.la libsvmdb.la libvlib.la libvlibapi.la

[vpp-dev] API Doc Question sw_interface_add_del_address

2017-01-02 Thread Jon Loeliger
Folks, Over in src/vnet/interface.api, round-about lines 162-182, we find this excerpt: /** \brief Set or delete one or all ip addresses on a specified interface @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request

[vpp-dev] Tap IF Names

2017-03-23 Thread Jon Loeliger
Guys, Why do tap interfaces use the name "tap-%d" internally? The user has given an actual name (that corresponds to the underlying Linux tap name), and yet VPP makes up a non-correlatable different name in the form "tap-%d" by making up some number and assigning it to the IF. This issue is

Re: [vpp-dev] Strange C Dyanmic Loading Failure

2017-03-27 Thread Jon Loeliger
On Mon, Mar 27, 2017 at 9:27 AM, Adrian Daniel Calianu < adrian.cali...@gmail.com> wrote: > Hi all, > > I have the same issue. After I built the vpp from sources(master branch) > and run vppctl I see a segmentation fault. This looks to be caused by the > fact that the vlib_mains from init

Re: [vpp-dev] VPP build issue on Ubuntu 16.04.2 LTS

2017-03-28 Thread Jon Loeliger
On Tue, Mar 28, 2017 at 8:55 AM, Dumitrescu, Cristian < cristian.dumitre...@intel.com> wrote: > > Hi Jon, > > > > I did “make install-dep” just before the “make bootstrap”, so maybe there > is some package that I need to upgrade that is not picked up by “make > install-dep”. > > > > One thing to

Re: [vpp-dev] VPP build issue on Ubuntu 16.04.2 LTS

2017-03-27 Thread Jon Loeliger
On Mon, Mar 27, 2017 at 12:41 PM, Dumitrescu, Cristian < cristian.dumitre...@intel.com> wrote: > Hi guys, > > > > Any idea why am I getting this error: > > > > >make bootstrap > > … > > checking for python... /usr/bin/python > > checking for python version... 2.7 > > checking for python

Re: [vpp-dev] Tap IF Names

2017-03-28 Thread Jon Loeliger
On Tue, Mar 28, 2017 at 11:50 AM, Damjan Marion (damarion) < damar...@cisco.com> wrote: > > > On 28 Mar 2017, at 12:15, Kinsella, Ray wrote: > > > > +1 to Jon's comments. > > > > > > On 24/03/2017 14:07, Pierre Pfister (ppfister) wrote: > >> Hello Jon, > >> > >> No strong

Re: [vpp-dev] Out of Tree Build Failure on vnet/rewrite.h

2017-03-30 Thread Jon Loeliger
On Thu, Mar 30, 2017 at 5:42 PM, Ed Warnicke wrote: > The more interesting (to me) question is... how did it pass verify? > > Ed > Ed, If I might speculate, it isn't anything that the VPP Builds even checks. To catch this, you have to build VPP to packages, take those

Re: [vpp-dev] Tap IF Names

2017-03-28 Thread Jon Loeliger
On Tue, Mar 28, 2017 at 11:59 AM, Jon Loeliger <j...@netgate.com> wrote: > > > On Tue, Mar 28, 2017 at 11:50 AM, Damjan Marion (damarion) < > damar...@cisco.com> wrote: > >> >> > On 28 Mar 2017, at 12:15, Kinsella, Ray <ray.kinse...@int

Re: [vpp-dev] Tap IF Names

2017-03-28 Thread Jon Loeliger
On Tue, Mar 28, 2017 at 2:28 PM, Pierre Pfister (ppfister) < ppfis...@cisco.com> wrote: > > > tapcli.c implements all tap nodes, plus the CLI calls. > tapapi.c only implements api calls and then calls tapcli functions. > > Admittedly tapcli is not the perfect name, > It's not a matter of names.

Re: [vpp-dev] Tap IF Names

2017-03-24 Thread Jon Loeliger
On Fri, Mar 24, 2017 at 9:07 AM, Pierre Pfister (ppfister) < ppfis...@cisco.com> wrote: > Hello Jon, > > No strong opinion on my side, but I'd just like to notice that there might > be cases where multiple interfaces, in linux, have the same name, if they > are in different network namespaces. >

[vpp-dev] Make pkg-rpm seems to be failing...

2017-03-17 Thread Jon Loeliger
Hi guys, So, the "make pkg-rpm" target seems to be failing near a line like this: # Python bindings cd /home/jdl/workspace/vpp/build-root/../src/vpp-api/python %py2_install That is from the RPM tmp file. The actual log of the error follows. Anyone? Thanks, jdl + for file in

Re: [vpp-dev] Make pkg-rpm seems to be failing...

2017-03-18 Thread Jon Loeliger
On Fri, Mar 17, 2017 at 6:33 PM, Burt Silverman wrote: > It probably worked during a 12 hour window. I think Neale then made a 2nd > change incompatible with the earlier change. > > Burt > Well, yeah, maybe. But after doing the .end_node dance, I'm back to the %py2_build

[vpp-dev] Questions about AF_PACKET and VNET_DEVICE_CLASS Functions

2017-03-20 Thread Jon Loeliger
Folks, I am trying to understand a bit more about the "host" interface for some AF_PACKET interfaces. Currently, there is a single API call to create an AF_PACKET interface. It simultaneously sets the HW_ADDR (ie, MAC address) of the interface to either user-specified value, or a randomly

[vpp-dev] Strange C Dyanmic Loading Failure

2017-03-20 Thread Jon Loeliger
Dave, With the advent of a compiling tree (hooray!), I've updated, rebuilt, installed, and tried running all the C libraries and API pieces again. Sadly, things are not working. Very early in the bring-up of a C executable that is linked to VPP's libraries (vlibmemoryclient vlibapi svm

Re: [vpp-dev] Strange C Dyanmic Loading Failure

2017-03-20 Thread Jon Loeliger
On Mon, Mar 20, 2017 at 9:18 PM, Jon Loeliger <j...@netgate.com> wrote: > Dave, > > With the advent of a compiling tree (hooray!), I've updated, rebuilt, > installed, and tried running all the C libraries and API pieces again. > Sadly, things are not working. > > Very e

[vpp-dev] Some L2 Bridge API Questions

2017-03-14 Thread Jon Loeliger
Hi folks, I have a few questions about the sw_interface_set_l2_bridge API message. Now, some people have called me a "pedantic ass", to my face even, so I can handle that. :-) And I wouldn't want to disappoint, so here we go... >From commit 374e2c5fc30a5bfabfd2eb6c2d3ca5797402af16, line 640 of

Re: [vpp-dev] Some L2 Bridge API Questions

2017-03-14 Thread Jon Loeliger
On Tue, Mar 14, 2017 at 1:50 PM, John Lo (loj) wrote: > Hi Jon, > Hi John, > You make a valid point about the name chosen for the API param “enable”. > Rather than argue about the best name, let me describe how it works. > Sure! > The API is intended to enable or disable an

Re: [vpp-dev] Missing lib pneum during build?

2017-03-17 Thread Jon Loeliger
On Fri, Mar 17, 2017 at 3:57 AM, wrote: > Jon, > > > > > I am no fairly confident that this patch fixes the race condition issue > > that I was seeing. > > > > Now. I am now failry confident > Wow. I suck at this typing ting! :-) > > And I am still seeing the build

Re: [vpp-dev] Some L2 Bridge API Questions

2017-03-15 Thread Jon Loeliger
John, So, I see that, when creating a bridge domain using the API call bridge_domain_add_del, one can specify some feature flags of the domain as well as the mac-age parameter. Later, it looks like one can alter the feature flags using the API call bridge_flags, changing one or more features to

Re: [vpp-dev] Missing lib pneum during build?

2017-03-16 Thread Jon Loeliger
On Fri, Mar 10, 2017 at 1:55 PM, Jon Loeliger <j...@netgate.com> wrote: > > > Ole, > > I am no fairly confident that this patch fixes the race condition issue > that I was seeing. > Now. I am now failry confident And I am still seeing the build failure. Is

Re: [vpp-dev] Missing lib pneum during build?

2017-03-09 Thread Jon Loeliger
On Wed, Mar 8, 2017 at 2:16 AM, <otr...@employees.org> wrote: > Jon, > > > > On 8 Mar 2017, at 01:34, Jon Loeliger <j...@netgate.com> wrote: > > > > On Mon, Mar 6, 2017 at 2:57 PM, Jon Loeliger <j...@netgate.com> wrote: > > >

[vpp-dev] Missing session.api.h file

2017-03-03 Thread Jon Loeliger
VPP-ers, I've just build RPM packages out of the current top-of-tree VPP at commit c83c3b7f117b981b677f646a0e30f44ec70de239. After a yum install, a file in /usr/include/ references session.api.h: $ grep -r session.api.h /usr/include/ /usr/include/vnet/vnet_all_api_h.h:#include Yet it

Re: [vpp-dev] Missing session.api.h file

2017-03-03 Thread Jon Loeliger
On Fri, Mar 3, 2017 at 7:11 PM, Jon Loeliger <j...@netgate.com> wrote: > On Fri, Mar 3, 2017 at 6:54 PM, Florin Coras <fcoras.li...@gmail.com> > wrote: > >> Hi Jon, >> >> Apologies about that. Alexander was kind enough to provide a quick >> solut

Re: [vpp-dev] Missing session.api.h file

2017-03-03 Thread Jon Loeliger
On Fri, Mar 3, 2017 at 6:54 PM, Florin Coras wrote: > Hi Jon, > > Apologies about that. Alexander was kind enough to provide a quick > solution here [1]. Will merge as soon as it passes verify. > > Florin > Awesome! Thank you! jdl

Re: [vpp-dev] Missing lib pneum during build?

2017-03-10 Thread Jon Loeliger
On Wed, Mar 8, 2017 at 2:16 AM, wrote: > Jon, > > I have also seen this error. What I suspect happens is that while pneum is > already built and that the build dependency is correct, the library isn't > installed under the install- directory yet. > > I didn't manage to

[vpp-dev] Missing lib pneum during build?

2017-03-06 Thread Jon Loeliger
Guys, I am in the process of setting up a CI engine here. (Whee!) This is on an entirely new machine with a new number of CPUs, etc. What I'm noticing is that every other build or so fails. And it seems to be for lack of a -lpneum each time it fails. But sometimes it all builds properly too.

Re: [vpp-dev] Missing lib pneum during build?

2017-03-06 Thread Jon Loeliger
On Mon, Mar 6, 2017 at 2:48 PM, Billy McFall wrote: > I have seen this. I was compiling in a VM with 5 CPUs. I isolate CPUs 1-4 > from Linux via kernel cmdline arg isocpu. When compiling with 1 CPU I saw > the issue every time. Removed isocpu and compiled with 5 CPUs

Re: [vpp-dev] Missing session.api.h file

2017-03-05 Thread Jon Loeliger
On Sat, Mar 4, 2017 at 7:57 AM, Dave Barach (dbarach) <dbar...@cisco.com> wrote: > See https://gerrit.fd.io/r/#/c/5622... > > > > Thanks… Dave > > > > *From:* Dave Barach (dbarach) > *Sent:* Friday, March 3, 2017 10:50 PM > *To:* Jon Loeliger <j...@ne

Re: [vpp-dev] Out of Tree Build Failure on vnet/rewrite.h

2017-03-31 Thread Jon Loeliger
On Fri, Mar 31, 2017 at 7:34 AM, Jim Thompson wrote: > > Either that, or Cisco moves to builds apps the same way. You guys & gals > break the tree for us about twice per month lately. > Hi VPP-ites, That's maybe not such a bad notion. What about taking, say, the entire VAT

[vpp-dev] A Curious DHCP Hostname Terminator Choice

2017-04-26 Thread Jon Loeliger
Hi Guys, Way over in src/vnet/dhcp/dhcp_api.c, we find the function void dhcp_compl_event_callback (u32 client_index, u32 pid, u8 * hostname, u8 is_ipv6, u8 * host_address, u8 * router_address, u8 * host_mac) which contains a curious use of

Re: [vpp-dev] A Curious DHCP Hostname Terminator Choice

2017-04-27 Thread Jon Loeliger
vpp-dev-boun...@lists.fd.io] *On > Behalf Of *Jon Loeliger > *Sent:* Wednesday, April 26, 2017 4:24 PM > *To:* vpp-dev <vpp-dev@lists.fd.io> > *Subject:* [vpp-dev] A Curious DHCP Hostname Terminator Choice > > > > Hi Guys, > > > > Way over in src/vnet/dhc

Re: [vpp-dev] A Curious DHCP Hostname Terminator Choice

2017-04-27 Thread Jon Loeliger
On Thu, Apr 27, 2017 at 12:19 PM, Luke, Chris wrote: > It looks, to me, like someone fixed a problem in the wrong place. > > > > I would certainly entertain the patch, especially if it included logic to > make sure mp->hostname doesn’t overrun. Not likely since the DHCP

Re: [vpp-dev] Bridge Domain Dump API Inconsistency Question

2017-05-01 Thread Jon Loeliger
On Mon, May 1, 2017 at 6:26 PM, John Lo (loj) wrote: > Hi Jon, > > > > I agree we should fix CLI/API to not allow BD 0 modifications. Would you > be interested to submit a patch for it? J Otherwise, I will try to fix > it when I get a chance. > > > > Regards, > > John > John,

Re: [vpp-dev] Bridge Domain Dump API Inconsistency Question

2017-05-01 Thread Jon Loeliger
On Mon, May 1, 2017 at 5:56 PM, John Lo (loj) wrote: > Hi Jon, > > > > The bridge domain (BD) 0 is created by VPP on startup to be a dummy BD and > not intended to be used by user. BD 0 is created with everything turned off > to drop packets in it. It is used by VPP to handle the

Re: [vpp-dev] Question: make realclean

2017-05-03 Thread Jon Loeliger
Naturally, I meant "make distclean" on the Subject: line. :-) On Wed, May 3, 2017 at 10:20 AM, Jon Loeliger <j...@netgate.com> wrote: > Hey VPP Builders, > > Do you ever use "cd build-root; make distclean"? > Does it look sort of like this: > __

Re: [vpp-dev] Question: make realclean

2017-05-03 Thread Jon Loeliger
On Wed, May 3, 2017 at 1:39 PM, Thomas F Herbert <therb...@redhat.com> wrote: > > On 05/03/2017 12:23 PM, Jon Loeliger wrote: > > Naturally, I meant "make distclean" on the Subject: line. :-) > > distclean removes the tarball created by the "make dist&quo

[vpp-dev] ACL API Questions

2017-05-17 Thread Jon Loeliger
Folks, I have two questions about the ACL plugin's API. First, when there are no ACLs configured and an ACL_DUMP is requested, there is no way for the API to reply except to not send a message and let the "wait for message" time-out and indicate failure. The same problem exists if one requests

Re: [vpp-dev] ACL API Questions

2017-05-17 Thread Jon Loeliger
On Wed, May 17, 2017 at 4:35 PM, Andrew  Yourtchenko wrote: > Jon, > > No, you are not missing anything, there is a ping missing there indeed... > :-) > Hi Andrew, OK, *phew*. Not this time then. Good to know! > At the time I could not figure out how to get the

Re: [vpp-dev] The Case Of the Missing API Definition

2017-05-24 Thread Jon Loeliger
On Wed, May 24, 2017 at 2:00 AM, wrote: > Hi Jon, Hi Ole, > Thanks for the poetry! ;-) Most welcome. > This is me in 01384fe > Apologies for that. Next time I see you let me bring both band aid and > whiskey. Apology accepted! > To my excuse, there has been this list

[vpp-dev] Subif/VLAN Questions

2017-06-02 Thread Jon Loeliger
Hey Audience, Guess what! (What?) I have another set of questions! This time, VLAN/Subif related. Start with the easy one: Is the API call create_vlan_subif slated for removal or deprecation? I think it should be. It seems to me to be totally redundant and a subset of the more general API

Re: [vpp-dev] VPP API improvements - community discussion.

2017-06-13 Thread Jon Loeliger
On Mon, Jun 5, 2017 at 5:24 AM, Neale Ranns (nranns) wrote: > > Dear VPP community, > > Some of the feedback we get from users of VPP is that the client-side API is > not particularly user-friendly – we would like to address this. I don't know about user friendly; I can wade

[vpp-dev] Bridge Domain Dump API Inconsistency Question

2017-05-01 Thread Jon Loeliger
Folks, There are currently two utilities that cause a print-out of the bridge domain information: vppctl and vpp_api_test. Let's talk about the default Bridge Domain 0 for a moment. You, as the user of the system, can talk about, name it, reference it and use it, but neither create nor

Re: [vpp-dev] Questions regarding running VPP in KVM VM and the C API

2017-05-04 Thread Jon Loeliger
On Thu, May 4, 2017 at 7:45 AM, Tomas Brännström < tomas.a.brannst...@tieto.com> wrote: > Hello > > Is there something specific that must be done to get VPP running in a KVM > VM? > I'm sorry --- I can't really speak to KVM specific issues. > 2) I have made a tiny client where I want to test

Re: [vpp-dev] Static Route Data API Data Structures

2017-09-21 Thread Jon Loeliger
On Tue, Aug 29, 2017 at 9:37 AM, Neale Ranns (nranns) wrote: > > Hi Jon, > > The new API does not function correctly in master at this time. If you want > to ride on the bleeding edge with the new API, the code I intend to commit is > (complete AFAICT) here: >

[vpp-dev] Multiple vppctl Considered Harmful

2017-09-19 Thread Jon Loeliger
Folks, While I appear to be able to run a single vppctl up against VPP, if I then start a second one, to the same VPP process, VPP immediately aborts. It's pretty unfriendly. EAL: Invalid NUMA socket, default to 0 EAL: Invalid NUMA socket, default to 0 DPDK physical memory layout: Segment

Re: [vpp-dev] Mac Address Api Changes

2017-10-10 Thread Jon Loeliger
On Tue, Oct 10, 2017 at 2:41 PM, John Lo (loj) wrote: > The two APIs affected are the older ones in L2FIB which use “u64 mac” > instead of “u8 mac[6]” to pass MAC addresses: > > ·L2fib_add_del > > ·L2_fib_table_details > > > > I believe it is a good change to

Re: [vpp-dev] Static Route Data API Data Structures

2017-08-29 Thread Jon Loeliger
On Tue, Aug 29, 2017 at 4:21 AM, Neale Ranns (nranns) wrote: > Hi Jon, > Neale, > By ‘IP’ in this context we mean IPv4 and IPv6 and unicast and multicast > (known as sub-address families or SAFIs). To provide this separation we > therefore need 4 ‘tables’ per-VRF, one for each

[vpp-dev] Adding IP Addr to Multiple IFs

2017-09-28 Thread Jon Loeliger
Packet Handlers, I have a question regarding adding IP address on multiple interfaces. I know. Seems like it should be obvious and easy. But I am not really a Domain Expert here. So questions about both expected behavior and a possible bug. We'll see. Let's start with this sequence of vppctl

Re: [vpp-dev] Adding IP Addr to Multiple IFs

2017-10-02 Thread Jon Loeliger
On Fri, Sep 29, 2017 at 3:33 PM, Neale Ranns (nranns) wrote: > Hi Jon, > > > > We don’t support overlapping subnets on interfaces. I was trying to fix > the cases where it is errorneously allowed with this patch: > > https://gerrit.fd.io/r/#/c/8057/ > > but I’ve not yet found

Re: [vpp-dev] VPP S-NAT rename

2017-08-23 Thread Jon Loeliger
On Mon, Aug 21, 2017 at 2:39 AM, Ole Troan wrote: > Hi, > > The 'S' in VPP's S-NAT plugin name has often been confused with Linux' > "Source NAT". The 'S' originally stood for "Simple", implying that it was a > less complex implementation of NAT than the previous VCGN

[vpp-dev] Missing include file. Again.

2017-08-23 Thread Jon Loeliger
Folks, I get the following compilation error with current (ie, commit af3d9771dbf89087d3e8bed11aca0a2efa5d7bc8 Author: Marek Gradzki Date: Fri Aug 18 08:47:48 2017 +0200 ) top-of-tree builds: CC tap_inject.c In file included from

Re: [vpp-dev] Augment 'make test' with C build tests?

2017-08-23 Thread Jon Loeliger
> On Wed, Aug 23, 2017 at 2:25 PM, Dave Wallace wrote: > > IMO, "in-tree" .vs. "out-of-tree" really boils down to decoupling the app's > "Makefile.am" the rest of the vpp autotools structure/configuration. For > example, I ran into the same issue with >

Re: [vpp-dev] Augment 'make test' with C build tests?

2017-08-23 Thread Jon Loeliger
>> Feel free to nix this patch, of course, but I'm not really sure where >> or how to get an equivalent test into the ..extras/apps approach yet. > > Cool. Give me a few days, and I'll revise this patch to consolidate the > test apps and integrate the 'make test-c-build' validation into 'make >

[vpp-dev] Static Route Data API Data Structures

2017-08-27 Thread Jon Loeliger
VPP-ites, I am delving into the world of static routes. I am clearly missing some basic information and would like some help understanding how static routes work. For starters, I'm a little unclear on what exactly these items are, or what they represent or hold, and their relationship to each

[vpp-dev] Augment 'make test' with C build tests?

2017-08-23 Thread Jon Loeliger
Damjan and others, Over the past 6 or 8 months, we have had several build failures due to missing include files in the installation of built RPMs. It is a really simple C test to identify the failure. Here is an almost minimal example: #include #include #include #include

Re: [vpp-dev] VPP S-NAT rename

2017-08-23 Thread Jon Loeliger
On Wed, Aug 23, 2017 at 2:56 PM, Ole Troan wrote: > They are now both there in parallel. With a warning in the wiki that the old > one will be removed after 17.10. > https://wiki.fd.io/view/VPP/NAT#API_.28new_after_renaming.29 > > Does that work for you? Yep! jdl

Re: [vpp-dev] Augment 'make test' with C build tests?

2017-08-23 Thread Jon Loeliger
On Wed, Aug 23, 2017 at 2:25 PM, Dave Wallace wrote: > Jon, > > I think this is an excellent idea as your example is clearly a test escape > that we should be detecting in our CI infra. > > However, I'm not sure if "make test" is the appropriate place to add this > check.

Re: [vpp-dev] Missing include file. Again.

2017-08-23 Thread Jon Loeliger
On Wed, Aug 23, 2017 at 1:30 PM, Florin Coras wrote: > Hi Jon, > > There was a pending patch for that but apparently it got abandoned. Here’s a > fix [1] that we’ll merge as soon as it passes verify. > > Sorry for the inconvenience. > > Regards, > Florin > > [1]

Re: [vpp-dev] Discussion Topic: creating demo branches in git.fd.io/vpp

2017-11-15 Thread Jon Loeliger
On Wed, Nov 15, 2017 at 4:17 PM, Dave Wallace wrote: > Folks, > > Per the action item from this yesterday's VPP weekly meeting, I'm asking > for opinions from the VPP community on allowing the creation of demo > branches in the VPP git repo. > > ... > > Pro: Will allow

[vpp-dev] ACL Build/Test Issues

2017-11-10 Thread Jon Loeliger
Folks, Every error from the ACL implementation is -1. Generically bad. Without regard for what might be more useful to an upper-layer UI. So I submitted a patch to help this situation some. https://gerrit.fd.io/r/#/c/9383/ I have built and tested it locally, but it fails the Verify Tests

Re: [vpp-dev] ACL Build/Test Issues

2017-11-10 Thread Jon Loeliger
On Fri, Nov 10, 2017 at 5:54 PM, Andrew Yourtchenko <ayour...@gmail.com> wrote: > Hi Jon, > > On 10 Nov 2017, at 23:11, Jon Loeliger <j...@netgate.com> wrote: > > Folks, > > Every error from the ACL implementation is -1. Generically bad. > Without regard for w

Re: [vpp-dev] Deprecate [S]NAT APIs

2017-11-20 Thread Jon Loeliger
On Mon, Nov 20, 2017 at 9:59 AM, Neale Ranns (nranns) wrote: > > From src/plugins/nat/nat.api > > /* > * Old "snat" APIs, will be deprecated after 17.10 > */ > > is it time? > > /neale > As far as I am concerned, they can go now! Thanks, jdl

[vpp-dev] ACL API Change

2017-11-13 Thread Jon Loeliger
Folks, So, yeah, I was just blind-sided by an API change in the ACL code. Not to name names, or anything by it was commit 36ea2d6d3a67a60534a7c2b58551688858a1ce7f One armed NAT (VPP-1035) Use a single physical interface in order to accomplish NAT44/NAT64. That patch also

Re: [vpp-dev] ACL Build/Test Issues

2017-11-10 Thread Jon Loeliger
Chris, On Fri, Nov 10, 2017 at 8:27 PM, Luke, Chris wrote: > If you’re wondering where the tests are: > > > > $ ls test/*acl* > > test/test_acl_plugin_conns.py test/test_acl_plugin_macip.py > > test/test_acl_plugin_l2l3.py test/test_acl_plugin.py > Ah, excellent! >

Re: [vpp-dev] Missing udp.api.h header file?

2017-11-09 Thread Jon Loeliger
On Thu, Nov 9, 2017 at 4:29 PM, Florin Coras wrote: > Hi Jon, > > This dates back to a couple of days ago. > Hey, I don't pull *every* day... :-) > Fix is on the way … > > Florin > Thank you! jdl ___ vpp-dev mailing list

[vpp-dev] Neighbor DUMP Takes Forever

2017-11-08 Thread Jon Loeliger
Hi Folks, OK, maybe the Neighbor DUMP doesn't literally take forever. But it sure does take too long! Here is the problem: When one goes to DUMP the Neighbor tables, one has no idea which interface might have ARP/NDP entries on them. So one determines the total number of interfaces, and then

Re: [vpp-dev] Neighbor DUMP Takes Forever

2017-11-08 Thread Jon Loeliger
On Wed, Nov 8, 2017 at 12:25 PM, Jon Loeliger <j...@netgate.com> wrote: > Hi Folks, > > OK, maybe the Neighbor DUMP doesn't literally take forever. > But it sure does take too long! Here is the problem: > The problem appears to be PEBCAK. jdl __

Re: [vpp-dev] Neighbor DUMP Takes Forever

2017-11-08 Thread Jon Loeliger
On Wed, Nov 8, 2017 at 12:37 PM, Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco) wrote: > Hi Jon, > > the usual way to deal with possible-empty result sets is to wrap the > call with a control-ping. > > 1.) send control-ping > 2.) send e.g. sw_interface_dump > 3.)

Re: [vpp-dev] And Boost Log too?

2017-11-08 Thread Jon Loeliger
On Wed, Nov 8, 2017 at 2:29 PM, Neale Ranns (nranns) wrote: > Hi Jon, > > > > It doesn’t need it. I must have left that in by mistake. I’ll take it out. > Awesome. Thanks! jdl ___ vpp-dev mailing list vpp-dev@lists.fd.io

[vpp-dev] And Boost Log too?

2017-11-08 Thread Jon Loeliger
Folks, Looks like VPP top-of-tree needs boost_log now. And it isn't in the install-deps. And my "yum install boost-log" goes MIA. Hints? Thanks, jdl g++ -o /home/jdl/workspace/vpp/build-root/vom_test/vom_test -I /home/jdl/workspace/vpp/src/vpp-api/ -std=c++11 -g -Wall -pthread

[vpp-dev] i40e in a sorry state?

2017-12-05 Thread Jon Loeliger
Guys, I've updated VPP to vpp.x86_64 0:18.01-rc0~405_g7f0d1d3 and when I enable a interface, I get this love note: i40e_dev_interrupt_handler(): ICR0: HMC error Aborted This used to work, of course. Some more details below. Any notions? Thanks, jdl # cat /etc/vpp/startup.conf unix

[vpp-dev] MACIP ACL replace causes ip4_table_index change?

2017-12-08 Thread Jon Loeliger
Hey VPP Fans, I've detected a slight anomaly in the handling of MACIP ACLs, and would like some help tracking down the right solution. I start by making a MACIP ACL. vppctl shows: vpp# show acl-plugin macip acl MACIP acl_index: 0, count: 1 (true len 1) tag {bob} is free pool slot: 0

Re: [vpp-dev] MACIP ACL replace causes ip4_table_index change?

2017-12-08 Thread Jon Loeliger
On Fri, Dec 8, 2017 at 11:24 AM, Jon Loeliger <j...@netgate.com> wrote: > On Fri, Dec 8, 2017 at 10:56 AM, Jon Loeliger <j...@netgate.com> wrote: > >> >> vpp# show acl-plugin macip acl >> MACIP acl_index: 0, count: 1 (true len 1) tag {bob} is free

  1   2   3   >