[vpp-dev] ?????? ?????? How to get interface stats using C api?

2017-09-26 Thread ????????
That is ok?? Now I am research calling the plugin apis by C. Especially how to call the event apis. I would appreciate it if you can write a brief client. -- -- ??: "Keith Burns";; : 2017??9??27??(??) 10:47

Re: [vpp-dev] 回复: How to get interface stats using C api?

2017-09-26 Thread Keith Burns
Apologies, It's a callback. We probably need some decent literature written for how to consume the various C, C++, Python and Lua APIs If you have a preference for any of those languages I could write a brief client program for you and start work on documenting this stuff. On Sep 26, 2017 6:04

[vpp-dev] ?????? How to get interface stats using C api?

2017-09-26 Thread ????????
Hi?? Thank you for your detail information. After reading this, i can understand. But after calling "want_per_interface_simple_stats" with enable_disable=1, num=1 and sw_ifs[4], i do not know how to receive this stats. calling other function or variable? Can you tell me how to receive stats

[vpp-dev] ?????? How to get interface stats using C api?

2017-09-26 Thread ????????
Hi?? Thank you for your detail information. After reading this, i can understand. But after calling "want_per_interface_simple_stats" with enable_disable=1, num=1 and sw_ifs[4], i do not know how to receive this stats. calling other function or variable? Can you tell me how to receive stats

Re: [vpp-dev] How to get interface stats using C api?

2017-09-26 Thread Keith Burns
Hi there, As of 17.10 you can now register for statistics on a per interface level. You need the sw_if_index of the interface you want stats for, but the calls are in https://git.fd.io/vpp/tree/src/vpp/stats/stats.api but as an example: Register: autoreply define

Re: [vpp-dev] Trunk ports with VPP

2017-09-26 Thread Prabhjot Singh Sethi
the better configuration that suits my case for adding vlan tag while egressing packet on sub interfaces is to use "pop 1" tag-rewrite. However it is still a mystery why there is an issue with ingress of vlan tagged packet, even though the packet is tagged with appropriate vlan it stays on the

Re: [vpp-dev] 17.10 IPsec work

2017-09-26 Thread Sergio Gonzalez Monroy
Hi Matt, The idea was to use the midchain-adj infrastructure (aka new FIB, aka FIB 2.0) when using IPsec tunnel interface and build the final 'rewrite' at tunnel creation for outbound traffic. Current IPsec path for outbound packet: ... -> ip4-lookup -> ip4-rewrite ->ipsec-if-output ->

[vpp-dev] 17.10 IPsec work

2017-09-26 Thread Matthew Smith
Hi, There is an item listed as “IPSec rework - utilize new FIB” on the list of deliverables in the 17.10 release plan at https://wiki.fd.io/view/Projects/vpp/Release_Plans/Release_Plan_17.10 . Does anyone have any more

Re: [vpp-dev] deadlock issue in VPP during DHCP packet processing

2017-09-26 Thread John Lo (loj)
There was a patch recently merged in mater/17.10: https://gerrit.fd.io/r/#/c/8464/ Can you try the latest image from master/17.10 or apply the patch it into your 17.07 tree and rebuild? Regards, John From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Balaji Kn

Re: [vpp-dev] deadlock issue in VPP during DHCP packet processing

2017-09-26 Thread Dave Barach (dbarach)
Does this happen w/ master/latest? My guess: yes... Florin and I are working on a patch to fix an obvious issue in this path right now, look for results shortly... HTH... Dave From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Balaji Kn Sent: Tuesday,

[vpp-dev] deadlock issue in VPP during DHCP packet processing

2017-09-26 Thread Balaji Kn
Hello All, I am working on VPP 17.07 and using DHCP proxy functionality. CPU configuration provided as one main thread and one worker thread. cpu { main-core 0 corelist-workers 1 } Deadlock is observed while processing DHCP offer packet in VPP. However issue is not observed if i comment CPU

[vpp-dev] How to get interface stats using C api?

2017-09-26 Thread ????????
Hi, everyone! How to get interface stats using C api? For example, I want to know "GigabitEthernete/0/1" rx packets , what should I do? Thanks___ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev