Re: [vpp-dev] DO NOT MERGE ANY PATCHES onto stable/1807

2018-09-13 Thread Edward Warnicke
Due to some technical difficulties with the 18.07 merge jobs we will be
unable to resolve till tomorrow, please continue to not merge patches on
stable/1807

Ed

On Thu, Sep 13, 2018 at 3:12 PM Edward Warnicke  wrote:

> I am in the process of doing the 18.07.1 release.  Will let you know when
> it is done and stable/1807 can be merged to again.
>
> Ed
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
>
> View/Reply Online (#10495): https://lists.fd.io/g/vpp-dev/message/10495
> Mute This Topic: https://lists.fd.io/mt/25646407/464962
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [hagb...@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10497): https://lists.fd.io/g/vpp-dev/message/10497
Mute This Topic: https://lists.fd.io/mt/25646407/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] Unable to create sub-interface with 'untagged' option

2018-09-13 Thread Gudimetla, Leela Sankar
I also see the same error while creating a sub interface with untagged option. 
The parent physical interface is UP when creating the sub-interface.
Curious to know.

Thanks,
Leela sankar
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


[vpp-dev] DO NOT MERGE ANY PATCHES onto stable/1807

2018-09-13 Thread Edward Warnicke
I am in the process of doing the 18.07.1 release.  Will let you know when
it is done and stable/1807 can be merged to again.

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

View/Reply Online (#10495): https://lists.fd.io/g/vpp-dev/message/10495
Mute This Topic: https://lists.fd.io/mt/25646407/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] VPP 18.07 RPM release packages available in Centos

2018-09-13 Thread Jerome Tollet via Lists.Fd.Io
Excellent news. Thanks!

De : Thomas F Herbert 
Date : jeudi 13 septembre 2018 à 21:29
À : "vpp-dev@lists.fd.io" 
Cc : Jerome Tollet 
Objet : Re: [vpp-dev] VPP 18.07 RPM release packages available in Centos


Jerome,

18.07 release packages are in Centos mirrors.

To install Centos release packages of VPP on a Centos, install the Centos NFV 
SIG yum repo and then install vpp as follows.

yum install centos-release-fdio
yum install vpp*

--Tom

On 05/23/2018 10:32 AM, Jerome Tollet (jtollet) wrote:

Hey Thomas,

Can you let us know what you are planning to do for next releases?

Are you manually building those RPMs or will you automatically include bugfix 
versions as well as future versions (e.g. 18.07)?

Jerome

On 5/21/2018 12:24 PM, Thomas F Herbert wrote:

VPP 18.04 RPMs are available in the Centos mirrors by way of the Centos NFV SIG.

From an updated Centos:

To install VPP on a Centos host, intall the Centos NFV SIG yum repo and then 
install vpp as follows.

yum install centos-release-fdio

yum install vpp*

--Tom
--
Thomas F Herbert
NFV and Fast Data Planes
Networking Group Office of the CTO
Red Hat

_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#9338) | Reply 
To 
Sender
 | Reply To 
Group
 | Mute This Topic | New 
Topic

Change Your Subscription
Group Home
Contact Group Owner
Terms Of Service
Unsubscribe From This Group
_._,_._,_

--
Thomas F Herbert
NFV and Fast Data Planes
Networking Group Office of the CTO
Red Hat
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10494): https://lists.fd.io/g/vpp-dev/message/10494
Mute This Topic: https://lists.fd.io/mt/25646023/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] VPP 18.07 RPM release packages available in Centos

2018-09-13 Thread Edward Warnicke
Woot!

Ed

On September 13, 2018 at 2:29:41 PM, Thomas F Herbert (therb...@redhat.com)
wrote:

Jerome,

18.07 release packages are in Centos mirrors.

To install Centos release packages of VPP on a Centos, install the Centos
NFV SIG yum repo and then install vpp as follows.

yum install centos-release-fdio
yum install vpp*

--Tom

On 05/23/2018 10:32 AM, Jerome Tollet (jtollet) wrote:

Hey Thomas,

Can you let us know what you are planning to do for next releases?

Are you manually building those RPMs or will you automatically include
bugfix versions as well as future versions (e.g. 18.07)?

Jerome



On 5/21/2018 12:24 PM, Thomas F Herbert wrote:

VPP 18.04 RPMs are available in the Centos mirrors by way of the Centos NFV
SIG.

>From an updated Centos:

To install VPP on a Centos host, intall the Centos NFV SIG yum repo and
then install vpp as follows.

yum install centos-release-fdio

yum install vpp*

--Tom

-- 
*Thomas F Herbert*
NFV and Fast Data Planes
Networking Group Office of the CTO
*Red Hat*



_._,_._,_
--

Links:

You receive all messages sent to this group.

View/Reply Online (#9338)  | Reply
To Sender

| Reply To Group

| Mute This Topic  | New Topic


Change Your Subscription 
Group Home 
Contact Group Owner 
Terms Of Service 
Unsubscribe From This Group 

_._,_._,_


-- 
*Thomas F Herbert*
NFV and Fast Data Planes
Networking Group Office of the CTO
*Red Hat*
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10492): https://lists.fd.io/g/vpp-dev/message/10492
Mute This Topic: https://lists.fd.io/mt/25646023/464962
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [hagb...@gmail.com]
-=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10493): https://lists.fd.io/g/vpp-dev/message/10493
Mute This Topic: https://lists.fd.io/mt/25646023/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] VPP 18.07 RPM release packages available in Centos

2018-09-13 Thread Thomas F Herbert

Jerome,

