Re: [vpp-dev] [csit-dev] how to know data type mapping between *.api.json with PYTHON API ?

2019-05-07 Thread Ole Troan
Hi Yulong,

Good question. That has been on my list of things to document for a while.
Does 
https://gerrit.fd.io/r/#/c/19389/

answer your question?
Please suggest improvements and improve the text as you notice gaps.

Best regards,
Ole


> On 7 May 2019, at 07:49, Pei, Yulong  wrote:
> 
> Hello vpp-dev & csit-dev,
>  
> I  have a question about how to know data type mapping between  *.api.json 
> with PYTHON API ?
>  
> Let me use “./src/vnet/ip/ip.api” as example,  as I know,   vppapigen will 
> autogenerate  “ip.api.json” from “ip.api”
>  
> And then vpp_papi can autogenerate  its python api from “ip.api.json”, is 
> there any way to know data type mapping between  *.api.json with PYTHON API ?
>  
> For example:
>  
> In “./src/vnet/ip/ip.api”,
>  
> define ip6_fib_details
> {
>   u32 context;
>   u32 table_id;
>   u8  table_name[64];
>   u8  address_length;
>   u8  address[16];
>   u32 count;
>   u32 stats_index;
>   vl_api_fib_path_t path[count];
> };
>  
> Then in   “ip.api.json”, I  got,
>  
> [
> "ip6_fib_details",
> [
> "u16",
> "_vl_msg_id"
> ],
> [
> "u32",
> "context"
> ],
> [
> "u32",
> "table_id"
> ],
> [
> "u8",
> "table_name",
> 64
> ],
> [
> "u8",
> "address_length"
> ],
> [
> "u8",
> "address",
> 16
> ],
> [
> "u32",
> "count"
> ],
> [
> "u32",
> "stats_index"
> ],
> [
> "vl_api_fib_path_t",
> "path",
> 0,
> "count"
> ],
> {
> "crc": "0xef11e94d"
> }
> ],
>  
> My question is that which kind of python data type can be used to map below 
> json types ?
> [
> "u8",
> "table_name",
> 64
> ],
>  
> [
> "u8",
> "address",
> 16
> ],
>  
> [
> "vl_api_fib_path_t",
> "path",
> 0,
> "count"
> ],
>  
> Best Regards
> Yulong Pei
>  
>  
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#3484): https://lists.fd.io/g/csit-dev/message/3484
> Mute This Topic: https://lists.fd.io/mt/31529209/675193
> Group Owner: csit-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/csit-dev/unsub  [otr...@employees.org]
> -=-=-=-=-=-=-=-=-=-=-=-

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

View/Reply Online (#12944): https://lists.fd.io/g/vpp-dev/message/12944
Mute This Topic: https://lists.fd.io/mt/31529576/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] false verified + 1 for gerrit jobs

2019-05-07 Thread Vratko Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io
> reduce the number of retries (or possibly completely)

+1 for completely.

Vratko.

-Original Message-
From: vpp-dev@lists.fd.io  On Behalf Of Ed Kern via 
Lists.Fd.Io
Sent: Tuesday, 2019-May-07 00:34
To: Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco) 

Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] false verified + 1 for gerrit jobs

This is a known issue with how the retry mechanic interacts (badly) with gerrit 
occasionally.  This odds of this happening were a bit higher over the last
couple of days specific to centos retries.   This is tied to the JNLP changes
made to csit and how the initial connection is made.   While the change
has improved JNLP issues across the board there are a couple new nits
that ill have to debug.

At this point though I’m not going to touch/debug further until the csit 
jobs/reports are completed.

Im actually hopeful that ill be able to reduce the number of retries (or 
possibly completely) in the long run with the HAProxy bypass in place.

Ed




