Re: [vpp-dev] VPP 20.01 build error

2020-02-24 Thread Benoit Ganne (bganne) via Lists.Fd.Io
> When I give command of "make build",
> I got the error (attached tail part of error)
[...]
> echo: I/O error

TL;DR: in your shell, try to run bash (from inside your current shell, so you 
end up with a nested shell) and logout (return back to your original shell), 
then try to compile again.

This kind of errors typically arise when stdout/stderr is set to non-blocking 
I/O, which confuses most shell tools: they get EAGAIN errors they never get 
when set to blocking I/O, which is the default for the shell.
VPP in interactive mode sets stdout/stderr to non-blocking I/O but does not 
restore it at exit. Running bash will restore blocking I/O (bash reinitialize 
I/O settings at init).

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

View/Reply Online (#15507): https://lists.fd.io/g/vpp-dev/message/15507
Mute This Topic: https://lists.fd.io/mt/71499863/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] VAPI improvement?

2020-02-24 Thread Ole Troan
Hi Christian,

> [from another thread]
> 
>> - VAPI seems to require callbacks for results. [...] Having callbacks with 
>> synchronous calls is pretty cumbersome, is there a way around having to use 
>> callbacks with VAPI?
> 
> This is actually makes vapi pretty unappealing (at least for me).
> 
> Could the vapi generator be extended generate calls that use (2?) generic 
> callbacks that stored the reply/replies in a user provided location (e.g., 
> foo_msg_reply_t **result, or foo_msg_details_t **results, the latter being a 
> vec of foo_msg_details_t * for "dump" results)
> 
> So instead of just:
> 
>  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);
> 
> It would provide this too:
> 
>  vapi_error_e
>  vsapi_sw_interface_dump(struct vapi_ctx_s *ctx,
>  vapi_msg_sw_interface_dump *msg,
>  vapi_payload_sw_interface_details **replies);
> 
> ?

Yes, you could generate a blocking API version too.
You need to find a solution to separating out the asynchronous messages (e.g. 
results from want_ calls) from the replies to the synchronous call.
One option is to use two separate connection (that Dave recently added support 
for).

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

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


[vpp-dev] Coverity run FAILED as of 2020-02-24 14:00:55 UTC

2020-02-24 Thread Noreply Jenkins
Coverity run failed today.

Current number of outstanding issues are 1
Newly detected: 0
Eliminated: 1
More details can be found at  
https://scan.coverity.com/projects/fd-io-vpp/view_defects
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15509): https://lists.fd.io/g/vpp-dev/message/15509
Mute This Topic: https://lists.fd.io/mt/71511493/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] Confirm your kausik.majum...@commscope.com email address

2020-02-24 Thread Majumdar, Kausik

Hi,

I have subscribed to VPP dev mailing alias. Confirming my email address.

Thanks,
Kausik

From: FD.io 
Sent: Monday, February 24, 2020 10:19 AM
To: Majumdar, Kausik 
Subject: [vpp-dev] Confirm your kausik.majum...@commscope.com email address

Message received from external source. Exercise caution when opening 
attachments, clicking links, or exchanging information.


Hello,

Thank you for your interest in the 
https://lists.fd.io/g/vpp-dev
 group at FD.io. If you did not request or do not want to join 
vpp-dev@lists.fd.io, please ignore this message.

If you only want to send and receive messages from 
vpp-dev@lists.fd.io, reply to this email to confirm 
your email address and activate your membership.

  *   Messages will be sent to you at 
kausik.majum...@commscope.com
  *   Send messages to vpp-dev@lists.fd.io

If you want to use the resources and read messages on the website, please click 
on the link below to confirm your email address, set up a password, and choose 
other subscription settings:

Confirm 
account

Cheers,
The FD.io Team
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15510): https://lists.fd.io/g/vpp-dev/message/15510
Mute This Topic: https://lists.fd.io/mt/71517278/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] RFC: FD.io Summit (Userspace), September, Bordeaux France

2020-02-24 Thread Honnappa Nagarahalli


> 
> Hi folks,
> 
> A 2020 FD.io event is something that has been discussed a number of times
> recently at the FD.io TSC.
> With the possibility of co-locating such an event with DPDK Userspace, in
> Bordeaux, in September.
> 
> Clearly, we are incredibly eager to make sure that such an event would be a
> success.
> That FD.io users and contributors would attend, and get value out of the
> event.
> (it is a ton of work for those involved - we want people to benefit)
> 
> The likelihood is that this would be the only FD.io event of this kind in 
> 2020.
> 
> So instead of speculating, it is better to ask a direct question to the
> community and ask for honest feedback.
> How does the community feel about such an event at DPDK Userspace:-
> 
> * Do they value co-locating with DPDK Userspace?
> * Are they likely to attend?
IMO, this is valuable and would definitely be helpful to solve problems across 
the aisle
I would attend.