18.07 release packages are in Centos mirrors.

To install Centos release packages of VPP on a Centos, install the 
Centos NFV SIG yum repo and then install vpp as follows.


yum install centos-release-fdio

yum install vpp*

--Tom


On 05/23/2018 10:32 AM, Jerome Tollet (jtollet) wrote:


Hey Thomas,

Can you let us know what you are planning to do for next releases?

Are you manually building those RPMs or will you automatically include 
bugfix versions as well as future versions (e.g. 18.07)?


Jerome

On 5/21/2018 12:24 PM, Thomas F Herbert wrote:

VPP 18.04 RPMs are available in the Centos mirrors by way of the
Centos NFV SIG.

From an updated Centos:

To install VPP on a Centos host, intall the Centos NFV SIG yum
repo and then install vpp as follows.

yum install centos-release-fdio

yum install vpp*

--Tom

-- 
*Thomas F Herbert*

NFV and Fast Data Planes
Networking Group Office of the CTO
*Red Hat*

_._,_._,_



Links:

You receive all messages sent to this group.

View/Reply Online (#9338)| 
Reply To 
Sender| 
Reply To 
Group| 
Mute This Topic| New 
Topic


Change Your Subscription
Group Home
Contact Group Owner
Terms Of Service
Unsubscribe From This Group

_._,_._,_



--
*Thomas F Herbert*
NFV and Fast Data Planes
Networking Group Office of the CTO
*Red Hat*
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10492): https://lists.fd.io/g/vpp-dev/message/10492
Mute This Topic: https://lists.fd.io/mt/25646023/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] VPP's C-type-api example

2018-09-13 Thread Klement Sekera via Lists.Fd.Io
what is your api prefix set in the vapi_connect call? is vpp using the
same prefix?

