Re: [vpp-dev] status of AF_XDP VPP plugin?

2020-04-10 Thread Július Milan
Hi Andreas

I believe you mean this one:
https://gerrit.fd.io/r/#/c/vpp/+/21606/
Unfortunately no, I was moved to other project in work, but considering to 
finish it on my own.

The status is:
It is not yet done to support multiple RX/TX queues and it’s not yet zerocopy 
(between XDP plugin and the rest of VPP).
XDP uses it’s own kernel mmap-ed ring buffers, as far as I found out, to 
achieve zerozopy it would be needed either to mmap whole vlib buffers pool (not 
sure if it is always continuous piece of memory, even when using multiple 
workers and thus possible, is it?)
or to support external buffers (by for example adding pointer to external data 
to vlib buffer, this way the DPDK is doing it)

I am new to VPP, but with a little guidence about especially regarding overall 
architecture, I would gladly complete XDP plugin.

Thanks & Regards
Julius

From: Andreas Schultz [mailto:andreas.schu...@travelping.com]
Sent: Monday, April 6, 2020 8:19 AM
To: Július Milan 
Cc: vpp-dev@lists.fd.io
Subject: status of AF_XDP VPP plugin?

Hi Julius,

I just found your XDP device plugin for VPP [1] and I was wondering what state 
it is in?
Do you still work on it and try to get it merged to VPP?

Regards,
Andreas

1: https://gerrit.fd.io/r/c/vpp/+/25785
--

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

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


[vpp-dev] Issues with counters in statistics segment

2020-04-10 Thread Bin Zhou (bzhou2) via lists.fd.io
Hi,
I observed some issues about statistics segment, your help will be highly 
appreciated:
1). "show statistics segment" return incorrect counters.
2). There is no vlib function to remove counters from statistics segment.

Details of each question:
1). "show statistics segment" return incorrect counters.
My VPP (release 19.08) started with only local interface (down) and pg 
interfaces (didn't enable packet-generator), so there were no packets processed 
at all:
vpp# show interface
  Name   IdxState  MTU (L3/IP4/IP6/MPLS) 
Counter  Count
local00 down  0/0/0/0
pg0   1  up  9000/0/0/0
pg1   2  up  9000/0/0/0

However, when I do "show statistics segment", I saw most counters have non-0 
values, just captured some below:
vpp# show statistics seg
Name
 Type  Value
/buffer-pools/default-numa-0/available 
ScalarPtr   16800
/buffer-pools/default-numa-0/cached
ScalarPtr   0
/buffer-pools/default-numa-0/used  
ScalarPtr   0
/err/af-packet-input/partial packet
ErrIndex  211
/err/ah4-decrypt/AH decryption failed  
ErrIndex 1160
/err/ah4-decrypt/AH pkts received  
ErrIndex 1159
/err/ah4-decrypt/IP fragments drop 
ErrIndex 1163
/err/ah4-decrypt/Integrity check failed
ErrIndex 1161


I issued commands "clear errors", "clear counters" and "clear node counters", 
but "show statistics segment" still same.
I added some code inside python test framework (make test TEST=..) to dump some 
node's error counters and I did get 0 for all.
Is this a bug in "show statistics segment"?

2). There is no vlib function to remove counters from statistics segment.
I need to dynamically add/delete counters in statistics segment. But I don't 
see any vlib function that can remove counters.
Is it easy to add one vlib function? Can you please provide some guide so I can 
write that function by myself?
I also didn't find vlib function to decrement a counter, which seems easy to 
add though.

Thanks a lot,
Bin


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

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


[vpp-dev] R2, inspired by fd.io

2020-04-10 Thread Gopakumar Choorakkot Edakkunni
Sorry for spamming, but thought of posting this -   
https://r2.rs/ - A Rust implementation (obviously a toy version at the
moment) inspired by a lot of good concepts from fd.io !

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

View/Reply Online (#16042): https://lists.fd.io/g/vpp-dev/message/16042
Mute This Topic: https://lists.fd.io/mt/72920084/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] R2, inspired by fd.io

2020-04-10 Thread Andrew Yourtchenko
Thanks for posting it, really interesting!

Between your R2 and https://mr.gy/screen/rush/ 
it’s really nice to see the new implementations in this space...

I played with doing a VPP rust plugin a while ago: 
https://github.com/vpp-dev/vpp-rust-plugin

(It’s amazing how I could go with bindgen before needing to tweak it...:) but 
the result clearly needs some shim on top for any development... 

--a

> On 10 Apr 2020, at 14:43, Gopakumar Choorakkot Edakkunni 
>  wrote:
> 
> 
> Sorry for spamming, but thought of posting this -https://r2.rs/ - A Rust 
> implementation (obviously a toy version at the moment) inspired by a lot of 
> good concepts from fd.io ! 
> 
> Rgds,
> Gopa.
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


[vpp-dev] Checkstyle script not work in ubuntu

2020-04-10 Thread Zhang Yuwei
Hi Guys,
I find checkstyle script doesn’t work normally in ubuntu sometimes 
that I run make fixstyle in ubuntu and submit the code to gerrit but still fail 
in checkstyle step. I need to move to centos to make it work, can anybody check 
this? Thanks a lot.

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

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