> 
> Thanks,
> 
> Ray K
> FD.io TSC

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

View/Reply Online (#15511): https://lists.fd.io/g/vpp-dev/message/15511
Mute This Topic: https://lists.fd.io/mt/71450821/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] RFC: FD.io Summit (Userspace), September, Bordeaux France

2020-02-24 Thread Luca Muscariello
A few people from the hicn/cicn projects may be able to attend in Bordeaux.

Luca

On Mon, Feb 24, 2020 at 7:48 PM Honnappa Nagarahalli <
honnappa.nagaraha...@arm.com> wrote:

> 
>
> >
> > Hi folks,
> >
> > A 2020 FD.io event is something that has been discussed a number of times
> > recently at the FD.io TSC.
> > With the possibility of co-locating such an event with DPDK Userspace, in
> > Bordeaux, in September.
> >
> > Clearly, we are incredibly eager to make sure that such an event would
> be a
> > success.
> > That FD.io users and contributors would attend, and get value out of the
> > event.
> > (it is a ton of work for those involved - we want people to benefit)
> >
> > The likelihood is that this would be the only FD.io event of this kind
> in 2020.
> >
> > So instead of speculating, it is better to ask a direct question to the
> > community and ask for honest feedback.
> > How does the community feel about such an event at DPDK Userspace:-
> >
> > * Do they value co-locating with DPDK Userspace?
> > * Are they likely to attend?
> IMO, this is valuable and would definitely be helpful to solve problems
> across the aisle
> I would attend.
>
> >
> > Thanks,
> >
> > Ray K
> > FD.io TSC
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


[vpp-dev] vmxnet3 rx-queue error "vmxnet3 failed to activate dev error 1" #vmxnet3 #ipsec

2020-02-24 Thread ravinder . yadav
VPP IPsec responder on ESXI VM RHEL 7.6

Is there a limitation on the number of num-tx-queues and num-rx-queues we can 
associate with vmxnet3? I have 12 worker threads running but when i try to 
associate more than 4 num-rx-queues i get error saying "vmxnet3 failed to 
activate dev error 1" 

vppctl create interface vmxnet3 :13:00.0 rx-queue-size 2048 tx-queue-size 
2048 num-tx-queues 2 num-rx-queues 4 bind

Reference:

https://vpp.flirble.org/master/db/df1/clicmd_src_plugins_vmxnet3.html

create interface vmxnet3  [rx-queue-size ] [tx-queue-size 
] [num-tx-queues ] [num-rx-queues ] [bind] [gso].

Thank you,
Ravin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15513): https://lists.fd.io/g/vpp-dev/message/15513
Mute This Topic: https://lists.fd.io/mt/71527703/21656
Mute #vmxnet3: https://lists.fd.io/mk?hashtag=vmxnet3&subid=1480452
Mute #ipsec: https://lists.fd.io/mk?hashtag=ipsec&subid=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] vmxnet3 rx-queue error "vmxnet3 failed to activate dev error 1" #vmxnet3 #ipsec

2020-02-24 Thread steven luong via Lists.Fd.Io
It works for me although I am on ubuntu 1804 VM. Your statement is unclear to 
me if your problem is strictly related to more than 4 rx-queues or not when you 
say
“but when i try to associate more than 4 num-rx-queues i get error”

Does it work fine when you reduce the number of rx-queues less than 4?

vpp# create interface vmxnet3 :13:00.0 rx-queue-size 2048 tx-queue-size 
2048 num-tx-queues 2 num-rx-queues 4
create interface vmxnet3 :13:00.0 rx-queue-size 2048 tx-queue-size 2048 
num-tx-queues 2 num-rx-queues 4
vpp# sh int
sh int
  Name   IdxState  MTU (L3/IP4/IP6/MPLS) 
Counter  Count
local00 down  0/0/0/0
vmxnet3-0/13/0/0  1 down 9000/0/0/0
vpp# set interface state vmxnet3-0/13/0/0 up
set interface state vmxnet3-0/13/0/0 up
vpp# sh int
sh int
  Name   IdxState  MTU (L3/IP4/IP6/MPLS) 
Counter  Count
local00 down  0/0/0/0
vmxnet3-0/13/0/0  1  up  9000/0/0/0 rx packets  
   2
rx bytes
 120
drops   
   2
ip4 
   2
vpp#

$ $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 18.04.1 LTS
Release:   18.04
Codename:  bionic
$