Quoting Ole Troan (2018-09-13 18:35:29)
> > 1、as root, install the rpm(vpp-selinux, vpp-lib, vpp-18.04, vpp-plugins),  
> > start service vpp and I come into vppctl.
> > 2、I copy test/ext/vapi_c_test.c to main.c(a new file, a new dir).
> >compile using: gcc -std=gnu99 -g -Wall -pthread  -I/usr/include/ 
> > -lvppinfra -lvlibmemoryclient -lsvm -lpthread -lcheck -lrt -lm -lvapiclient 
> > -lsubunit main.c -o test
> > 3、then,#./test 
> >But it shows vl_map_shmem:639: region init fail 
> 
> That’s an indication that it cannot connect to VPP.
> Can vpp_api_test connect?
> 
> Cheers,
> Ole
> 
> 
> > 
> > wangchuan...@163.com
> >  
> > From: Ole Troan
> > Date: 2018-09-13 21:44
> > To: wangchuan...@163.com
> > CC: Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco); Dave 
> > Barach (dbarach); vpp-dev
> > Subject: Re: [vpp-dev] VPP's C-type-api example
> > > i am be root 
> >  
> > Then you must provide more details.
> >  
> > Cheers,
> > Ole
> >  
> >  
> > >
> > > wangchuan...@163.com
> > > 
> > > From: Ole Troan
> > > Date: 2018-09-13 21:26
> > > To: wangchuan...@163.com
> > > CC: Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco); Dave 
> > > Barach (dbarach); vpp-dev
> > > Subject: Re: [vpp-dev] VPP's C-type-api example
> > > > But I got some error when using vapi - vapi_connect as " 
> > > > vl_map_shmem:639: region init fail “.
> > > 
> > > Permission error?
> > > Run client as root, or configure VPP to set permissions on API shared 
> > > memory.
> > > 
> > > In VPP startup:
> > > api-segment { uid  gid  }
> > > 
> > > Cheers,
> > > Ole
> > > 
> > > > And my mem : MemFree:  220036 kB  |   
> > > > HugePages_Total: 679   |   HugePages_Free:  627
> > > > Help please!
> > > >
> > > > My code:
> > > > int main()
> > > > {
> > > >   vapi_ctx_t ctx;
> > > >   vapi_error_e rv = vapi_ctx_alloc ();
> > > >   vapi_msg_show_version *sv = vapi_alloc_show_version (ctx);
> > > >   rv = vapi_connect (ctx, app_name, api_prefix, 
> > > > max_outstanding_requests,
> > > >  response_queue_size, VAPI_MODE_BLOCKING);
> > > >   rv = vapi_send (ctx, sv);
> > > >   vapi_msg_show_version_reply *reply;
> > > >   rv = vapi_recv (ctx, (void **) , NULL, 0, 0);
> > > >   if(reply != NULL)
> > > >   printf("ret[%d] program[%s] version[%s] \n build_date[%s] 
> > > > build_directory[%s]\n", reply->payload.retval, reply->payload.program, 
> > > > reply->payload.version, reply->payload.build_date, 
> > > > reply->payload.build_directory);
> > > >   else
> > > > printf("show version return none\n");
> > > >   rv = vapi_disconnect (ctx);
> > > >   vapi_ctx_free (ctx);
> > > >  printf("end\n");
> > > > return 0;
> > > > }
> > > >
> > > > wangchuan...@163.com
> > > >
> > > > From: Klement Sekera
> > > > Date: 2018-09-13 17:02
> > > > To: Ole Troan; wangchuanguo
> > > > CC: Dave Barach (dbarach); vpp-dev
> > > > Subject: Re: [vpp-dev] VPP's C-type-api example
> > > > You can also check out the test/ext directory for vapi_c_test.c and
> > > > vapi_cpp_test.cpp, which are unittests for these bindings and there is
> > > > also an example of _dump API call.
> > > >
> > > > Regards,
> > > > Klement
> > > >
> > > > Quoting Ole Troan (2018-09-13 09:33:14)
> > > > > Hi again,
> > > > >
> > > > > > I am in the beginning of using-c-api.  Should I not follow  
> > > > > > (src/vpp-api/client)  ?
> > > > > > Can you please show me a fun-name and a example of the higher level 
> > > > > > C API?
> > > > >
> > > > > That’s right, I wouldn’t recommend using the src/vpp-aoi/client API 
> > > > > unless you are building a new language binding.
> > > > >
> > > > > If you need a C interface you should use VAPI.
> > > > >
> > > > > See interface.api.vapi.h (auto-generated) for sw_interface_dump()
> > > > >
> > > > > static inline vapi_error_e vapi_sw_interface_dump(struct vapi_ctx_s 
> > > > > *ctx,
> > > > >   vapi_msg_sw_interface_dump *msg,
> > > > >   vapi_error_e (*callback)(struct vapi_ctx_s *ctx,
> > > > >void *callback_ctx,
> > > > >vapi_error_e rv,
> > > > >bool is_last,
> > > > >vapi_payload_sw_interface_details *reply),
> > > > >   void *callback_ctx)
> > > > >
> > > > >
> > > > > src/vpp-api/vapi/vapi_doc.md for documentation.
> > > > >
> > > > > To get a feel of how the API works, at even higher level you can play 
> > > > > with the Python language binding.
> > > > >
> > > > > Best regards,
> > > > > Ole
> > > > >
> > > > >
> > > > >
> > > > > -=-=-=-=-=-=-=-=-=-=-=-
> > > > > Links: You receive all messages sent to this group.
> > > > >
> > > > > View/Reply Online (#10481): 
> > > > > https://lists.fd.io/g/vpp-dev/message/10481
> > > > > Mute This Topic: https://lists.fd.io/mt/25510961/675704
> > > > > Group Owner: 

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

2018-09-13 Thread Ole Troan
> 1、as root, install the rpm(vpp-selinux, vpp-lib, vpp-18.04, vpp-plugins),  
> start service vpp and I come into vppctl.
> 2、I copy test/ext/vapi_c_test.c to main.c(a new file, a new dir).
>compile using: gcc -std=gnu99 -g -Wall -pthread  -I/usr/include/ 
> -lvppinfra -lvlibmemoryclient -lsvm -lpthread -lcheck -lrt -lm -lvapiclient 
> -lsubunit main.c -o test
> 3、then,#./test 
>But it shows vl_map_shmem:639: region init fail 

That’s an indication that it cannot connect to VPP.
Can vpp_api_test connect?

Cheers,
Ole


> 
> wangchuan...@163.com
>  
> From: Ole Troan
> Date: 2018-09-13 21:44
> To: wangchuan...@163.com
> CC: Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco); Dave Barach 
> (dbarach); vpp-dev
> Subject: Re: [vpp-dev] VPP's C-type-api example
> > i am be root 
>  
> Then you must provide more details.
>  
> Cheers,
> Ole
>  
>  
> >
> > wangchuan...@163.com
> > 
> > From: Ole Troan
> > Date: 2018-09-13 21:26
> > To: wangchuan...@163.com
> > CC: Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco); Dave 
> > Barach (dbarach); vpp-dev
> > Subject: Re: [vpp-dev] VPP's C-type-api example
> > > But I got some error when using vapi - vapi_connect as " 
> > > vl_map_shmem:639: region init fail “.
> > 
> > Permission error?
> > Run client as root, or configure VPP to set permissions on API shared 
> > memory.
> > 
> > In VPP startup:
> > api-segment { uid  gid  }
> > 
> > Cheers,
> > Ole
> > 
> > > And my mem : MemFree:  220036 kB  |   
> > > HugePages_Total: 679   |   HugePages_Free:  627
> > > Help please!
> > >
> > > My code:
> > > int main()
> > > {
> > >   vapi_ctx_t ctx;
> > >   vapi_error_e rv = vapi_ctx_alloc ();
> > >   vapi_msg_show_version *sv = vapi_alloc_show_version (ctx);
> > >   rv = vapi_connect (ctx, app_name, api_prefix, max_outstanding_requests,
> > >  response_queue_size, VAPI_MODE_BLOCKING);
> > >   rv = vapi_send (ctx, sv);
> > >   vapi_msg_show_version_reply *reply;
> > >   rv = vapi_recv (ctx, (void **) , NULL, 0, 0);
> > >   if(reply != NULL)
> > >   printf("ret[%d] program[%s] version[%s] \n build_date[%s] 
> > > build_directory[%s]\n", reply->payload.retval, reply->payload.program, 
> > > reply->payload.version, reply->payload.build_date, 
> > > reply->payload.build_directory);
> > >   else
> > > printf("show version return none\n");
> > >   rv = vapi_disconnect (ctx);
> > >   vapi_ctx_free (ctx);
> > >  printf("end\n");
> > > return 0;
> > > }
> > >
> > > wangchuan...@163.com
> > >
> > > From: Klement Sekera
> > > Date: 2018-09-13 17:02
> > > To: Ole Troan; wangchuanguo
> > > CC: Dave Barach (dbarach); vpp-dev
> > > Subject: Re: [vpp-dev] VPP's C-type-api example
> > > You can also check out the test/ext directory for vapi_c_test.c and
> > > vapi_cpp_test.cpp, which are unittests for these bindings and there is
> > > also an example of _dump API call.
> > >
> > > Regards,
> > > Klement
> > >
> > > Quoting Ole Troan (2018-09-13 09:33:14)
> > > > Hi again,
> > > >
> > > > > I am in the beginning of using-c-api.  Should I not follow  
> > > > > (src/vpp-api/client)  ?
> > > > > Can you please show me a fun-name and a example of the higher level C 
> > > > > API?
> > > >
> > > > That’s right, I wouldn’t recommend using the src/vpp-aoi/client API 
> > > > unless you are building a new language binding.
> > > >
> > > > If you need a C interface you should use VAPI.
> > > >
> > > > See interface.api.vapi.h (auto-generated) for sw_interface_dump()
> > > >
> > > > static inline vapi_error_e vapi_sw_interface_dump(struct vapi_ctx_s 
> > > > *ctx,
> > > >   vapi_msg_sw_interface_dump *msg,
> > > >   vapi_error_e (*callback)(struct vapi_ctx_s *ctx,
> > > >void *callback_ctx,
> > > >vapi_error_e rv,
> > > >bool is_last,
> > > >vapi_payload_sw_interface_details *reply),
> > > >   void *callback_ctx)
> > > >
> > > >
> > > > src/vpp-api/vapi/vapi_doc.md for documentation.
> > > >
> > > > To get a feel of how the API works, at even higher level you can play 
> > > > with the Python language binding.
> > > >
> > > > Best regards,
> > > > Ole
> > > >
> > > >
> > > >
> > > > -=-=-=-=-=-=-=-=-=-=-=-
> > > > Links: You receive all messages sent to this group.
> > > >
> > > > View/Reply Online (#10481): https://lists.fd.io/g/vpp-dev/message/10481
> > > > Mute This Topic: https://lists.fd.io/mt/25510961/675704
> > > > Group Owner: vpp-dev+ow...@lists.fd.io
> > > > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [ksek...@cisco.com]
> > > > -=-=-=-=-=-=-=-=-=-=-=-

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

View/Reply Online (#10490): https://lists.fd.io/g/vpp-dev/message/10490
Mute This Topic: https://lists.fd.io/mt/25510961/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  

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

2018-09-13 Thread wangchuan...@163.com
1、as root, install the rpm(vpp-selinux, vpp-lib, vpp-18.04, vpp-plugins),  
start service vpp and I come into vppctl.
2、I copy test/ext/vapi_c_test.c to main.c(a new file, a new dir).
   compile using: gcc -std=gnu99 -g -Wall -pthread  -I/usr/include/ 
-lvppinfra -lvlibmemoryclient -lsvm -lpthread -lcheck -lrt -lm -lvapiclient 
-lsubunit main.c -o test
3、then,#./test 
   But it shows vl_map_shmem:639: region init fail 



wangchuan...@163.com
 
From: Ole Troan
Date: 2018-09-13 21:44
To: wangchuan...@163.com
CC: Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco); Dave Barach 
(dbarach); vpp-dev
Subject: Re: [vpp-dev] VPP's C-type-api example
> i am be root  
 
Then you must provide more details.
 
Cheers,
Ole
 
 
> 
> wangchuan...@163.com
>  
> From: Ole Troan
> Date: 2018-09-13 21:26
> To: wangchuan...@163.com
> CC: Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco); Dave Barach 
> (dbarach); vpp-dev
> Subject: Re: [vpp-dev] VPP's C-type-api example
> > But I got some error when using vapi - vapi_connect as " vl_map_shmem:639: 
> > region init fail “.
>  
> Permission error?
> Run client as root, or configure VPP to set permissions on API shared memory.
>  
> In VPP startup:
> api-segment { uid  gid  }
>  
> Cheers,
> Ole
>  
> > And my mem : MemFree:  220036 kB  |   HugePages_Total:  
> >679   |   HugePages_Free:  627
> > Help please!
> >
> > My code:
> > int main()
> > {
> >   vapi_ctx_t ctx;
> >   vapi_error_e rv = vapi_ctx_alloc ();
> >   vapi_msg_show_version *sv = vapi_alloc_show_version (ctx);
> >   rv = vapi_connect (ctx, app_name, api_prefix, max_outstanding_requests,
> >  response_queue_size, VAPI_MODE_BLOCKING);
> >   rv = vapi_send (ctx, sv);
> >   vapi_msg_show_version_reply *reply;
> >   rv = vapi_recv (ctx, (void **) , NULL, 0, 0);
> >   if(reply != NULL)
> >   printf("ret[%d] program[%s] version[%s] \n build_date[%s] 
> > build_directory[%s]\n", reply->payload.retval, reply->payload.program, 
> > reply->payload.version, reply->payload.build_date, 
> > reply->payload.build_directory);
> >   else
> > printf("show version return none\n");
> >   rv = vapi_disconnect (ctx);
> >   vapi_ctx_free (ctx);
> >  printf("end\n");
> > return 0;
> > }
> >
> > wangchuan...@163.com
> > 
> > From: Klement Sekera
> > Date: 2018-09-13 17:02
> > To: Ole Troan; wangchuanguo
> > CC: Dave Barach (dbarach); vpp-dev
> > Subject: Re: [vpp-dev] VPP's C-type-api example
> > You can also check out the test/ext directory for vapi_c_test.c and
> > vapi_cpp_test.cpp, which are unittests for these bindings and there is
> > also an example of _dump API call.
> > 
> > Regards,
> > Klement
> > 
> > Quoting Ole Troan (2018-09-13 09:33:14)
> > > Hi again,
> > >
> > > > I am in the beginning of using-c-api.  Should I not follow  
> > > > (src/vpp-api/client)  ?
> > > > Can you please show me a fun-name and a example of the higher level C 
> > > > API?
> > >
> > > That’s right, I wouldn’t recommend using the src/vpp-aoi/client API 
> > > unless you are building a new language binding.
> > >
> > > If you need a C interface you should use VAPI.
> > >
> > > See interface.api.vapi.h (auto-generated) for sw_interface_dump()
> > >
> > > static inline vapi_error_e vapi_sw_interface_dump(struct vapi_ctx_s *ctx,
> > >   vapi_msg_sw_interface_dump *msg,
> > >   vapi_error_e (*callback)(struct vapi_ctx_s *ctx,
> > >void *callback_ctx,
> > >vapi_error_e rv,
> > >bool is_last,
> > >vapi_payload_sw_interface_details *reply),
> > >   void *callback_ctx)
> > >
> > >
> > > src/vpp-api/vapi/vapi_doc.md for documentation.
> > >
> > > To get a feel of how the API works, at even higher level you can play 
> > > with the Python language binding.
> > >
> > > Best regards,
> > > Ole
> > >
> > >
> > >
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > > Links: You receive all messages sent to this group.
> > >
> > > View/Reply Online (#10481): https://lists.fd.io/g/vpp-dev/message/10481
> > > Mute This Topic: https://lists.fd.io/mt/25510961/675704
> > > Group Owner: vpp-dev+ow...@lists.fd.io
> > > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [ksek...@cisco.com]
> > > -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10489): https://lists.fd.io/g/vpp-dev/message/10489
Mute This Topic: https://lists.fd.io/mt/25510961/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] VPP's C-type-api example

2018-09-13 Thread wangchuan...@163.com
hi all,
Thanks at first.
But I got some error when using vapi - vapi_connect as " vl_map_shmem:639: 
region init fail ".
And my mem : MemFree:  220036 kB  |   HugePages_Total: 
679   |   HugePages_Free:  627
Help please!

My code:
int main()
{
  vapi_ctx_t ctx;
  vapi_error_e rv = vapi_ctx_alloc ();
  vapi_msg_show_version *sv = vapi_alloc_show_version (ctx);
  rv = vapi_connect (ctx, app_name, api_prefix, max_outstanding_requests,
 response_queue_size, VAPI_MODE_BLOCKING);
  rv = vapi_send (ctx, sv);
  vapi_msg_show_version_reply *reply;
  rv = vapi_recv (ctx, (void **) , NULL, 0, 0);
  if(reply != NULL)
  printf("ret[%d] program[%s] version[%s] \n build_date[%s] 
build_directory[%s]\n", reply->payload.retval, reply->payload.program, 
reply->payload.version, reply->payload.build_date, 
reply->payload.build_directory);
  else
printf("show version return none\n");
  rv = vapi_disconnect (ctx);
  vapi_ctx_free (ctx);
 printf("end\n");
return 0;
}



wangchuan...@163.com
 