> On May 6, 2019, at 11:18 AM, Klement Sekera -X (ksekera - PANTHEON 
> TECHNOLOGIES at Cisco)  wrote:
> 
> Hi all,
> 
> I noticed a job getting a +1 even though some of the builds failed ...
> 
> https://gerrit.fd.io/r/#/c/18444/
> 
> please note patch set 9 
> 
> fd.io JJB
> Patch Set 9: Verified-1 Build Failed
> https://jenkins.fd.io/job/vpp-arm-verify-master-ubuntu1804/2459/ :
> FAILURE No problems were identified. If you know why this problem 
> occurred, please add a suitable Cause for it. ( 
> https://jenkins.fd.io/job/vpp-arm-verify-master-ubuntu1804/2459/ )
> Logs:
> https://logs.fd.io/production/vex-yul-rot-jenkins-1/vpp-arm-verify-mas
> ter-ubuntu1804/2459 
> https://jenkins.fd.io/job/vpp-beta-verify-master-ubuntu1804/6891/ :
> FAILURE No problems were identified. If you know why this problem 
> occurred, please add a suitable Cause for it. ( 
> https://jenkins.fd.io/job/vpp-beta-verify-master-ubuntu1804/6891/ )
> Logs:
> https://logs.fd.io/production/vex-yul-rot-jenkins-1/vpp-beta-verify-ma
> ster-ubuntu1804/6891 
> https://jenkins.fd.io/job/vpp-csit-verify-device-master-1n-skx/788/ :
> SUCCESS (skipped) Logs:
> https://logs.fd.io/production/vex-yul-rot-jenkins-1/vpp-csit-verify-de
> vice-master-1n-skx/788 
> https://jenkins.fd.io/job/vpp-make-test-docs-verify-master/13041/ :
> SUCCESS Logs:
> https://logs.fd.io/production/vex-yul-rot-jenkins-1/vpp-make-test-docs
> -verify-master/13041 
> https://jenkins.fd.io/job/vpp-verify-master-ubuntu1604/19027/ :
> SUCCESS Logs:
> https://logs.fd.io/production/vex-yul-rot-jenkins-1/vpp-verify-master-
> ubuntu1604/19027 
> https://jenkins.fd.io/job/vpp-verify-master-clang/6731/ : SUCCESS
> Logs:
> https://logs.fd.io/production/vex-yul-rot-jenkins-1/vpp-verify-master-
> clang/6731 https://jenkins.fd.io/job/vpp-docs-verify-master/15343/ : 
> SUCCESS
> Logs:
> https://logs.fd.io/production/vex-yul-rot-jenkins-1/vpp-docs-verify-ma
> ster/15343 https://jenkins.fd.io/job/vpp-verify-master-centos7/18764/ 
> : NOT_BUILT
> Logs:
> https://logs.fd.io/production/vex-yul-rot-jenkins-1/vpp-verify-master-
> centos7/18764
> 7:11 PM
> fd.io JJB
> Patch Set 9: Verified+1 Build Successful 
> https://jenkins.fd.io/job/vpp-verify-master-centos7/18764/ : SUCCESS
> Logs:
> https://logs.fd.io/production/vex-yul-rot-jenkins-1/vpp-verify-master-
> centos7/18764
> 7:15 PM
> 
> Thanks,
> Klement

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

View/Reply Online (#12945): https://lists.fd.io/g/vpp-dev/message/12945
Mute This Topic: https://lists.fd.io/mt/31522291/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] GARP support in VPP

2019-05-07 Thread Shahid Khan
Ok, thanks.

-Shahid.

On Sat, May 4, 2019 at 7:13 PM John Lo (loj)  wrote:

> Right now, the only condition for VPP to send GARP would be on bonded
> interfaces in active-standby mode when the active link switches from one to
> the other.  GRAP is sent to help the upstream router/switch converge its
> routes faster.   There is no support for VPP to send GARP for other events.
>
>
>
> The function to send out GARP is send_ip4_garp() in src/vnet/thernet/arp.c.
>
>
>
> Regards,
>
> John
>
>
>
> *From:* vpp-dev@lists.fd.io  *On Behalf Of *Shahid
> Khan
> *Sent:* Saturday, May 04, 2019 3:32 AM
> *To:* Shahid Khan 
> *Cc:* vpp-dev@lists.fd.io
> *Subject:* Re: [vpp-dev] GARP support in VPP
>
>
>
> anyone for below query ???
>
>
>
> On Thu, May 2, 2019 at 2:37 PM Shahid Khan via Lists.Fd.Io
>  wrote:
>
> Hi,
>
>
>
> does VPP support sending GARP ?
>
>
>
> -Shahid.
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
>
> View/Reply Online (#12895): https://lists.fd.io/g/vpp-dev/message/12895
> Mute This Topic: https://lists.fd.io/mt/31452881/1713129
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [
> shahidnasimk...@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


[vpp-dev] git commit template

2019-05-07 Thread Ole Troan
Hi,

I just uploaded:

 https://gerrit.fd.io/r/19391 make: git commit template  

The proposal is to use a new git commit template that tags commits with a type.
Which can be one of feature, docs, make etc.

The problem this is trying to solve, is how to programmatically figure out what 
features VPP supports.
By marking a commit, that report can (hopefully) be genereated automatically.

Please review and comment.

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

View/Reply Online (#12947): https://lists.fd.io/g/vpp-dev/message/12947
Mute This Topic: https://lists.fd.io/mt/31529955/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] git commit template

2019-05-07 Thread Damjan Marion via Lists.Fd.Io


> On 7 May 2019, at 10:39, Ole Troan  wrote:
> 
> Hi,
> 
> I just uploaded:
> 
> https://gerrit.fd.io/r/19391 make: git commit template  
> 
> The proposal is to use a new git commit template that tags commits with a 
> type.
> Which can be one of feature, docs, make etc.
> 
> The problem this is trying to solve, is how to programmatically figure out 
> what features VPP supports.
> By marking a commit, that report can (hopefully) be genereated automatically.
> 
> Please review and comment.

I put some comments to this commint, but generally, my preference is that we 
don’t abuse subject line with xmass tree decorations.
Can we do something like:

Subject: : brief description

detailed description if any...

Signed-off-by:  Damjan Marion 
Ticket: JIRA-
Type: x
Fixes: offending-git-commit-id

Also my vote goes for all-lowercase subject line...-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


[vpp-dev] ping not working after applying dnat

2019-05-07 Thread Shahid Khan
Hi ,

after applying dnat on interface ping, to that interface from outside is
not working.

following is my config.


vpp# show interface address
GigabitEthernet0/14/0 (up):
  L2 bridge bd-id 1 idx 2 shg 0
local0 (dn):
loop1 (up):
  L2 bridge bd-id 1 idx 2 shg 0 bvi
  L3 192.168.10.24/24


vpp# show nat44 static mappings
NAT44 static mappings:
 tcp local 192.168.100.253:443 external 192.168.10.24:443 vrf 0
 udp local 192.168.100.253:3799 external 192.168.10.24:3799 vrf 0
 identity mapping udp 192.168.10.24:53053 vrf 0
 tcp local 192.168.100.253:443 external loop1:443 vrf -1
 udp local 192.168.100.253:3799 external loop1:3799 vrf -1
 udp local 0.0.0.0:53053 external loop1:53053 vrf -1


now from remote machine with ip of 192.168.10.2(some linux machine) when i
ping to 192.168.10.24 (VPP)
there is no response and vpp trace shows following.


--- Start of thread 0 vpp_main ---
Packet 1

00:30:35:069531: dpdk-input
  GigabitEthernet0/14/2 rx queue 0
  buffer 0x1d1c: current data 0, length 98, free-list 0, clone-count 0,
totlen-nifb 0, trace 0x0
 ext-hdr-valid
 l4-cksum-computed l4-cksum-correct
  PKT MBUF: port 2, nb_segs 1, pkt_len 98
buf_len 2176, data_len 98, ol_flags 0x180, data_off 128, phys_addr
0x63e74780
packet_type 0x11 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
rss 0x0 fdir.hi 0x0 fdir.lo 0x0
Packet Offload Flags
  PKT_RX_IP_CKSUM_GOOD (0x0080) IP cksum of RX pkt. is valid
  PKT_RX_L4_CKSUM_GOOD (0x0100) L4 cksum of RX pkt. is valid
Packet Types
  RTE_PTYPE_L2_ETHER (0x0001) Ethernet packet
  RTE_PTYPE_L3_IPV4 (0x0010) IPv4 packet without extension headers
  IP4: 8c:ec:4b:48:d4:4a -> 58:c1:7a:9f:21:41
  ICMP: 192.168.10.2 -> 192.168.10.24
tos 0x00, ttl 64, length 84, checksum 0xd146
fragment id 0xd3f7, flags DONT_FRAGMENT
  ICMP echo_request checksum 0xe588
00:30:35:069547: ethernet-input
  frame: flags 0x3, hw-if-index 3, sw-if-index 3
  IP4: 8c:ec:4b:48:d4:4a -> 58:c1:7a:9f:21:41
00:30:35:069553: l2-input
  l2-input: sw_if_index 3 dst 58:c1:7a:9f:21:41 src 8c:ec:4b:48:d4:4a
00:30:35:069556: l2-learn
  l2-learn: sw_if_index 3 dst 58:c1:7a:9f:21:41 src 8c:ec:4b:48:d4:4a
bd_index 2
00:30:35:069559: l2-fwd
  l2-fwd:   sw_if_index 3 dst 58:c1:7a:9f:21:41 src 8c:ec:4b:48:d4:4a
bd_index 2 result [0x70006, 6] static age-not bvi
00:30:35:069562: ip4-input
  ICMP: 192.168.10.2 -> 192.168.10.24
tos 0x00, ttl 64, length 84, checksum 0xd146
fragment id 0xd3f7, flags DONT_FRAGMENT
  ICMP echo_request checksum 0xe588
00:30:35:069566: nat44-out2in
  NAT44_OUT2IN: sw_if_index 6, next index 0, session index -1
00:30:35:069573: error-drop
  nat44-out2in: no translation

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

View/Reply Online (#12949): https://lists.fd.io/g/vpp-dev/message/12949
Mute This Topic: https://lists.fd.io/mt/31530366/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

2019-05-07 Thread Ni, Hongjun
Hi Abeeha,

There is a patch submitted to fix the API change.
https://gerrit.fd.io/r/#/c/16839/
Could you help to give it a try?

Thanks,
Hongjun

From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Abeeha Aqeel
Sent: Monday, May 6, 2019 6:32 PM
To: Ni, Hongjun 
Cc: b...@xflowresearch.com; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] HQoS

Hi Hongjun,

I have tested the HQoS Plugin with iperf3. Below is a simple topology I have 
implemented:
[cid:image001.png@01D5010B.5C565F10]

First, I tested the default profile (profile 0) provided by VPP and assigned it 
to all 4096 pipes (users) which should give approximately 2MB (10G/4096) to 
each user. It worked fine for 5 users i.e. each user was assigned 2MB but for 
an increased number of users it didn’t work the same way. I changed the token 
bucket rate, token bucket size and tc_period parameters in the hqos.c code 
which didn’t give me any concrete results. I have attached results for 10  
clients with different combinations of token bucket size, token bucket rate and 
tc_period.

Any ideas what the problem might be ?

Also, in what proportion should the tb_rate, tb_size , tc_rate and tc_period  
be assigned?


S#

Rate (Bytes per second)

Token Bucket Size (Bytes)

TC Period (ms)

Total no of PPPoE sessions

Expected Result (Cumulative average bandwidth in Mbps)

Actual Result (Cumulative average bandwidth in Mbps)

Comments

Subport

Pipe

Subport

Pipe

Subport

Pipe

1

125000

305175

100

100

10

40

10

24.4

8.1

vpp remains stable

2

125000

305175

100

100

10

60

10

24.4

12.72

vpp remains stable

3

125000

305175

100

100

10

100

10

24.4

11.4

vpp remains stable

4

125000

305175

100

1000

10

40

10

24.4

12.1

vpp remains stable

5

125000

305175

1000

1000

10

40

10

24.4

12.03

vpp remains stable

6

125000

305175

1000

1000

10

100

10

24.4

2.21

vpp crashes after a few seconds

7

125000

305175

100

100

10

60

10

24.4

12.1

vpp remains stable





Regards,

Abeeha Aqeel
Network Design Engineer
Xflow Research Inc.
+923245062309 (GMT+5)
abeeha.aq...@xflowresearch.com
www.xflowresearch.com

[cid:6e5d1814-0a3d-444b-9050-060db1465f05]


From: Ni, Hongjun
Sent: Monday, May 6, 2019 12:52 PM
Subject: RE: [vpp-dev] HQoS

Hi Abeeha,

For downstream bandwidth limiting, we leveraged HQos plugin in OpenBRAS 
solution.
In our previous integration test, it could support 64K subscribers with HQos.

Thanks,
Hongjun

From: vpp-dev@lists.fd.io 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Abeeha Aqeel
Sent: Monday, May 6, 2019 3:28 PM
To: Ni, Hongjun mailto:hongjun...@intel.com>>
Cc: b...@xflowresearch.com; 
vpp-dev@lists.fd.io
Subject: [vpp-dev] HQoS

Hi Hongjun,

I have been trying to implement downstream bandwidth limiting using HQoS plugin 
in vpp. It works fine for a certain number of clients (less than 5) but doesn’t 
assign proper bandwidth for larger number of clients.

Can you please elaborate which method is being used in the OpenBRAS solution 
for band limiting traffic? Are you using the token-bucket algorithm as well?


Regards,

Abeeha Aqeel
Network Design Engineer
Xflow Research Inc.
+923245062309 (GMT+5)
abeeha.aq...@xflowresearch.com
www.xflowresearch.com

[cid:6e5d1814-0a3d-444b-9050-060db1465f05]



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

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


[vpp-dev] VPP Load Balancer with active-standby

2019-05-07 Thread Yusuke Tatsumi
Hi all,

We've already used VPP LB plugin as active-active L3DSR load balancer, and It 
works well in our environment.
In addition to the above, I'm now interested in supporting active-standby load 
balancer for some particular cases, mysql for example which support only single 
active node.
So I plan to enhance LB feature to support active-standby.
In consideration of robustness of feature, adding member-selection-weight 
function is suitable I think.
With this method, VPP will do as follows,
- no weight setting (default): active-active
- weighted setting (ex. 6:4): active-active with 6:4 weighted
- weighted setting (ex. 10:0): active-standby
Do you have any option or much good idea?

Regards,


―
立�� �v介
ヤフ�`株式会社
テクノロジ�`グル�`プ システム�y括本部 クラウドプラットフォ�`ム本部 技�g1部 コンピュ�`ト
TEL: 03-6898-3081
mail: ytats...@yahoo-corp.jp

―
Yusuke Tatsumi
Compute team,
Cloud Platform Division,
System Management Group
Yahoo Japan Corporation
Direct: +81 (3) 6898 3081
mail: ytats...@yahoo-corp.jp

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

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