From:  on behalf of "ravinder.ya...@hughes.com" 

Date: Monday, February 24, 2020 at 8:47 PM
To: "vpp-dev@lists.fd.io" 
Subject: [vpp-dev] vmxnet3 rx-queue error "vmxnet3 failed to activate dev error 
1" #vmxnet3 #ipsec

VPP IPsec responder on ESXI VM RHEL 7.6

Is there a limitation on the number of num-tx-queues and num-rx-queues we can 
associate with vmxnet3? I have 12 worker threads running but when i try to 
associate more than 4 num-rx-queues i get error saying "vmxnet3 failed to 
activate dev error 1" 

vppctl create interface vmxnet3 :13:00.0 rx-queue-size 2048 tx-queue-size 
2048 num-tx-queues 2 num-rx-queues 4 bind

Reference:


https://vpp.flirble.org/master/db/df1/clicmd_src_plugins_vmxnet3.html
create interface vmxnet3  [rx-queue-size ] [tx-queue-size 
] [num-tx-queues ] [num-rx-queues ] [bind] [gso].

Thank you,
Ravin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15514): https://lists.fd.io/g/vpp-dev/message/15514
Mute This Topic: https://lists.fd.io/mt/71527703/21656
Mute #vmxnet3: https://lists.fd.io/mk?hashtag=vmxnet3&subid=1480452
Mute #ipsec: https://lists.fd.io/mk?hashtag=ipsec&subid=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] vmxnet3 rx-queue error "vmxnet3 failed to activate dev error 1" #vmxnet3 #ipsec

2020-02-24 Thread ravinder . yadav
Yes it works fine with num-rx-queues 4 and below.

vpp# sh threads

ID Name Type LWP Sched Policy (Priority) lcore Core Socket State

0 vpp_main 2726 other (0) 1 0 0

1 vpp_wk_0 workers 2730 other (0) 2 0 4

2 vpp_wk_1 workers 2731 other (0) 3 0 6

3 vpp_wk_2 workers 2732 other (0) 4 0 8

4 vpp_wk_3 workers 2733 other (0) 5 0 10

5 vpp_wk_4 workers 2734 other (0) 6 0 12

6 vpp_wk_5 workers 2735 other (0) 7 0 14

7 vpp_wk_6 workers 2736 other (0) 8 0 16

8 vpp_wk_7 workers 2737 other (0) 9 0 18

9 vpp_wk_8 workers 2738 other (0) 10 0 20

10 vpp_wk_9 workers 2739 other (0) 11 0 22

11 vpp_wk_10 workers 2740 other (0) 12 0 24

12 vpp_wk_11 workers 2741 other (0) 13 0 26

13 vpp_wk_12 workers 2742 other (0) 14 0 28

14 vpp_wk_13 workers 2743 other (0) 15 0 30

vpp#

ERROR #1: vCPUs = 16 and Worker Threads = 14

vpp# create interface vmxnet3 :13:00.0 rx-queue-size 2048 tx-queue-size 
2048 num-tx-queues 12 num-rx-queues 4 bind

create interface vmxnet3: number of tx queues must be <= 8 and <= number of 
CPU's assigned to VPP

Works fine when num-tx-queues 8 num-rx-queues 4

ERROR #2:

vpp# create interface vmxnet3 :13:00.0 rx-queue-size 2048 tx-queue-size 
2048 num-tx-queues 8 num-rx-queues 5 bind

create interface vmxnet3: error on activating device rc (1)

Works fine when num-tx-queues 8 num-rx-queues 4

vpp# create interface vmxnet3 :13:00.0 rx-queue-size 2048 tx-queue-size 
2048 num-tx-queues 8 num-rx-queues 4 bind

vpp# sh int rx-placement

Thread 1 (vpp_wk_0):

node vmxnet3-input:

vmxnet3-0/13/0/0 queue 0 (polling)

Thread 2 (vpp_wk_1):

node vmxnet3-input:

vmxnet3-0/13/0/0 queue 1 (polling)

Thread 3 (vpp_wk_2):

node vmxnet3-input:

vmxnet3-0/13/0/0 queue 2 (polling)

Thread 4 (vpp_wk_3):

node vmxnet3-input:

vmxnet3-0/13/0/0 queue 3 (polling)

Thank you,
-Ravin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15515): https://lists.fd.io/g/vpp-dev/message/15515
Mute This Topic: https://lists.fd.io/mt/71527703/21656
Mute #vmxnet3: https://lists.fd.io/mk?hashtag=vmxnet3&subid=1480452
Mute #ipsec: https://lists.fd.io/mk?hashtag=ipsec&subid=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-