From: Klement Sekera
Date: 2018-09-13 17:02
To: Ole Troan; wangchuanguo
CC: Dave Barach (dbarach); vpp-dev
Subject: Re: [vpp-dev] VPP's C-type-api example
You can also check out the test/ext directory for vapi_c_test.c and
vapi_cpp_test.cpp, which are unittests for these bindings and there is
also an example of _dump API call.
 
Regards,
Klement
 
Quoting Ole Troan (2018-09-13 09:33:14)
> Hi again,
> 
> > I am in the beginning of using-c-api.  Should I not follow  
> > (src/vpp-api/client)  ?
> > Can you please show me a fun-name and a example of the higher level C API?
> 
> That’s right, I wouldn’t recommend using the src/vpp-aoi/client API unless 
> you are building a new language binding.
> 
> If you need a C interface you should use VAPI.
> 
> See interface.api.vapi.h (auto-generated) for sw_interface_dump()
> 
> static inline vapi_error_e vapi_sw_interface_dump(struct vapi_ctx_s *ctx,
>   vapi_msg_sw_interface_dump *msg,
>   vapi_error_e (*callback)(struct vapi_ctx_s *ctx,
>void *callback_ctx,
>vapi_error_e rv,
>bool is_last,
>vapi_payload_sw_interface_details *reply),
>   void *callback_ctx)
> 
> 
> src/vpp-api/vapi/vapi_doc.md for documentation.
> 
> To get a feel of how the API works, at even higher level you can play with 
> the Python language binding.
> 
> Best regards,
> Ole
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#10481): https://lists.fd.io/g/vpp-dev/message/10481
> Mute This Topic: https://lists.fd.io/mt/25510961/675704
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [ksek...@cisco.com]
> -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10487): https://lists.fd.io/g/vpp-dev/message/10487
Mute This Topic: https://lists.fd.io/mt/25510961/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] VPP's C-type-api example

2018-09-13 Thread wangchuan...@163.com
i am be root  



wangchuan...@163.com
 
From: Ole Troan
Date: 2018-09-13 21:26
To: wangchuan...@163.com
CC: Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco); Dave Barach 
(dbarach); vpp-dev
Subject: Re: [vpp-dev] VPP's C-type-api example
> But I got some error when using vapi - vapi_connect as " vl_map_shmem:639: 
> region init fail “.
 
Permission error?
Run client as root, or configure VPP to set permissions on API shared memory.
 
In VPP startup:
api-segment { uid  gid  }
 
Cheers,
Ole
 
> And my mem : MemFree:  220036 kB  |   HugePages_Total:
>  679   |   HugePages_Free:  627
> Help please!
> 
> My code:
> int main()
> {
>   vapi_ctx_t ctx;
>   vapi_error_e rv = vapi_ctx_alloc ();
>   vapi_msg_show_version *sv = vapi_alloc_show_version (ctx);
>   rv = vapi_connect (ctx, app_name, api_prefix, max_outstanding_requests,
>  response_queue_size, VAPI_MODE_BLOCKING);
>   rv = vapi_send (ctx, sv);
>   vapi_msg_show_version_reply *reply;
>   rv = vapi_recv (ctx, (void **) , NULL, 0, 0);
>   if(reply != NULL)
>   printf("ret[%d] program[%s] version[%s] \n build_date[%s] 
> build_directory[%s]\n", reply->payload.retval, reply->payload.program, 
> reply->payload.version, reply->payload.build_date, 
> reply->payload.build_directory);
>   else
> printf("show version return none\n");
>   rv = vapi_disconnect (ctx);
>   vapi_ctx_free (ctx);
>  printf("end\n");
> return 0;
> }
> 
> wangchuan...@163.com
>  
> From: Klement Sekera
> Date: 2018-09-13 17:02
> To: Ole Troan; wangchuanguo
> CC: Dave Barach (dbarach); vpp-dev
> Subject: Re: [vpp-dev] VPP's C-type-api example
> You can also check out the test/ext directory for vapi_c_test.c and
> vapi_cpp_test.cpp, which are unittests for these bindings and there is
> also an example of _dump API call.
>  
> Regards,
> Klement
>  
> Quoting Ole Troan (2018-09-13 09:33:14)
> > Hi again,
> >
> > > I am in the beginning of using-c-api.  Should I not follow  
> > > (src/vpp-api/client)  ?
> > > Can you please show me a fun-name and a example of the higher level C API?
> >
> > That’s right, I wouldn’t recommend using the src/vpp-aoi/client API unless 
> > you are building a new language binding.
> >
> > If you need a C interface you should use VAPI.
> >
> > See interface.api.vapi.h (auto-generated) for sw_interface_dump()
> >
> > static inline vapi_error_e vapi_sw_interface_dump(struct vapi_ctx_s *ctx,
> >   vapi_msg_sw_interface_dump *msg,
> >   vapi_error_e (*callback)(struct vapi_ctx_s *ctx,
> >void *callback_ctx,
> >vapi_error_e rv,
> >bool is_last,
> >vapi_payload_sw_interface_details *reply),
> >   void *callback_ctx)
> >
> >
> > src/vpp-api/vapi/vapi_doc.md for documentation.
> >
> > To get a feel of how the API works, at even higher level you can play with 
> > the Python language binding.
> >
> > Best regards,
> > Ole
> >
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> >
> > View/Reply Online (#10481): https://lists.fd.io/g/vpp-dev/message/10481
> > Mute This Topic: https://lists.fd.io/mt/25510961/675704
> > Group Owner: vpp-dev+ow...@lists.fd.io
> > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [ksek...@cisco.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10488): https://lists.fd.io/g/vpp-dev/message/10488
Mute This Topic: https://lists.fd.io/mt/25510961/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] VPP's C-type-api example

2018-09-13 Thread Ole Troan
> i am be root  

Then you must provide more details.

Cheers,
Ole


> 
> wangchuan...@163.com
>  
> From: Ole Troan
> Date: 2018-09-13 21:26
> To: wangchuan...@163.com
> CC: Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco); Dave Barach 
> (dbarach); vpp-dev
> Subject: Re: [vpp-dev] VPP's C-type-api example
> > But I got some error when using vapi - vapi_connect as " vl_map_shmem:639: 
> > region init fail “.
>  
> Permission error?
> Run client as root, or configure VPP to set permissions on API shared memory.
>  
> In VPP startup:
> api-segment { uid  gid  }
>  
> Cheers,
> Ole
>  
> > And my mem : MemFree:  220036 kB  |   HugePages_Total:  
> >679   |   HugePages_Free:  627
> > Help please!
> >
> > My code:
> > int main()
> > {
> >   vapi_ctx_t ctx;
> >   vapi_error_e rv = vapi_ctx_alloc ();
> >   vapi_msg_show_version *sv = vapi_alloc_show_version (ctx);
> >   rv = vapi_connect (ctx, app_name, api_prefix, max_outstanding_requests,
> >  response_queue_size, VAPI_MODE_BLOCKING);
> >   rv = vapi_send (ctx, sv);
> >   vapi_msg_show_version_reply *reply;
> >   rv = vapi_recv (ctx, (void **) , NULL, 0, 0);
> >   if(reply != NULL)
> >   printf("ret[%d] program[%s] version[%s] \n build_date[%s] 
> > build_directory[%s]\n", reply->payload.retval, reply->payload.program, 
> > reply->payload.version, reply->payload.build_date, 
> > reply->payload.build_directory);
> >   else
> > printf("show version return none\n");
> >   rv = vapi_disconnect (ctx);
> >   vapi_ctx_free (ctx);
> >  printf("end\n");
> > return 0;
> > }
> >
> > wangchuan...@163.com
> > 
> > From: Klement Sekera
> > Date: 2018-09-13 17:02
> > To: Ole Troan; wangchuanguo
> > CC: Dave Barach (dbarach); vpp-dev
> > Subject: Re: [vpp-dev] VPP's C-type-api example
> > You can also check out the test/ext directory for vapi_c_test.c and
> > vapi_cpp_test.cpp, which are unittests for these bindings and there is
> > also an example of _dump API call.
> > 
> > Regards,
> > Klement
> > 
> > Quoting Ole Troan (2018-09-13 09:33:14)
> > > Hi again,
> > >
> > > > I am in the beginning of using-c-api.  Should I not follow  
> > > > (src/vpp-api/client)  ?
> > > > Can you please show me a fun-name and a example of the higher level C 
> > > > API?
> > >
> > > That’s right, I wouldn’t recommend using the src/vpp-aoi/client API 
> > > unless you are building a new language binding.
> > >
> > > If you need a C interface you should use VAPI.
> > >
> > > See interface.api.vapi.h (auto-generated) for sw_interface_dump()
> > >
> > > static inline vapi_error_e vapi_sw_interface_dump(struct vapi_ctx_s *ctx,
> > >   vapi_msg_sw_interface_dump *msg,
> > >   vapi_error_e (*callback)(struct vapi_ctx_s *ctx,
> > >void *callback_ctx,
> > >vapi_error_e rv,
> > >bool is_last,
> > >vapi_payload_sw_interface_details *reply),
> > >   void *callback_ctx)
> > >
> > >
> > > src/vpp-api/vapi/vapi_doc.md for documentation.
> > >
> > > To get a feel of how the API works, at even higher level you can play 
> > > with the Python language binding.
> > >
> > > Best regards,
> > > Ole
> > >
> > >
> > >
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > > Links: You receive all messages sent to this group.
> > >
> > > View/Reply Online (#10481): https://lists.fd.io/g/vpp-dev/message/10481
> > > Mute This Topic: https://lists.fd.io/mt/25510961/675704
> > > Group Owner: vpp-dev+ow...@lists.fd.io
> > > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [ksek...@cisco.com]
> > > -=-=-=-=-=-=-=-=-=-=-=-

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

View/Reply Online (#10486): https://lists.fd.io/g/vpp-dev/message/10486
Mute This Topic: https://lists.fd.io/mt/25510961/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] VPP's C-type-api example

2018-09-13 Thread Ole Troan
> But I got some error when using vapi - vapi_connect as " vl_map_shmem:639: 
> region init fail “.

Permission error?
Run client as root, or configure VPP to set permissions on API shared memory.

In VPP startup:
api-segment { uid  gid  }

Cheers,
Ole

> And my mem : MemFree:  220036 kB  |   HugePages_Total:
>  679   |   HugePages_Free:  627
> Help please!
> 
> My code:
> int main()
> {
>   vapi_ctx_t ctx;
>   vapi_error_e rv = vapi_ctx_alloc ();
>   vapi_msg_show_version *sv = vapi_alloc_show_version (ctx);
>   rv = vapi_connect (ctx, app_name, api_prefix, max_outstanding_requests,
>  response_queue_size, VAPI_MODE_BLOCKING);
>   rv = vapi_send (ctx, sv);
>   vapi_msg_show_version_reply *reply;
>   rv = vapi_recv (ctx, (void **) , NULL, 0, 0);
>   if(reply != NULL)
>   printf("ret[%d] program[%s] version[%s] \n build_date[%s] 
> build_directory[%s]\n", reply->payload.retval, reply->payload.program, 
> reply->payload.version, reply->payload.build_date, 
> reply->payload.build_directory);
>   else
> printf("show version return none\n");
>   rv = vapi_disconnect (ctx);
>   vapi_ctx_free (ctx);
>  printf("end\n");
> return 0;
> }
> 
> wangchuan...@163.com
>  
> From: Klement Sekera
> Date: 2018-09-13 17:02
> To: Ole Troan; wangchuanguo
> CC: Dave Barach (dbarach); vpp-dev
> Subject: Re: [vpp-dev] VPP's C-type-api example
> You can also check out the test/ext directory for vapi_c_test.c and
> vapi_cpp_test.cpp, which are unittests for these bindings and there is
> also an example of _dump API call.
>  
> Regards,
> Klement
>  
> Quoting Ole Troan (2018-09-13 09:33:14)
> > Hi again,
> >
> > > I am in the beginning of using-c-api.  Should I not follow  
> > > (src/vpp-api/client)  ?
> > > Can you please show me a fun-name and a example of the higher level C API?
> >
> > That’s right, I wouldn’t recommend using the src/vpp-aoi/client API unless 
> > you are building a new language binding.
> >
> > If you need a C interface you should use VAPI.
> >
> > See interface.api.vapi.h (auto-generated) for sw_interface_dump()
> >
> > static inline vapi_error_e vapi_sw_interface_dump(struct vapi_ctx_s *ctx,
> >   vapi_msg_sw_interface_dump *msg,
> >   vapi_error_e (*callback)(struct vapi_ctx_s *ctx,
> >void *callback_ctx,
> >vapi_error_e rv,
> >bool is_last,
> >vapi_payload_sw_interface_details *reply),
> >   void *callback_ctx)
> >
> >
> > src/vpp-api/vapi/vapi_doc.md for documentation.
> >
> > To get a feel of how the API works, at even higher level you can play with 
> > the Python language binding.
> >
> > Best regards,
> > Ole
> >
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> >
> > View/Reply Online (#10481): https://lists.fd.io/g/vpp-dev/message/10481
> > Mute This Topic: https://lists.fd.io/mt/25510961/675704
> > Group Owner: vpp-dev+ow...@lists.fd.io
> > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [ksek...@cisco.com]
> > -=-=-=-=-=-=-=-=-=-=-=-

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

View/Reply Online (#10485): https://lists.fd.io/g/vpp-dev/message/10485
Mute This Topic: https://lists.fd.io/mt/25510961/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] VPP's C-type-api example

2018-09-13 Thread Klement Sekera via Lists.Fd.Io
You can also check out the test/ext directory for vapi_c_test.c and
vapi_cpp_test.cpp, which are unittests for these bindings and there is
also an example of _dump API call.

Regards,
Klement

Quoting Ole Troan (2018-09-13 09:33:14)
> Hi again,
> 
> > I am in the beginning of using-c-api.  Should I not follow  
> > (src/vpp-api/client)  ?
> > Can you please show me a fun-name and a example of the higher level C API?
> 
> That’s right, I wouldn’t recommend using the src/vpp-aoi/client API unless 
> you are building a new language binding.
> 
> If you need a C interface you should use VAPI.
> 
> See interface.api.vapi.h (auto-generated) for sw_interface_dump()
> 
> static inline vapi_error_e vapi_sw_interface_dump(struct vapi_ctx_s *ctx,
>   vapi_msg_sw_interface_dump *msg,
>   vapi_error_e (*callback)(struct vapi_ctx_s *ctx,
>void *callback_ctx,
>vapi_error_e rv,
>bool is_last,
>vapi_payload_sw_interface_details *reply),
>   void *callback_ctx)
> 
> 
> src/vpp-api/vapi/vapi_doc.md for documentation.
> 
> To get a feel of how the API works, at even higher level you can play with 
> the Python language binding.
> 
> Best regards,
> Ole
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#10481): https://lists.fd.io/g/vpp-dev/message/10481
> Mute This Topic: https://lists.fd.io/mt/25510961/675704
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [ksek...@cisco.com]
> -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10484): https://lists.fd.io/g/vpp-dev/message/10484
Mute This Topic: https://lists.fd.io/mt/25510961/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] hqos configuration in vpp (Connection refused)

2018-09-13 Thread Alex
The same problem with you. Have you been solved the problem?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10483): https://lists.fd.io/g/vpp-dev/message/10483
Mute This Topic: https://lists.fd.io/mt/25396306/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] hqos configuration in vpp (Connection refused)

2018-09-13 Thread Jasvinder Singh
Hi Reza,

I tested HQoS on my fedora system as below and found it working, didn’t see any 
issue;


1.   Make build

2.   Make run STARTUP_CONF=startup.conf

3.   DGBvpp#

startup.conf

unix {
interactive
log /tmp/vpp.log
cli-listen /run/vpp/cli.sock
full-coredump
}

dpdk {
socket-mem 8192,8192

dev :02:00.0 {num-rx-queues 2 hqos}
dev :02:00.1 {num-rx-queues 2 hqos}

num-mbufs 100

}

cpu {
main-core 0
corelist-workers 1,2,3,4
corelist-hqos-threads  5,6
}

Thanks,
Jasvinder


From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Reza Mirzaei
Sent: Sunday, September 9, 2018 9:11 AM
To: Vpp Dev 
Subject: [vpp-dev] hqos configuration in vpp (Connection refused)


Hi

I want to config vpp in a way that it can use hqos according to this 
tutorial, but when i set hqos 
feature for an interface in /etc/vpp/starttup.conf and then restart vpp 
service, it's not clear for me that why vpp service can not be started. can 
anyone help me to solve this problem?

My modifications on /etc/vpp/startup.conf are as follows:



 ...

 cpu {

 main-core 0
 corelist-workers 1, 2
 corelist-hqos-threads 3
 }

 dpdk {

 socket-mem 2048,2048

 dev :0b:00.0 {
 num-rx-queues 2 hqos
 }

 num-mbufs 100

 }

...



Output of vppctl command after service vpp restart:

   clib_socket_init: connect (fd 3, '/run/vpp/cli.sock'): Connection 
refused



Best regards

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

View/Reply Online (#10482): https://lists.fd.io/g/vpp-dev/message/10482
Mute This Topic: https://lists.fd.io/mt/25396306/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] VPP's C-type-api example

2018-09-13 Thread Ole Troan
Hi again,

> I am in the beginning of using-c-api.  Should I not follow  
> (src/vpp-api/client)  ?
> Can you please show me a fun-name and a example of the higher level C API?

That’s right, I wouldn’t recommend using the src/vpp-aoi/client API unless you 
are building a new language binding.

If you need a C interface you should use VAPI.

See interface.api.vapi.h (auto-generated) for sw_interface_dump()

static inline vapi_error_e vapi_sw_interface_dump(struct vapi_ctx_s *ctx,
  vapi_msg_sw_interface_dump *msg,
  vapi_error_e (*callback)(struct vapi_ctx_s *ctx,
   void *callback_ctx,
   vapi_error_e rv,
   bool is_last,
   vapi_payload_sw_interface_details *reply),
  void *callback_ctx)


src/vpp-api/vapi/vapi_doc.md for documentation.

To get a feel of how the API works, at even higher level you can play with the 
Python language binding.

Best regards,
Ole

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

View/Reply Online (#10481): https://lists.fd.io/g/vpp-dev/message/10481
Mute This Topic: https://lists.fd.io/mt/25510961/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] vpp-arm-verify-master-ubuntu1604 failing

2018-09-13 Thread Ole Troan
> But nonetheless, the issue you reported is a known issue and I'll be looking 
> into figuring out what's going on. The tests work fine x86, but not on ARM 
> and there isn't an apparent reason for why that's the case, since the tests 
> worked fine before.
>  

Is the main cause those python segfaults?
Figuring out what triggers that python bug might be a start.

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

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