Re: [vpp-dev] VPP v22.02 not coming up

2022-05-25 Thread Akash S R
Hi Chinmaya,

1) Check whether the interfaces are bound to dpdk. Grep this on code and
find out the reasin for this. Mostly it will be due to this.

2) Leave a line after socket-mem or comment socket-mem and give only dev
 in the next 2 lines and not with space. (just a try)

Regards ,
Akash S R

On Wed, May 25, 2022, 17:30 Chinmaya Aggarwal 
wrote:

> Hi,
>
> As per the suggestions, I modified /etc/vpp/startup.conf file but I am
> still facing the same issues. Below is the modified contents of the file:-
>
> dpdk {
> socket-mem 1024 dev :00:08.0 dev :00:09.0
> }
>
>  plugins {
> ## Adjusting the plugin path depending on where the VPP plugins are
> #   path
> /ws/vpp/build-root/install-vpp-native/vpp/lib/vpp_plugins
> ## Add additional directory to the plugin path
> #   add-path /tmp/vpp_plugins
>
> ## Disable all plugins by default and then selectively enable
> specific plugins
>  plugin default { disable }
>  plugin dpdk_plugin.so { enable }
> # plugin acl_plugin.so { enable }
> plugin linux_cp_plugin.so { enable }
> plugin linux_nl_plugin.so { enable }
> ## Enable all plugins by default and then selectively disable
> specific plugins
> # plugin dpdk_plugin.so { disable }
> # plugin acl_plugin.so { disable }
>  }
>
> linux-cp {
>   default netns dataplane
> }
>
> Same issue is seen:-
>
> vlib_call_all_config_functions: unknown input `dpdk  socket-mem 1024 dev
> :00:08.0 dev :00:09.0 '
>
> vlib_call_all_config_functions: unknown input `linux-cp  default netns
> dataplane interface-auto-create '
>
> Also, I followed below steps for compiling VPP v22.02:-
>
> a) Cloning the repository
>
> git clone -b stable/2202 https://gerrit.fd.io/r/vpp
>
> b) Cherry picking commits (after stable/2202) for linux-cp and linux-nl
> plugin from master branch
>
> git cherry-pick 616447c392311791e630a604a07a2c7e47dbb7d6
> git cherry-pick 307ff11acbe811b7834f58a5bd14dd3038c991cd
> git cherry-pick ffd7a9876e5038ad96af1d5dbbb0283c5fe6ab27
> git cherry-pick 09cdea643aa181d833df15b8c96c3a812320761a
> git cherry-pick 53f8a272a63444b61b700690a2f438fa5066f37b
> git cherry-pick adac308aa8033de28ec9e627af2ed517f37aba6a
> git cherry-pick 87e92c6586747a790ae514effb79b86a3e53958e
> git cherry-pick 3819205bdb5ac0217b54f074d7645efa5356b561
> git cherry-pick aebfc285a89be20f68e5599b8d67dda8f20888a5
> git cherry-pick bc91e86674d446e024a957318d42a3bbd3280bf1
> git cherry-pick f4795a9bd8f488c5d32f9b171aa1d195bb4b8186
> git cherry-pick 2286f937d9a805324a8e46ba5a17198c039ba91a
> git cherry-pick 7e721954d4ea31a26ad44872acc199c91b9595e6
> git cherry-pick 7e647358af812d207004be00eef1d0396ab9f138
> git cherry-pick d373ebef012b1fe94c3df0b92e8c27f90cf782f9
> git cherry-pick 30bb344ab6c82d742d2e5a79f62f8d4868db16f1
> git cherry-pick 7d6f7d0d67face9889e43bdb5f71f352294b918a
> git cherry-pick 1c5b127d2247b68f362b3caac8ff229406fab4d0
> git cherry-pick 851215a04ff53df2eb153133e3f47f514facde3a
> git cherry-pick fbc4ad5fd4a48c49c492912fe75e33a2dbb41dab
> git cherry-pick 6120441f9fbfd275e3993712b92eeb80da652767
> git cherry-pick 3bad8b62d87513c5f4004c3172551c8785c78e65
> git cherry-pick 8abbdf509bbd20c5325c8637f78f502aeeb77af3
>
> c) Enabling MLX5
>
> vim build/external/packages/dpdk.mk
>
> DPDK_MLX5_PMD?= y
> DPDK_MLX5_COMMON_PMD ?= y
>
> git add .
> git commit -m "MLX5 related configuration added"
>
> d) Install dependencies
>
> make wipe-release
> make install-dep
> make install-ext-deps
> dnf install libmnl-devel
>
> e) Build
>
> make build-release
>
> f) Memif compilation and copying.so files
> cd /opt/vpp
> make -C build-root PLATFORM=vpp TAG=vpp libmemif-install
> cp /opt/vpp/build-root/install-vpp-native/libmemif/lib/libmemif.so
> /usr/lib64
> cd /usr/lib/
> mkdir vpp_plugins
> cp
> /opt/vpp/build-root/build-vpp-native/vpp/lib64/vpp_plugins/dpdk_plugin.so
> /usr/lib/vpp_plugins/
> cp
> /opt/vpp/build-root/build-vpp-native/vpp/lib64/vpp_plugins/acl_plugin.so
> /usr/lib/vpp_plugins/
> cp
> /opt/vpp/build-root/build-vpp-native/vpp/lib64/vpp_plugins/hs_apps_plugin.so
> /usr/lib/vpp_plugins/
>
> g) Make rpm packages
> make pkg-rpm
>
> h) RPMS packages are created at path /opt/vpp/build-root/
>
> Are we missing out something here? We have not faced this issue with the
> previous VPP version we were using i.e. v21.06 (compilation steps were
> similar). How can we resolve this issue?
>
> Thanks and Regards,
> Chinmaya Agarwal.
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21457): https://lists.fd.io/g/vpp-dev/message/21457
Mute This Topic: https://lists.fd.io/mt/91312985/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] Tx packet drops (dpdk tx failure) Error seen and no packet flow possible after this

2022-02-24 Thread Akash S R
Hi Girish,

One suggestion is that try to update VPP to the latest stable version ,as
your VPP version looks very old. Secondly ,please attach what kind of
configuration you have done on VPP before firing traffic so that ppl could
analyse.


Thanks,
Akash

On Thu, Feb 24, 2022, 17:28 Girish NL  wrote:

>
> Hello All,
>
> Could somebody kindly point out what can cause "Tx packet drops (dpdk tx
> failure)" errors and packet drops? Was this observed by anybody and any
> solution was adopted in the latest VPP versions? Kindly help as we are
> unable to figure out the reason for such drops.
>
> Thanks in advance.
>
> Regards,
> Girish
>
>
>
> On Wed, Feb 23, 2022 at 7:40 PM Girish NL via lists.fd.io  gmail@lists.fd.io> wrote:
>
>> Hi,
>>
>> We are using VPP for one of our products where we have used below VPP and
>> DPDK versions for achieving packet flow between a router and this
>> product/Network entity.
>>
>> VPP-18.07
>> DPDK 19.11.2
>>
>> The packet flow is all fine for a few days/months and all of sudden we
>> see packets are unable to send out of this network element and below VPP
>> counter is getting incremented(full show error output is attached).
>>
>>  19672 EthernetSwitch2/0/0-tx Tx packet drops (dpdk
>> tx failure)
>>
>> Could you please share some inputs on why this error can come and packet
>> drops in VPP? We also see that the incoming traffic to this network
>> entity is fine. Only outgoing is affected and it recovers only if we reboot
>> the system.
>>
>> We are not testing any large traffic flow, but only nominal traffic of
>> about less than 1Gbps (supported is 10Gbps) is being tested. Please note
>> this issue is seen very rarely and we can't reproduce at ease or we just
>> have to wait for the system to come to this state.
>>
>> Regards,
>> Girish
>>
>>
>>
>>
>>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20901): https://lists.fd.io/g/vpp-dev/message/20901
Mute This Topic: https://lists.fd.io/mt/89341261/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Use of /etc/sysctl.d/80-vpp.conf

2021-12-23 Thread Akash S R
Hello Mates,

May I know what is the use of /etc/sysctl.d/80-vpp.conf ? How to use it or
is that not necessary?

/Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20665): https://lists.fd.io/g/vpp-dev/message/20665
Mute This Topic: https://lists.fd.io/mt/87932746/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] How to check API Flow in VPP

2021-12-13 Thread Akash S R
yes ,there is trace like show trace which shows all the nodes through which
packet traversed. But is there any detail info on the API's flow like the
packet reaches gtpu_encap_inline then ip4_rewrite , something like that.

/Akash

On Mon, Dec 13, 2021, 14:54  wrote:

> Akash,
>
> > I am trying to see API flow from packet rx to packet tx, but I am not
> able to see. Please help on this.
>
> I am not sure I can parse your question.
>
> There is tracing of the binary VPP API calls between data plane and
> control plane, but that's independent of the packet flow.
> There is also tracing of packets from RX to TX, but that's completely
> decoupled from the API.
>
> Best regards,
> Ole
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20629): https://lists.fd.io/g/vpp-dev/message/20629
Mute This Topic: https://lists.fd.io/mt/87692609/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] How to check API Flow in VPP

2021-12-12 Thread Akash S R
Hello,
I am trying to see API flow from packet rx to packet tx, but I am not able
to see. Please help on this.

/Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20627): https://lists.fd.io/g/vpp-dev/message/20627
Mute This Topic: https://lists.fd.io/mt/87692609/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 started via External APK

2021-12-09 Thread Akash S R
Hi All,
I am calling main of vpp using my c code APK. But when I enter vppctl and
try show commands, either it is empty like below :
DBGvpp# show int
DBGvpp# show int
Or it is saying as below if interactive is set in startup.conf and without
nodaemon :
DBGvpp# show int
vlib_cli_output:116: vlib_cli_output called...
vlib_cli_output:116: vlib_cli_output called...
vlib_cli_output:116: vlib_cli_output called...
vlib_cli_output:116: vlib_cli_output called...
vlib_cli_output:116: vlib_cli_output called...

Please help on this . I guess vppctl is not able to connect to the VPP
which is running as a background process.

/Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20616): https://lists.fd.io/g/vpp-dev/message/20616
Mute This Topic: https://lists.fd.io/mt/87631054/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Question on api-trace

2021-12-09 Thread Akash S R
Hello,
I have a query on api-trace. How to add trace to an api before configuring
via vppctl, lets say for eg. I am creating a gtpu tunnel via vppctl, How to
see the complete API Trace, once the command is entered. Is there any
support on VPP for the same, If so please help on How to do that.

/Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20607): https://lists.fd.io/g/vpp-dev/message/20607
Mute This Topic: https://lists.fd.io/mt/87611500/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] About encap-vrf-id in GTPU

2021-12-09 Thread Akash S R
Hello,
Just a quick question on encap-vrf-id parameter during gtpu tunnel add. Why
is this parameter included and what is the use of this ?

/Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20606): https://lists.fd.io/g/vpp-dev/message/20606
Mute This Topic: https://lists.fd.io/mt/87611043/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Identification Field of IP Header is not set by VPP during encapsulation

2021-11-25 Thread Akash S R
Hello,

Identification Field is not set by VPP and there is no parameter for the
same handled in ip4_packet.h as well. Should that be added as per
requirements or is that present elsewhere? Also is there any handle on VPP
to set those values during gtpu encapsulation ?

/Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20543): https://lists.fd.io/g/vpp-dev/message/20543
Mute This Topic: https://lists.fd.io/mt/87314709/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] Information of drop counters on "show interface"

2021-11-25 Thread Akash S R
Hey,

Ultimate aim is to classify drop counters and its reason. I need a VAPI
handler to fetch all these details but I couldn't find any such VAPI to get
these.
Yes "show hard" will get me the interface stats but I need a respective
VAPI to handle using APK and never use vppctl.


/Akash

On Thu, Nov 25, 2021, 18:58 Mohsin Kazmi (sykazmi) 
wrote:

>
>
>
>
> *From: *Akash S R 
> *Date: *Thursday, November 25, 2021 at 12:21 PM
> *To: *"Mohsin Kazmi (sykazmi)" 
> *Cc: *vpp-dev 
> *Subject: *Re: [vpp-dev] Information of drop counters on "show interface"
>
>
>
> Hey,
>
>
>
> “Show errors” will give you information about drops if interface is down.
> I am unable to understand w.r.t. policer. Please provide more context to it.
>
> Another place to look for detailed counters is in “show
> hardware-interfaces” for physical NICs.
>
>
>
> -br
>
> Mohsin
>
>
>
> "show errors" will get me only node level info and I cannot get the reason
> for drops like we will get the reason like policer miss but not interface
> down or anything similar to that.
>
>
>
> /Akash
>
>
>
> On Wed, Nov 24, 2021, 18:26 Mohsin Kazmi (sykazmi) 
> wrote:
>
> Hello,
>
>
>
> Mostly drop errors are reported in per node counters. You can use CLI
> command “show errors”
>
>
>
> -br
>
> Mohsin
>
>
>
> *From: * on behalf of Akash S R <
> akashsr.akas...@gmail.com>
> *Date: *Wednesday, November 24, 2021 at 12:29 PM
> *To: *vpp-dev 
> *Subject: *[vpp-dev] Information of drop counters on "show interface"
>
>
>
> Hello,
>
>
>
> I need to understand if there is any support to classify drop counters
> under "show interface" with the reason for drop, like Interface Down or due
> to Policer Violate, anything like that. I couldn't find such support and
> please help what can be done for the same.
>
>
>
> /Akash
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20541): https://lists.fd.io/g/vpp-dev/message/20541
Mute This Topic: https://lists.fd.io/mt/87279920/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] Information of drop counters on "show interface"

2021-11-25 Thread Akash S R
Hey,

"show errors" will get me only node level info and I cannot get the reason
for drops like we will get the reason like policer miss but not interface
down or anything similar to that.

/Akash

On Wed, Nov 24, 2021, 18:26 Mohsin Kazmi (sykazmi) 
wrote:

> Hello,
>
>
>
> Mostly drop errors are reported in per node counters. You can use CLI
> command “show errors”
>
>
>
> -br
>
> Mohsin
>
>
>
> *From: * on behalf of Akash S R <
> akashsr.akas...@gmail.com>
> *Date: *Wednesday, November 24, 2021 at 12:29 PM
> *To: *vpp-dev 
> *Subject: *[vpp-dev] Information of drop counters on "show interface"
>
>
>
> Hello,
>
>
>
> I need to understand if there is any support to classify drop counters
> under "show interface" with the reason for drop, like Interface Down or due
> to Policer Violate, anything like that. I couldn't find such support and
> please help what can be done for the same.
>
>
>
> /Akash
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20539): https://lists.fd.io/g/vpp-dev/message/20539
Mute This Topic: https://lists.fd.io/mt/87279920/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Information of drop counters on "show interface"

2021-11-24 Thread Akash S R
Hello,

I need to understand if there is any support to classify drop counters
under "show interface" with the reason for drop, like Interface Down or due
to Policer Violate, anything like that. I couldn't find such support and
please help what can be done for the same.

/Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20536): https://lists.fd.io/g/vpp-dev/message/20536
Mute This Topic: https://lists.fd.io/mt/87279920/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Understanding on CIR EIR CB EB of policer

2021-11-11 Thread Akash S R
hello,

I have a query on CIR EIR CB EB values. Can I get some proper info on
these. How to calculate CB/EB values for a rate of traffic say CIR = 100
KBPS, traffic speed = 80 KBPS, so all must fall under confirm bucket right ?
Also CB is only Committed Burst or Committed Burst Size (CBS) as per the
below link ? Please advise.

https://www.sciencedirect.com/topics/computer-science/maximum-burst-size


Thanks,
Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20478): https://lists.fd.io/g/vpp-dev/message/20478
Mute This Topic: https://lists.fd.io/mt/86978343/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] Classify Session Crash after 32K Creations (IMPORTANT)

2021-10-25 Thread Akash S R
DBGvpp# show classify tables index 32352

TableIdx Sessions NextTbl NextNode
32352 0 -1 -1
Heap: base 0x7ffed77e1000, size 4k, locked, unmap-on-destroy, name
'classify'
page stats: page-size 4K, total 1, mapped 1, not-mapped 0
numa 0: 1 pages, 4k bytes
total: 3.95K, used: 960, free: 3.02K, trimmable: 2.94K
nbuckets 2, skip 1 match 2 flag 0 offset 0
mask 
linear-search buckets 0, qfi 0


source-port-start 0, source-port-end 0
dest-port-start 0, dest-port-end 0
DBGvpp# show classify tables index 32356
TableIdx Sessions NextTbl NextNode
32356 0 -1 -1
Heap: base 0x7fffb3ab5000, size 1g, locked, unmap-on-destroy, name 'main
heap'
page stats: page-size 4K, total 262144, mapped 47436, not-mapped 0, unknown
214708
numa 0: 47436 pages, 185.29m bytes
total: 1023.99M, used: 102.90M, free: 921.09M, trimmable: 916.31M
nbuckets 2, skip 1 match 2 flag 0 offset 0
mask 
linear-search buckets 0, qfi 0


source-port-start 0, source-port-end 0
dest-port-start 0, dest-port-end 0
DBGvpp#
The classify table takes memory from main heap after a certain point and
the crash for classify session also happens at the same classify table
index.why is this happening and is there anything to be done to resolve
it.help of any sort is most welcomed

On Mon, Oct 25, 2021 at 4:17 PM Akash S R via lists.fd.io  wrote:

> tried increasing the memory size of the classify table as per the
> suggestion in  https://lists.fd.io/g/vpp-dev/topic/72538712#15861 but
> still facing the crash
>
> On Mon, Oct 25, 2021 at 3:31 PM Akash S R via lists.fd.io
>  wrote:
>
>> Hey Stanislav,
>>
>> We have configured heap-size on .conf as 7GB and it is free.
>> Below are the prints:
>> ram memory:
>> root@5495e5b86e58:/home/Immaculate/Oct12/vpp# free -h
>>   totalusedfree  shared  buff/cache
>>   available
>> Mem:   7.6G2.1G139M 21M5.4G
>>5.2G
>> Swap:  7.8G112M7.6G
>> heap memory:
>> DBGvpp# show memory main-heap
>> Thread 0 vpp_main
>>   base 0x7ffe33ab5000, size 7g, locked, unmap-on-destroy, name 'main heap'
>> page stats: page-size 4K, total 1835008, mapped 97293, not-mapped 3,
>> unknown 1737712
>>   numa 0: 97293 pages, 380.05m bytes
>> total: 6.99G, used: 103.44M, free: 6.89G, trimmable: 6.89G
>>
>> Regards,
>> Akash
>>
>> On Mon, Oct 25, 2021 at 2:26 PM Stanislav Zaikin 
>> wrote:
>>
>>> Hi Akash,
>>>
>>> Looks like you've run out of memory. Did you try to increase heap-size
>>> in the configuration file?
>>>
>>> On Mon, 25 Oct 2021 at 10:36, Akash S R 
>>> wrote:
>>>
>>>> Hi Mates,
>>>>
>>>> A fix if done to resolve the crash for classify table in vnet_classify.c
>>>>
>>>>
>>>>
>>>> *vnet_classify_new_table*
>>>>
>>>>
>>>>
>>>> vec_validate_aligned (t->buckets, nbuckets - 1, CLIB_CACHE_LINE_BYTES);
>>>>
>>>>   //  oldheap = clib_mem_set_heap (t->mheap);
>>>>
>>>>
>>>>
>>>> clib_spinlock_init (>writer_lock);
>>>>
>>>>   oldheap = clib_mem_set_heap (t->mheap);
>>>>
>>>>   clib_mem_set_heap (oldheap);
>>>>
>>>>
>>>>
>>>> after this change more than 50k classify tables was able to create
>>>> without any crash. But now  the crash is observed in creation of classify
>>>> session , not able to create classify sessions for more than 32k table
>>>> index.
>>>>
>>>>
>>>>
>>>> Please share the details like ,how can it be resolved, is there any
>>>> additional configurations is needed .
>>>>
>>>>
>>>>
>>>> Thanks in advance.
>>>>
>>>>
>>>>
>>>> Bt for the crash:
>>>>
>>>> Program received signal SIGSEGV, Segmentation fault.
>>>>
>>>> 0x760747af in clib_mem_alloc_aligned_at_offset (size=16,
>>>> align=8, align_offset=8, os_out_of_memory_on_failure=1)
>>>>
>>>> at /home/Immaculate/Oct12/vpp/src/vppinfra/mem.h:238
>>>>
>>>> 238   p = mspace_get_aligned (h->mspace, size, align, align_offset);
>>>>
>>>> (gdb) bt
>>>>
>>>> #0  0x760747af in clib_mem_alloc_aligned_at_offset (size=16,
>>>> align=

Re: [vpp-dev] Classify Session Crash after 32K Creations (IMPORTANT)

2021-10-25 Thread Akash S R
tried increasing the memory size of the classify table as per the
suggestion in  https://lists.fd.io/g/vpp-dev/topic/72538712#15861 but still
facing the crash

On Mon, Oct 25, 2021 at 3:31 PM Akash S R via lists.fd.io  wrote:

> Hey Stanislav,
>
> We have configured heap-size on .conf as 7GB and it is free.
> Below are the prints:
> ram memory:
> root@5495e5b86e58:/home/Immaculate/Oct12/vpp# free -h
>   totalusedfree  shared  buff/cache
>   available
> Mem:   7.6G2.1G139M 21M5.4G
>5.2G
> Swap:  7.8G112M7.6G
> heap memory:
> DBGvpp# show memory main-heap
> Thread 0 vpp_main
>   base 0x7ffe33ab5000, size 7g, locked, unmap-on-destroy, name 'main heap'
> page stats: page-size 4K, total 1835008, mapped 97293, not-mapped 3,
> unknown 1737712
>   numa 0: 97293 pages, 380.05m bytes
> total: 6.99G, used: 103.44M, free: 6.89G, trimmable: 6.89G
>
> Regards,
> Akash
>
> On Mon, Oct 25, 2021 at 2:26 PM Stanislav Zaikin 
> wrote:
>
>> Hi Akash,
>>
>> Looks like you've run out of memory. Did you try to increase heap-size in
>> the configuration file?
>>
>> On Mon, 25 Oct 2021 at 10:36, Akash S R 
>> wrote:
>>
>>> Hi Mates,
>>>
>>> A fix if done to resolve the crash for classify table in vnet_classify.c
>>>
>>>
>>>
>>> *vnet_classify_new_table*
>>>
>>>
>>>
>>> vec_validate_aligned (t->buckets, nbuckets - 1, CLIB_CACHE_LINE_BYTES);
>>>
>>>   //  oldheap = clib_mem_set_heap (t->mheap);
>>>
>>>
>>>
>>> clib_spinlock_init (>writer_lock);
>>>
>>>   oldheap = clib_mem_set_heap (t->mheap);
>>>
>>>   clib_mem_set_heap (oldheap);
>>>
>>>
>>>
>>> after this change more than 50k classify tables was able to create
>>> without any crash. But now  the crash is observed in creation of classify
>>> session , not able to create classify sessions for more than 32k table
>>> index.
>>>
>>>
>>>
>>> Please share the details like ,how can it be resolved, is there any
>>> additional configurations is needed .
>>>
>>>
>>>
>>> Thanks in advance.
>>>
>>>
>>>
>>> Bt for the crash:
>>>
>>> Program received signal SIGSEGV, Segmentation fault.
>>>
>>> 0x760747af in clib_mem_alloc_aligned_at_offset (size=16,
>>> align=8, align_offset=8, os_out_of_memory_on_failure=1)
>>>
>>> at /home/Immaculate/Oct12/vpp/src/vppinfra/mem.h:238
>>>
>>> 238   p = mspace_get_aligned (h->mspace, size, align, align_offset);
>>>
>>> (gdb) bt
>>>
>>> #0  0x760747af in clib_mem_alloc_aligned_at_offset (size=16,
>>> align=8, align_offset=8, os_out_of_memory_on_failure=1)
>>>
>>> at /home/Immaculate/Oct12/vpp/src/vppinfra/mem.h:238
>>>
>>> #1  0x760749f5 in vec_resize_allocate_memory (v=0x0,
>>> length_increment=1, data_bytes=16, header_bytes=8, data_align=8,
>>> numa_id=255)
>>>
>>> at /home/Immaculate/Oct12/vpp/src/vppinfra/vec.c:67
>>>
>>> #2  0x76bd85c2 in _vec_resize_inline (v=0x0, length_increment=1,
>>> data_bytes=8, header_bytes=0, data_align=8, numa_id=255)
>>>
>>> at /home/Immaculate/Oct12/vpp/src/vppinfra/vec.h:170
>>>
>>> #3  0x76bdaf8a in vnet_classify_entry_alloc (t=0x7ffea4a55540,
>>> log2_pages=0) at
>>> /home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:255
>>>
>>> #4  0x76bdbbc8 in vnet_classify_add_del (t=0x7ffea4a55540,
>>> add_v=0x7ffe2b4f3940, is_add=1)
>>>
>>> at /home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:513
>>>
>>> #5  0x76be44f7 in vnet_classify_add_del_session
>>> (cm=0x77db9460 , table_index=32352,
>>> match=0x7ffe8ee1c2f0 "",
>>>
>>> hit_next_index=2, opaque_index=1, advance=0, action=0 '\000',
>>> metadata=0, is_add=1) at
>>> /home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:2911
>>>
>>> #6  0x76be490b in classify_session_command_fn
>>> (vm=0x7ffe73ab7680, input=0x7ffe2b4f3ef0, cmd=0x7ffe7854f238)
>>>
>>> at /home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:3004
>>>
>>> #7  0x77e7584c in vlib_cli_dispatch_s

Re: [vpp-dev] Classify Session Crash after 32K Creations (IMPORTANT)

2021-10-25 Thread Akash S R
Hey Stanislav,

We have configured heap-size on .conf as 7GB and it is free.
Below are the prints:
ram memory:
root@5495e5b86e58:/home/Immaculate/Oct12/vpp# free -h
  totalusedfree  shared  buff/cache
  available
Mem:   7.6G2.1G139M 21M5.4G
   5.2G
Swap:  7.8G112M7.6G
heap memory:
DBGvpp# show memory main-heap
Thread 0 vpp_main
  base 0x7ffe33ab5000, size 7g, locked, unmap-on-destroy, name 'main heap'
page stats: page-size 4K, total 1835008, mapped 97293, not-mapped 3,
unknown 1737712
  numa 0: 97293 pages, 380.05m bytes
total: 6.99G, used: 103.44M, free: 6.89G, trimmable: 6.89G

Regards,
Akash

On Mon, Oct 25, 2021 at 2:26 PM Stanislav Zaikin  wrote:

> Hi Akash,
>
> Looks like you've run out of memory. Did you try to increase heap-size in
> the configuration file?
>
> On Mon, 25 Oct 2021 at 10:36, Akash S R  wrote:
>
>> Hi Mates,
>>
>> A fix if done to resolve the crash for classify table in vnet_classify.c
>>
>>
>>
>> *vnet_classify_new_table*
>>
>>
>>
>> vec_validate_aligned (t->buckets, nbuckets - 1, CLIB_CACHE_LINE_BYTES);
>>
>>   //  oldheap = clib_mem_set_heap (t->mheap);
>>
>>
>>
>> clib_spinlock_init (>writer_lock);
>>
>>   oldheap = clib_mem_set_heap (t->mheap);
>>
>>   clib_mem_set_heap (oldheap);
>>
>>
>>
>> after this change more than 50k classify tables was able to create
>> without any crash. But now  the crash is observed in creation of classify
>> session , not able to create classify sessions for more than 32k table
>> index.
>>
>>
>>
>> Please share the details like ,how can it be resolved, is there any
>> additional configurations is needed .
>>
>>
>>
>> Thanks in advance.
>>
>>
>>
>> Bt for the crash:
>>
>> Program received signal SIGSEGV, Segmentation fault.
>>
>> 0x760747af in clib_mem_alloc_aligned_at_offset (size=16, align=8,
>> align_offset=8, os_out_of_memory_on_failure=1)
>>
>> at /home/Immaculate/Oct12/vpp/src/vppinfra/mem.h:238
>>
>> 238   p = mspace_get_aligned (h->mspace, size, align, align_offset);
>>
>> (gdb) bt
>>
>> #0  0x760747af in clib_mem_alloc_aligned_at_offset (size=16,
>> align=8, align_offset=8, os_out_of_memory_on_failure=1)
>>
>> at /home/Immaculate/Oct12/vpp/src/vppinfra/mem.h:238
>>
>> #1  0x760749f5 in vec_resize_allocate_memory (v=0x0,
>> length_increment=1, data_bytes=16, header_bytes=8, data_align=8,
>> numa_id=255)
>>
>> at /home/Immaculate/Oct12/vpp/src/vppinfra/vec.c:67
>>
>> #2  0x76bd85c2 in _vec_resize_inline (v=0x0, length_increment=1,
>> data_bytes=8, header_bytes=0, data_align=8, numa_id=255)
>>
>> at /home/Immaculate/Oct12/vpp/src/vppinfra/vec.h:170
>>
>> #3  0x76bdaf8a in vnet_classify_entry_alloc (t=0x7ffea4a55540,
>> log2_pages=0) at
>> /home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:255
>>
>> #4  0x76bdbbc8 in vnet_classify_add_del (t=0x7ffea4a55540,
>> add_v=0x7ffe2b4f3940, is_add=1)
>>
>> at /home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:513
>>
>> #5  0x76be44f7 in vnet_classify_add_del_session
>> (cm=0x77db9460 , table_index=32352,
>> match=0x7ffe8ee1c2f0 "",
>>
>> hit_next_index=2, opaque_index=1, advance=0, action=0 '\000',
>> metadata=0, is_add=1) at
>> /home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:2911
>>
>> #6  0x76be490b in classify_session_command_fn (vm=0x7ffe73ab7680,
>> input=0x7ffe2b4f3ef0, cmd=0x7ffe7854f238)
>>
>> at /home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:3004
>>
>> #7  0x77e7584c in vlib_cli_dispatch_sub_commands
>> (vm=0x7ffe73ab7680, cm=0x77f8fe60 ,
>> input=0x7ffe2b4f3ef0,
>>
>> parent_command_index=1062) at
>> /home/Immaculate/Oct12/vpp/src/vlib/cli.c:591
>>
>> #8  0x77e755d7 in vlib_cli_dispatch_sub_commands
>> (vm=0x7ffe73ab7680, cm=0x77f8fe60 ,
>> input=0x7ffe2b4f3ef0,
>>
>> parent_command_index=0) at
>> /home/Immaculate/Oct12/vpp/src/vlib/cli.c:548
>>
>> #9  0x77e75d77 in vlib_cli_input (vm=0x7ffe73ab7680,
>> input=0x7ffe2b4f3ef0, function=0x77f19fa1 ,
>> function_arg=0)
>>
>> at /home/Immaculate/Oct12/vpp/src/vlib/cli.c:694
>>
>> #10 0x77f212a3 in unix_cli_process_inp

[vpp-dev] Classify Session Crash after 32K Creations (IMPORTANT)

2021-10-25 Thread Akash S R
Hi Mates,

A fix if done to resolve the crash for classify table in vnet_classify.c



*vnet_classify_new_table*



vec_validate_aligned (t->buckets, nbuckets - 1, CLIB_CACHE_LINE_BYTES);

  //  oldheap = clib_mem_set_heap (t->mheap);



clib_spinlock_init (>writer_lock);

  oldheap = clib_mem_set_heap (t->mheap);

  clib_mem_set_heap (oldheap);



after this change more than 50k classify tables was able to create without
any crash. But now  the crash is observed in creation of classify session ,
not able to create classify sessions for more than 32k table index.



Please share the details like ,how can it be resolved, is there any
additional configurations is needed .



Thanks in advance.



Bt for the crash:

Program received signal SIGSEGV, Segmentation fault.

0x760747af in clib_mem_alloc_aligned_at_offset (size=16, align=8,
align_offset=8, os_out_of_memory_on_failure=1)

at /home/Immaculate/Oct12/vpp/src/vppinfra/mem.h:238

238   p = mspace_get_aligned (h->mspace, size, align, align_offset);

(gdb) bt

#0  0x760747af in clib_mem_alloc_aligned_at_offset (size=16,
align=8, align_offset=8, os_out_of_memory_on_failure=1)

at /home/Immaculate/Oct12/vpp/src/vppinfra/mem.h:238

#1  0x760749f5 in vec_resize_allocate_memory (v=0x0,
length_increment=1, data_bytes=16, header_bytes=8, data_align=8,
numa_id=255)

at /home/Immaculate/Oct12/vpp/src/vppinfra/vec.c:67

#2  0x76bd85c2 in _vec_resize_inline (v=0x0, length_increment=1,
data_bytes=8, header_bytes=0, data_align=8, numa_id=255)

at /home/Immaculate/Oct12/vpp/src/vppinfra/vec.h:170

#3  0x76bdaf8a in vnet_classify_entry_alloc (t=0x7ffea4a55540,
log2_pages=0) at
/home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:255

#4  0x76bdbbc8 in vnet_classify_add_del (t=0x7ffea4a55540,
add_v=0x7ffe2b4f3940, is_add=1)

at /home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:513

#5  0x76be44f7 in vnet_classify_add_del_session (cm=0x77db9460
, table_index=32352, match=0x7ffe8ee1c2f0 "",

hit_next_index=2, opaque_index=1, advance=0, action=0 '\000',
metadata=0, is_add=1) at
/home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:2911

#6  0x76be490b in classify_session_command_fn (vm=0x7ffe73ab7680,
input=0x7ffe2b4f3ef0, cmd=0x7ffe7854f238)

at /home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:3004

#7  0x77e7584c in vlib_cli_dispatch_sub_commands
(vm=0x7ffe73ab7680, cm=0x77f8fe60 ,
input=0x7ffe2b4f3ef0,

parent_command_index=1062) at
/home/Immaculate/Oct12/vpp/src/vlib/cli.c:591

#8  0x77e755d7 in vlib_cli_dispatch_sub_commands
(vm=0x7ffe73ab7680, cm=0x77f8fe60 ,
input=0x7ffe2b4f3ef0,

parent_command_index=0) at /home/Immaculate/Oct12/vpp/src/vlib/cli.c:548

#9  0x77e75d77 in vlib_cli_input (vm=0x7ffe73ab7680,
input=0x7ffe2b4f3ef0, function=0x77f19fa1 ,
function_arg=0)

at /home/Immaculate/Oct12/vpp/src/vlib/cli.c:694

#10 0x77f212a3 in unix_cli_process_input (cm=0x77f90280
, cli_file_index=0) at
/home/Immaculate/Oct12/vpp/src/vlib/unix/cli.c:2613

#11 0x77f2203d in unix_cli_process (vm=0x7ffe73ab7680,
rt=0x7ffe74a4eb80, f=0x0) at
/home/Immaculate/Oct12/vpp/src/vlib/unix/cli.c:2731

#12 0x77ebe5f7 in vlib_process_bootstrap (_a=140730715027168) at
/home/Immaculate/Oct12/vpp/src/vlib/main.c:1299

#13 0x75feb638 in clib_calljmp () at
/home/Immaculate/Oct12/vpp/src/vppinfra/longjmp.S:123

#14 0x7ffe6c4736b0 in ?? ()

#15 0x77ebe720 in vlib_process_startup (vm=0x7ffe74a90808,
p=0x7ffe73ab73b8, f=0x75facd1a )

at /home/Immaculate/Oct12/vpp/src/vlib/main.c:1324

#16 0x7ffe74a90808 in ?? ()

#17 0x7ffe6c473730 in ?? ()

#18 0x7ffe74a1e1a0 in ?? ()

#19 0x77f14daa in vec_header_bytes (header_bytes=140730855186832)
at /home/Immaculate/Oct12/vpp/src/vppinfra/vec_bootstrap.h:81

#20 0x75facd1a in mspace_usable_size_with_delta (p=0x7ffe74a1e1a8)
at /home/Immaculate/Oct12/vpp/src/vppinfra/dlmalloc.c:4333

#21 0x77f14c6a in clib_mem_size_nocheck (p=0x7ffe74a1e1a8) at
/home/Immaculate/Oct12/vpp/src/vppinfra/mem.h:217

#22 0x77f14d87 in clib_mem_size (p=0x7ffe74a1e1a8) at
/home/Immaculate/Oct12/vpp/src/vppinfra/mem.h:346

#23 0x77f14f37 in _vec_resize_inline (v=0x0, length_increment=1,
data_bytes=0, header_bytes=0, data_align=4, numa_id=255)

at /home/Immaculate/Oct12/vpp/src/vppinfra/vec.h:157

#24 0x77f17bbb in vlib_process_signal_event_helper
(nm=0x7ffe73ab77f0, n=0x7ffe74a1da30, p=0x7ffe74a4eb80, t=0, n_data_elts=1,
n_data_elt_bytes=8)

at /home/Immaculate/Oct12/vpp/src/vlib/node_funcs.h:903

#25 0x000a in ?? ()

#26 0x7ffe6c473958 in ?? ()

#27 0x7604c1c7 in vec_aligned_header (v=,

header_bytes=,

align=) at
/home/Immaculate/Oct12/vpp/src/vppinfra/vec_bootstrap.h:118

Backtrace stopped: previous frame inner to this frame (corrupt stack?)



Re: [vpp-dev] VPP adding extra payload of 0's to packet in some node

2021-10-19 Thread Akash S R
Hey Mohsin,

This is how the packet trace goes:
00:42:45:147623: dpdk-input
  VirtualFunctionEthernet1/10/0 rx queue 0
  buffer 0x9ad1b: current data 0, length 124, buffer-pool 0, ref-count 1,
totlen-nifb 0, trace handle 0x101
  ext-hdr-valid
  l4-cksum-computed l4-cksum-correct
  PKT MBUF: port 0, nb_segs 1, pkt_len 124
buf_len 2176, data_len 124, ol_flags 0x182, data_off 128, phys_addr
0x26b4740
packet_type 0x211 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
rss 0xc8173f29 fdir.hi 0x0 fdir.lo 0xc8173f29
Packet Offload Flags
  PKT_RX_RSS_HASH (0x0002) RX packet with RSS hash result
  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
  RTE_PTYPE_L4_UDP (0x0200) UDP packet
  IP4: 00:10:94:00:00:03 -> 2e:16:e9:9e:3e:5d
  UDP: 171.23.49.58 -> 192.168.45.200
tos 0x04, ttl 255, length 110, checksum 0xf0b7 dscp unknown ecn NON_ECN
fragment id 0x0001
  UDP:  -> 1025
length 90, checksum 0x
00:42:45:147644: ethernet-input
  frame: flags 0x3, hw-if-index 2, sw-if-index 2
  IP4: 00:10:94:00:00:03 -> 2e:16:e9:9e:3e:5d
00:42:45:147659: ip4-input-no-checksum
  UDP: 171.23.49.58 -> 192.168.45.200
tos 0x04, ttl 255, length 110, checksum 0xf0b7 dscp unknown ecn NON_ECN
fragment id 0x0001
  UDP:  -> 1025
length 90, checksum 0x
00:42:45:147666: ip4-lookup
  fib 0 dpo-idx 6 flow hash: 0x
  UDP: 171.23.49.58 -> 192.168.45.200
tos 0x04, ttl 255, length 110, checksum 0xf0b7 dscp unknown ecn NON_ECN
fragment id 0x0001
  UDP:  -> 1025
length 90, checksum 0x
00:42:45:147676: ip4-rewrite
  tx_sw_if_index 4 dpo-idx 6 : ipv4 via 0.0.0.0 gtpu_tunnel0: mtu:9000
next:5 flags:[] flow hash: 0x
  : 4504006e0001fe11f1b7ab17313ac0a82dc8115c0401005a
  0020: 
00:42:45:147682: gtpu4-encap
  GTPU encap to gtpu_tunnel0 tteid 8892
POLICER_CLASSIFY: sw_if_index 4 next 4 table 0 offset 1280 policer_index 0

00:42:49:659573: ip4-load-balance
  fib 4 dpo-idx 5 flow hash: 0x7f9759da
  UDP: 10.43.67.108 -> 172.16.34.129
tos 0x00, ttl 254, length 154, checksum 0xa02a dscp CS0 ecn NON_ECN
fragment id 0x
  UDP: 55897 -> 2152
length 134, checksum 0x686f
00:42:49:659593: ip4-rewrite
  tx_sw_if_index 3 dpo-idx 5 : ipv4 via 10.43.67.1
VirtualFunctionEthernet1/10/1: mtu:1500 next:3 flags:[]
0242424242420209c0b746100800 flow hash: 0x7f9759da
  : 0242424242420209c0b746100800459afd11a12a0a2b436cac10
  0020: 2281da5908680086686f34ff007622bc0085010009004540
00:42:49:659608: VirtualFunctionEthernet1/10/1-output
  VirtualFunctionEthernet1/10/1
  IP4: 02:09:c0:b7:46:10 -> 02:42:42:42:42:42
  UDP: 10.43.67.108 -> 172.16.34.129
tos 0x00, ttl 253, length 154, checksum 0xa12a dscp CS0 ecn NON_ECN
fragment id 0x
  UDP: 55897 -> 2152
length 134, checksum 0x686f
00:42:49:659618: VirtualFunctionEthernet1/10/1-tx
  VirtualFunctionEthernet1/10/1 tx queue 1
  buffer 0x9ad1b: current data -44, length 168, buffer-pool 0, ref-count 1,
totlen-nifb 0, trace handle 0x101
  ext-hdr-valid
  l4-cksum-computed l4-cksum-correct l2-hdr-offset 0
l3-hdr-offset 14
  PKT MBUF: port 0, nb_segs 1, pkt_len 168
buf_len 2176, data_len 168, ol_flags 0x182, data_off 84, phys_addr
0x26b4740
packet_type 0x211 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
rss 0xc8173f29 fdir.hi 0x0 fdir.lo 0xc8173f29
Packet Offload Flags
  PKT_RX_RSS_HASH (0x0002) RX packet with RSS hash result
  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
  RTE_PTYPE_L4_UDP (0x0200) UDP packet
  IP4: 02:09:c0:b7:46:10 -> 02:42:42:42:42:42
  UDP: 10.43.67.108 -> 172.16.34.129
tos 0x00, ttl 253, length 154, checksum 0xa12a dscp CS0 ecn NON_ECN
fragment id 0x
  UDP: 55897 -> 2152
length 134, checksum 0x686f

Interface details are as follows : (Tried with SRIOV as well as vfio-pci)
Network devices using DPDK-compatible driver

:01:10.0 '82599 Ethernet Controller Virtual Function 10ed' drv=vfio-pci
unused=ixgbevf
:01:10.1 '82599 Ethernet Controller Virtual Function 10ed' drv=vfio-pci
unused=ixgbevf


Thanks,
Akash

On Tue, Oct 19, 2021 at 4:54 PM Mohsin Kazmi (sykazmi) 
wrote:

> Hi Akash,
>
>
>
> Please provide the information about the interface(s) you are using either
> with vpp native driver or with dpdk? And ‘show trace’ will help he

Re: [vpp-dev] VPP adding extra payload of 0's to packet in some node

2021-10-19 Thread Akash S R
Hi Pim,

This is the packet which was encapsulated with GTP Header and sent out of
the Interface.
Frame size received/below is 106. Why did NIC add 0's here ? Frame size
without 0's is 90 > 64 right.
Thats why was suspecting VPP if it add's any extra 0'x based on flags or in
some node.

   00 00 00 01 00 06 a0 36 9f 37 dc ec 00 00 08 00
0010   45 00 00 5a 00 00 00 00 fd 11 b4 a0 42 42 42 32
0020   42 42 42 3c 4e 98 08 68 00 46 00 79 34 ff 00 36
0030   00 00 00 01 00 00 00 85 01 00 05 00 45 00 00 1e
0040   ef 1b 40 00 3f 11 b0 0a 42 42 42 5a 0b 0c 0d 01
0050   11 5d 11 62 00 0a f8 08 48 69
*00 00 00 00 00 60   00 00 00 00 00 00 00 00 00 00*

/Akash

On Tue, Oct 19, 2021 at 2:28 PM Pim van Pelt  wrote:

> Hoi Akash,
>
> You asked a similar question last week. Is it still the case that you're
> describing a packet which is smaller than the 64b frame size described in
> IEEE 802.3?
> See https://en.wikipedia.org/wiki/Ethernet_frame and a rather informative
> context at
> https://www.sciencedirect.com/topics/computer-science/minimum-frame-size
>
> If not, can you show the packet you're intending on sending, how long it
> is, and how long you intend for it to be ?
>
> groet,
> Pim
>
> On Tue, Oct 19, 2021 at 8:31 AM Akash S R 
> wrote:
>
>> Hi Mates,
>>
>> In my case, VPP is adding some 0's as extra payload onto the packet and
>> sending it out to NIC which is nearly 14 - 18 bytes. What is the node which
>> add's this ?
>> Or b0->flags is responsible for such case? Please help
>>
>>
>> /Akash
>>
>> 
>>
>>
>
> --
> Pim van Pelt 
> PBVP1-RIPE - http://www.ipng.nl/
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20344): https://lists.fd.io/g/vpp-dev/message/20344
Mute This Topic: https://lists.fd.io/mt/86434059/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 adding extra payload of 0's to packet in some node

2021-10-19 Thread Akash S R
Hi Mates,

In my case, VPP is adding some 0's as extra payload onto the packet and
sending it out to NIC which is nearly 14 - 18 bytes. What is the node which
add's this ?
Or b0->flags is responsible for such case? Please help


/Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20342): https://lists.fd.io/g/vpp-dev/message/20342
Mute This Topic: https://lists.fd.io/mt/86434059/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] API to use to fetch IP route information from VPP

2021-10-18 Thread Akash S R
Hi Chinmaya,

Check if there is any vapi named with "_details" in the same file. you can
print the values by sending dump as request and details in reply response.

/Akash

On Mon, Oct 18, 2021, 19:50 Chinmaya Aggarwal 
wrote:

> Hi,
>
> We want to get ip route information from VPP using VAPI. We were
> referencing ip.api file, where we see two versions of ip route dump API
> i.e. ip_route_dump and ip_route_v2_dump. So, which one should we use for
> our implementation?
>
>
> Thanks and Regards,
> Chinmaya Agarwal.
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20339): https://lists.fd.io/g/vpp-dev/message/20339
Mute This Topic: https://lists.fd.io/mt/86414820/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] Additional Payload of 18 bytes (0's) added to packet by VPP/Interface

2021-10-14 Thread Akash S R
Ohh great, thanks for letting me know mate.
But is there any way to avoid this by doing any setting on the NIC? :)

On Thu, Oct 14, 2021, 15:34 Mohsin Kazmi (sykazmi) 
wrote:

> Actual packet data (46 bytes) is less than 64 bytes. NIC appends ‘00’ to
> make it 64 bytes packet.
>
>
>
> *From: * on behalf of Akash S R <
> akashsr.akas...@gmail.com>
> *Date: *Thursday, October 14, 2021 at 10:49 AM
> *To: *vpp-dev , Ole Troan ,
> "Benoit Ganne (bganne)" 
> *Subject: *[vpp-dev] Additional Payload of 18 bytes (0's) added to packet
> by VPP/Interface
>
>
>
> Hello Mates,
>
>
>
> Please help me on this issue where VPP/Interface is adding an additional
> payload of 18 bytes with 0's to the packet and sending it out. I raised a
> query early but did not get a response.
>
>
> Payload of Packet Received :
>    02 66 66 66 66 66 02 09 c0 b7 46 10 08 00 45 04
> 0010   00 6e 00 00 00 00 fe 11 f1 b8 ab 17 31 3a c0 a8
> 0020   2d c8 11 5c 04 01 00 5a ff ff *00 00 00 00 00 00*
> 0030   *00 00 00 00 00 00 00 00 00 00 00 00* d8 81 21 e4 //FCS
>
>
>
> Help me in figuring this out and avoid this. Thanks in advance.
>
>
>
> /Akash
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20331): https://lists.fd.io/g/vpp-dev/message/20331
Mute This Topic: https://lists.fd.io/mt/86308521/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Additional Payload of 18 bytes (0's) added to packet by VPP/Interface

2021-10-14 Thread Akash S R
Hello Mates,

Please help me on this issue where VPP/Interface is adding an additional
payload of 18 bytes with 0's to the packet and sending it out. I raised a
query early but did not get a response.

Payload of Packet Received :
   02 66 66 66 66 66 02 09 c0 b7 46 10 08 00 45 04
0010   00 6e 00 00 00 00 fe 11 f1 b8 ab 17 31 3a c0 a8
0020   2d c8 11 5c 04 01 00 5a ff ff *00 00 00 00 00 00*
0030   *00 00 00 00 00 00 00 00 00 00 00 00* d8 81 21 e4 //FCS

Help me in figuring this out and avoid this. Thanks in advance.

/Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20329): https://lists.fd.io/g/vpp-dev/message/20329
Mute This Topic: https://lists.fd.io/mt/86308521/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] Unknown VPP Crash even when Heap and RAM are available

2021-10-14 Thread Akash S R
Thanks for the reply bganne.
Even with the increased memory the observation is still the same and the
memory-size it refers to the size of each classify tables and we wanted it
to be low

On Thu, Oct 14, 2021 at 12:19 PM Benoit Ganne (bganne) 
wrote:

> Classify tables uses their own heaps.
>
> > #3  0x76bdb6ca in vnet_classify_new_table (cm=0x77db9460
> > , mask=0x7fffb9d52360 "", nbuckets=2,
> > memory_size=1024,
> > skip_n_vectors=1, match_n_vectors=2) at
> > /home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:194
>
> You asked for 1024 bytes of memory (which is going to be rounded-up to
> page size so probably 4096 bytes) which is too small.
>
> Best
> ben
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20328): https://lists.fd.io/g/vpp-dev/message/20328
Mute This Topic: https://lists.fd.io/mt/86306327/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Unknown VPP Crash even when Heap and RAM are available

2021-10-13 Thread Akash S R
 Hello Mates,



I’m trying to create 50k classify tables with 6GB heap memory and 8GM
docker RAM  but the vpp crashes after the creation of 32k classify tables.

Even though there are unused memory left in both heap and ram the vpp
crashes due to out-of -memory.

Is there any reason for it, if it can be fine tuned please share the
details of how it can be done.



Thanks in advance.



Back Trace of the crash:

(gdb) bt

#0  0x76bd913f in clib_mem_alloc_aligned_at_offset (size=64,
align=64, align_offset=0, os_out_of_memory_on_failure=1)

at /home/Immaculate/Oct12/vpp/src/vppinfra/mem.h:238

#1  0x76bd91ad in clib_mem_alloc_aligned (size=64, align=64) at
/home/Immaculate/Oct12/vpp/src/vppinfra/mem.h:263

#2  0x76bd954f in clib_spinlock_init (p=0x7fffba6a8c30) at
/home/Immaculate/Oct12/vpp/src/vppinfra/lock.h:67

#3  0x76bdb6ca in vnet_classify_new_table (cm=0x77db9460
, mask=0x7fffb9d52360 "", nbuckets=2, memory_size=1024,

skip_n_vectors=1, match_n_vectors=2) at
/home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:194

#4  0x76bdd862 in vnet_classify_add_del_table (cm=0x77db9460
, mask=0x7fffb9d52360 "", nbuckets=2, memory_size=1024,
skip=1,

match=2, next_table_index=4294967295, qfi=0 '\000', src_port_start=0,
src_port_end=0, dst_port_start=0, dst_port_end=0,
miss_next_index=4294967295,

table_index=0x7fff6a0f09d8, current_data_flag=0 '\000',
current_data_offset=0, is_add=1, del_chain=0)

at /home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:824

#5  0x76be0a6a in classify_table_command_fn (vm=0x7fffb3ab8680,
input=0x7fff6a0f0ef0, cmd=0x7fffb84d5ef0)

at /home/Immaculate/Oct12/vpp/src/vnet/classify/vnet_classify.c:1690

#6  0x77e7584c in vlib_cli_dispatch_sub_commands
(vm=0x7fffb3ab8680, cm=0x77f8fe60 ,
input=0x7fff6a0f0ef0,

parent_command_index=1062) at
/home/Immaculate/Oct12/vpp/src/vlib/cli.c:591

#7  0x77e755d7 in vlib_cli_dispatch_sub_commands
(vm=0x7fffb3ab8680, cm=0x77f8fe60 ,
input=0x7fff6a0f0ef0,

parent_command_index=0) at /home/Immaculate/Oct12/vpp/src/vlib/cli.c:548

#8  0x77e75d77 in vlib_cli_input (vm=0x7fffb3ab8680,
input=0x7fff6a0f0ef0, function=0x77f19fa1 ,
function_arg=0)

at /home/Immaculate/Oct12/vpp/src/vlib/cli.c:694

#9  0x77f212a3 in unix_cli_process_input (cm=0x77f90280
, cli_file_index=0) at
/home/Immaculate/Oct12/vpp/src/vlib/unix/cli.c:2613

#10 0x77f2203d in unix_cli_process (vm=0x7fffb3ab8680,
rt=0x7fffb8348840, f=0x0) at
/home/Immaculate/Oct12/vpp/src/vlib/unix/cli.c:2731

#11 0x77ebe5f7 in vlib_process_bootstrap (_a=140736083740384) at
/home/Immaculate/Oct12/vpp/src/vlib/main.c:1299

#12 0x75fec638 in clib_calljmp () at
/home/Immaculate/Oct12/vpp/src/vppinfra/longjmp.S:123

#13 0x7fffac4746b0 in ?? ()

#14 0x77ebe720 in vlib_process_startup (vm=0x7fffb7e821a8,
p=0x7fffb3ab83b8, f=0x75fadd1a )

at /home/Immaculate/Oct12/vpp/src/vlib/main.c:1324

#15 0x7fffb7e821a8 in ?? ()

#16 0x7fffac474730 in ?? ()

#17 0x7fffb7c0d7b0 in ?? ()

#18 0x77f14daa in vec_header_bytes (header_bytes=140736276256672)
at /home/Immaculate/Oct12/vpp/src/vppinfra/vec_bootstrap.h:81

#19 0x75fadd1a in mspace_usable_size_with_delta (p=0x7fffb7c0d7b8)
at /home/Immaculate/Oct12/vpp/src/vppinfra/dlmalloc.c:4333

#20 0x77f14c6a in clib_mem_size_nocheck (p=0x7fffb7c0d7b8) at
/home/Immaculate/Oct12/vpp/src/vppinfra/mem.h:217

#21 0x77f14d87 in clib_mem_size (p=0x7fffb7c0d7b8) at
/home/Immaculate/Oct12/vpp/src/vppinfra/mem.h:346

#22 0x77f14f37 in _vec_resize_inline (v=0x7fffb7c0d7c0,
length_increment=1, data_bytes=4, header_bytes=0, data_align=4, numa_id=255)

at /home/Immaculate/Oct12/vpp/src/vppinfra/vec.h:157

#23 0x77f17bbb in vlib_process_signal_event_helper
(nm=0x7fffb3ab87f0, n=0x7fffb8348600, p=0x7fffb8348840, t=0, n_data_elts=1,
n_data_elt_bytes=8)

at /home/Immaculate/Oct12/vpp/src/vlib/node_funcs.h:903

#24 0x0012 in ?? ()

#25 0x7fffac474958 in ?? ()

#26 0x7604d1c7 in vec_aligned_header (v=,

header_bytes=,

align=) at
/home/Immaculate/Oct12/vpp/src/vppinfra/vec_bootstrap.h:118

Backtrace stopped: previous frame inner to this frame (corrupt stack?)


Thanks,

Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20325): https://lists.fd.io/g/vpp-dev/message/20325
Mute This Topic: https://lists.fd.io/mt/86306327/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] show dpdk buffers are fully allocated slowly while sending 1G traffic after some minutes

2021-10-12 Thread Akash S R
   0

error-punt   0   0
 28  28   0

error-drop   0   0
   11671167   0

  punt   0  28
 28   0   0

  drop   01167
   1167   0   0

   GigabitEthernetb/0/0-tx   0   0
  8   0   8

   GigabitEthernetb/0/0-output   0   0
  8   8   0

  GigabitEthernet13/0/0-tx   0   0
   56449411   056449411

  GigabitEthernet13/0/0-output   0   0
   5644941156449411   0

dpdk-input   0   0
  0 109-109

  ip4-mfib-forward-rpf   0   0
  4   4   0

   ip4-mfib-forward-lookup   0   0
  4   4   0

 ip6-input   0   0
101 101   0

   ip6-not-enabled   0   0
101 101   0

   ip4-options   0   0
  4   4   0

 ip4-input   0   0
  8   8   0

  ip4-drop   0   0
  8   8   0

 ip4-local   0   0
  4   4   0

ethernet-input   0   0
109 109   0

error-drop   0   0
109 109   0

  drop   0 109
109   0   0

Please help us on this mates. We were using an older version of  VPP and
couldn't get these results ASAP, bganne/ole.


(PS: I would rate 3/10 myself, OLE :-D)

On Mon, Oct 11, 2021 at 12:57 PM Benoit Ganne (bganne) 
wrote:

> VPP uses its own buffer allocator under the hood, you should monitor the
> output of 'show buffers' instead.
> If you still see buffer leaks, you can turn on buffer tracing with 'set
> buffer traces' and share the output of 'show buffer traces'.
>
> Best
> ben
>
> > -Original Message-
> > From: vpp-dev@lists.fd.io  On Behalf Of Akash S R
> > Sent: lundi 11 octobre 2021 08:27
> > To: vpp-dev 
> > Subject: [vpp-dev] show dpdk buffers are fully allocated slowly while
> > sending 1G traffic after some minutes
> >
> > Hello Mates/OLE/Dave,
> >
> > I have an important query on "show dpdk buffers" allocation. I have only
> 1
> > NUMA node on my PC and buffers-per-numa is increased from 16800 (default)
> > to 128000. I am sending 1G Traffic and after some minutes there is "show
> > dpdk buffer" output where free becomes 0 and allocated becomes full. Have
> > seen this increasing slowly with time.
> > Why is there no refresh of buffers and all are allocated slowly ? Please
> > advise. This is a serious issue as this is a performance impact and I
> need
> > to find out the solution so please help.
> >
> > /Akash
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20316): https://lists.fd.io/g/vpp-dev/message/20316
Mute This Topic: https://lists.fd.io/mt/86230891/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] show dpdk buffers are fully allocated slowly while sending 1G traffic after some minutes

2021-10-11 Thread Akash S R
Hello Mates/OLE/Dave,

I have an important query on "show dpdk buffers" allocation. I have only 1
NUMA node on my PC and buffers-per-numa is increased from 16800 (default)
to 128000. I am sending 1G Traffic and after some minutes there is "show
dpdk buffer" output where free becomes 0 and allocated becomes full. Have
seen this increasing slowly with time.
Why is there no refresh of buffers and all are allocated slowly ? Please
advise. This is a serious issue as this is a performance impact and I need
to find out the solution so please help.

/Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20306): https://lists.fd.io/g/vpp-dev/message/20306
Mute This Topic: https://lists.fd.io/mt/86230891/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] GTPU Tunnel dst ip update like update tteid support

2021-10-10 Thread Akash S R
Hey Mates,

I have a requirement in updating the dest IP of the GTPU Tunnel. There is
support on VPP to update the tteid but is there any code patch to update
the dest IP of the GTPU Tunnel?

Please respond if anything known.

/Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20305): https://lists.fd.io/g/vpp-dev/message/20305
Mute This Topic: https://lists.fd.io/mt/86210031/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Attaching Ethernet header data to packet buffer

2021-10-01 Thread Akash S R
Hey mates,

Hope all are doing well.
I have a query regarding Ethernet Header addition. Can we add Ethernet
Header Data (14 bytes) to a packet manually ? Or where can I fetch the
Ethernet Header data from ?

Please attach me some piece of code from VPP from where I can fetch
Ethernet Header
Data.


/Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20267): https://lists.fd.io/g/vpp-dev/message/20267
Mute This Topic: https://lists.fd.io/mt/85998921/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 Socket API how to use from the application #socket-api #vpp #sock-api

2021-09-30 Thread Akash S R
no not like this, Include the path of both in your gcc complilation line
like -L/(vpp lib path) -I/(include path) and lib path like
opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld
hope this helps.

/Akash
On Thu, Sep 30, 2021, 20:54 Venumadhav Josyula  wrote:

> Hi Akash,
>
> Sure I can use help from anywhere.
>
> >I guess you are using centos and I have good experience on this.
> > print LD_LIBRARY_PATH and set the path to the path it says in error.
> Then push all the .so and other library files of VPP into this path and try.
> Can you elaborate more , you mean like this
> [root@8f57181df3a1 /]# find . -name libvlib.so
> ./usr/lib64/libvlib.so
> LD_LIBRARY_PATH=/usr/lib64 gcc vpp_api_client_test3.c -o
> vpp_api_client_test3.o -lvlibmemoryclient -lsvm -lvppinfra -lvlib
> ?
> >Also mention the path of your VPP /include directory and /library path in
> the compilation.
> [root@8f57181df3a1 /]# ls -al usr/include/
> total 1652
> ..
> ..
> ...
>
> -rw-r--r--  1 root root   1962 Apr 28 13:34 values.h
> drwxr-xr-x  2 bin  bin   12288 Sep 13 06:14 vapi
> drwxr-xr-x  2 bin  bin4096 Sep 13 06:14 vat
> drwxr-xr-x  2 bin  bin4096 Sep 13 06:14 vat2
> drwxr-xr-x  2 bin  bin4096 Sep 13 06:14 vcl
> drwxr-xr-x  1 root root   4096 Sep 30 13:29 video
> drwxr-xr-x  6 bin  bin4096 Sep 13 06:14 vlib
> drwxr-xr-x  2 bin  bin4096 Sep 13 06:14 vlibapi
> drwxr-xr-x  2 bin  bin4096 Sep 13 06:14 vlibmemory
> drwxr-xr-x 53 bin  bin4096 Sep 13 06:14 vnet
> drwxr-xr-x  4 bin  bin4096 Sep 13 06:14 vpp
> drwxr-xr-x  3 bin  bin4096 Sep 13 06:14 vpp-api
> drwxr-xr-x 60 bin  bin4096 Sep 13 06:14 vpp_plugins
> drwxr-xr-x  3 bin  bin4096 Sep 30 12:57 vppinfra
> -rw-r--r--  1 root root 22 Apr 28 13:34 wait.h
> -rw-r--r--  1 root root  32119 Apr 28 13:34 wchar.h
> -rw-r--r--  1 root root  11155 Apr 28 13:34 wctype.h
> -rw-r--r--  1 root root   2529 Apr 28 13:34 wordexp.h
> drwxr-xr-x  1 root root   4096 Sep 30 13:29 xen
> -rw-r--r--  1 root root   1704 Apr 28 13:34 xlocale.h
> [root@8f57181df3a1 /]# ls -al usr/include/^C
> [root@8f57181df3a1 /]# cd -
> /root/vpp_c_api_examples
> [root@8f57181df3a1 vpp_c_api_examples]# LD_LIBRARY_PATH=/usr/lib64 gcc
> vpp_api_client_test3.c -o vpp_api_client_test3.o -lvlibmemoryclient -lsvm
> -lvppinfra -lvlib -I/usr/include
> Thanks,
> Regards,
> Venu
>
> On Thu, 30 Sept 2021 at 20:41, Akash S R 
> wrote:
>
>> Hi Venu,
>>
>> can I answer this query? just asking as I have not been asked this :)
>>
>> I guess you are using centos and I have good experience on this.
>> print LD_LIBRARY_PATH and set the path to the path it says in error. Then
>> push all the .so and other library files of VPP into this path and try.
>>
>> Also mention the path of your VPP /include directory and /library path in
>> the compilation.
>>
>>
>> /Akash
>>
>> On Thu, Sep 30, 2021, 19:39 Venumadhav Josyula 
>> wrote:
>>
>>> Hi Akash,
>>>
>>> Thansks, now after devtoolset,
>>>
>>> @Benoit Ganne (bganne)  , @Ole Troan
>>> 
>>> i am getting following error
>>>
>>> [root@8f57181df3a1 vpp_c_api_examples]# gcc vpp_api_client_test3.c -o
>>> vpp_api_client_test3.o -lvlibmemoryclient -lsvm -lvppinfra -lvlib
>>> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
>>> /lib/../lib64/libvlib.so: undefined reference to `classify_get_trace_chain'
>>> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
>>> /lib/../lib64/libvlib.so: undefined reference to
>>> `stat_segment_register_gauge'
>>> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
>>> /lib/../lib64/libvlib.so: undefined reference to `os_exit'
>>> collect2: error: ld returned 1 exit status
>>> [root@8f57181df3a1 vpp_c_api_examples]#
>>>
>>> Let me paste the code again,
>>> #include
>>> #include
>>> #include 
>>> #include 
>>> #include 
>>>
>>> #define vl_typedefs
>>> #define vl_endianfun
>>> #include 
>>> #undef vl_typedefs
>>> #undef vl_endianfun
>>>
>>> int main()
>>> {
>>>char *name = "vpp-test-app";
>>>
>>>clib_mem_init_thread_safe (0, 64ULL << 20);
>>>
>>>if (vl_client_api_map("/vpe-api"))
>>>{
>>> printf("unable to map\n");
>>> goto quit;
>>>}
>>>if (vl_client_connect("vpp-test-app", 0, 32) < 0)
>>>{
&

Re: [vpp-dev] VPP Socket API how to use from the application #socket-api #vpp #sock-api

2021-09-30 Thread Akash S R
Hi Venu,

can I answer this query? just asking as I have not been asked this :)

I guess you are using centos and I have good experience on this.
print LD_LIBRARY_PATH and set the path to the path it says in error. Then
push all the .so and other library files of VPP into this path and try.

Also mention the path of your VPP /include directory and /library path in
the compilation.


/Akash

On Thu, Sep 30, 2021, 19:39 Venumadhav Josyula  wrote:

> Hi Akash,
>
> Thansks, now after devtoolset,
>
> @Benoit Ganne (bganne)  , @Ole Troan
> 
> i am getting following error
>
> [root@8f57181df3a1 vpp_c_api_examples]# gcc vpp_api_client_test3.c -o
> vpp_api_client_test3.o -lvlibmemoryclient -lsvm -lvppinfra -lvlib
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /lib/../lib64/libvlib.so: undefined reference to `classify_get_trace_chain'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /lib/../lib64/libvlib.so: undefined reference to
> `stat_segment_register_gauge'
> /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld:
> /lib/../lib64/libvlib.so: undefined reference to `os_exit'
> collect2: error: ld returned 1 exit status
> [root@8f57181df3a1 vpp_c_api_examples]#
>
> Let me paste the code again,
> #include
> #include
> #include 
> #include 
> #include 
>
> #define vl_typedefs
> #define vl_endianfun
> #include 
> #undef vl_typedefs
> #undef vl_endianfun
>
> int main()
> {
>char *name = "vpp-test-app";
>
>clib_mem_init_thread_safe (0, 64ULL << 20);
>
>if (vl_client_api_map("/vpe-api"))
>{
> printf("unable to map\n");
> goto quit;
>}
>if (vl_client_connect("vpp-test-app", 0, 32) < 0)
>{
> printf("unable to connect \n");
> vl_client_api_unmap();
> goto quit;
>}
>printf("successfully connected... \n");
>  quit:
> return 0;
> }
>
> Is this wrong way, i am trying to use APIs ?
>
> Thanks,
> Regards
> Venu
>
> On Thu, 30 Sept 2021 at 19:00, Akash S R 
> wrote:
>
>> Hey Venu,
>>
>> Try "scl enable devtoolset-9 bash" inside your docker or update your gcc
>> version.
>>
>>
>> /Akash S R
>>
>> On Thu, Sep 30, 2021, 18:54 Venumadhav Josyula 
>> wrote:
>>
>>> Hi Benoit,
>>>
>>> Thanks for quick reply.
>>>
>>> I have docker with following
>>> [root@8f57181df3a1 vpp_c_api_examples]# rpm -qa | grep vpp
>>> vpp-lib-21.06.0-4~g0d9d3a0.x86_64
>>> vpp-api-lua-21.06.0-4~g0d9d3a0.x86_64
>>> vpp-api-python3-21.06.0-4~g0d9d3a0.x86_64
>>> vpp-debuginfo-21.06.0-4~g0d9d3a0.x86_64
>>> vpp-selinux-policy-21.06.0-4~g0d9d3a0.x86_64
>>> vpp-21.06.0-4~g0d9d3a0.x86_64
>>> vpp-plugins-21.06.0-4~g0d9d3a0.x86_64
>>> vpp-devel-21.06.0-4~g0d9d3a0.x86_64
>>>
>>> This will vpp running in it.
>>>
>>> [root@8f57181df3a1 /]# cat /etc/redhat-release
>>> CentOS Linux release 7.3.1611 (Core)
>>> [root@8f57181df3a1 /]#
>>>
>>> > Eg. use devtoolset-9 (gcc-9).
>>>
>>> How do I use it ?
>>>
>>> Thanks,
>>> Regards,
>>> Venu
>>>
>>> On Thu, 30 Sept 2021 at 18:47, Benoit Ganne (bganne) 
>>> wrote:
>>>
>>>> You should upgrade your compiler... GCC-4 is way too old.
>>>> Eg. use devtoolset-9 (gcc-9).
>>>>
>>>> Best
>>>> ben
>>>>
>>>> > -Original Message-
>>>> > From: vpp-dev@lists.fd.io  On Behalf Of
>>>> Venumadhav
>>>> > Josyula
>>>> > Sent: jeudi 30 septembre 2021 14:49
>>>> > To: otr...@employees.org
>>>> > Cc: RaviKiran Veldanda ; vpp-dev >>> > d...@lists.fd.io>
>>>> > Subject: Re: [vpp-dev] VPP Socket API how to use from the application
>>>> > #socket-api #vpp #sock-api
>>>> >
>>>> > Hi Ole / Others,
>>>> >
>>>> >
>>>> >
>>>> > Thanks for your email, i getting following compilation error
>>>> > [root@8f57181df3a1 vpp_c_api_examples]# gcc vpp_api_client_test3.c -o
>>>> > vpp_api_client_test3.o -lvlibmemoryclient -lsvm -lvppinfra -lvlib
>>>> > In file included from /usr/include/vppinfra/error.h:41:0,
>>>> >  from /usr/include/vlibapi/api.h:24,
>>>> >  from vpp_api_client_test3.c:3:
>

Re: [vpp-dev] VPP Socket API how to use from the application #socket-api #vpp #sock-api

2021-09-30 Thread Akash S R
Hey Venu,

Try "scl enable devtoolset-9 bash" inside your docker or update your gcc
version.


/Akash S R

On Thu, Sep 30, 2021, 18:54 Venumadhav Josyula  wrote:

> Hi Benoit,
>
> Thanks for quick reply.
>
> I have docker with following
> [root@8f57181df3a1 vpp_c_api_examples]# rpm -qa | grep vpp
> vpp-lib-21.06.0-4~g0d9d3a0.x86_64
> vpp-api-lua-21.06.0-4~g0d9d3a0.x86_64
> vpp-api-python3-21.06.0-4~g0d9d3a0.x86_64
> vpp-debuginfo-21.06.0-4~g0d9d3a0.x86_64
> vpp-selinux-policy-21.06.0-4~g0d9d3a0.x86_64
> vpp-21.06.0-4~g0d9d3a0.x86_64
> vpp-plugins-21.06.0-4~g0d9d3a0.x86_64
> vpp-devel-21.06.0-4~g0d9d3a0.x86_64
>
> This will vpp running in it.
>
> [root@8f57181df3a1 /]# cat /etc/redhat-release
> CentOS Linux release 7.3.1611 (Core)
> [root@8f57181df3a1 /]#
>
> > Eg. use devtoolset-9 (gcc-9).
>
> How do I use it ?
>
> Thanks,
> Regards,
> Venu
>
> On Thu, 30 Sept 2021 at 18:47, Benoit Ganne (bganne) 
> wrote:
>
>> You should upgrade your compiler... GCC-4 is way too old.
>> Eg. use devtoolset-9 (gcc-9).
>>
>> Best
>> ben
>>
>> > -Original Message-
>> > From: vpp-dev@lists.fd.io  On Behalf Of Venumadhav
>> > Josyula
>> > Sent: jeudi 30 septembre 2021 14:49
>> > To: otr...@employees.org
>> > Cc: RaviKiran Veldanda ; vpp-dev > > d...@lists.fd.io>
>> > Subject: Re: [vpp-dev] VPP Socket API how to use from the application
>> > #socket-api #vpp #sock-api
>> >
>> > Hi Ole / Others,
>> >
>> >
>> >
>> > Thanks for your email, i getting following compilation error
>> > [root@8f57181df3a1 vpp_c_api_examples]# gcc vpp_api_client_test3.c -o
>> > vpp_api_client_test3.o -lvlibmemoryclient -lsvm -lvppinfra -lvlib
>> > In file included from /usr/include/vppinfra/error.h:41:0,
>> >  from /usr/include/vlibapi/api.h:24,
>> >  from vpp_api_client_test3.c:3:
>> > /usr/include/vppinfra/clib.h:43:18: error: missing binary operator
>> before
>> > token "("
>> >  #if __has_include()
>> >   ^
>> > In file included from /usr/include/vppinfra/mem.h:49:0,
>> >  from /usr/include/vppinfra/vec.h:42,
>> >  from /usr/include/vppinfra/error.h:53,
>> >  from /usr/include/vlibapi/api.h:24,
>> >  from vpp_api_client_test3.c:3:
>> > /usr/include/vppinfra/string.h:92:34: error: expected ';', ',' or ')'
>> > before 'dst'
>> >  clib_memcpy_fast (void *restrict dst, const void *restrict src, size_t
>> n)
>> >   ^
>> > [root@8f57181df3a1 vpp_c_api_examples]# vim
>> /usr/include/vppinfra/clib.h
>> > +43
>> > [root@8f57181df3a1 vpp_c_api_examples]# vim
>> /usr/include/vppinfra/clib.h
>> > +43
>> > [root@8f57181df3a1 vpp_c_api_examples]# gcc --version
>> > gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
>> > Copyright (C) 2015 Free Software Foundation, Inc.
>> > This is free software; see the source for copying conditions.  There is
>> NO
>> > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>> > PURPOSE.
>> >
>> > [root@8f57181df3a1 vpp_c_api_examples]#
>> >
>> >
>> > -
>> >
>> > c -code
>> > 
>> >
>> >
>> > #include
>> > #include
>> > #include 
>> > #include 
>> > #include 
>> >
>> > #define vl_typedefs
>> > #define vl_endianfun
>> > #include 
>> > #undef vl_typedefs
>> > #undef vl_endianfun
>> >
>> > int main()
>> > {
>> >char *name = "vpp-test-app";
>> >
>> >clib_mem_init_thread_safe (0, 64ULL << 20);
>> >
>> >if (vl_client_api_map("/vpe-api"))
>> >{
>> > printf("unable to map\n");
>> > goto quit;
>> >}
>> >if (vl_client_connect("vpp-test-app", 0, 32) < 0)
>> >{
>> > printf("unable to connect \n");
>> > vl_client_api_unmap();
>> > goto quit;
>> >}
>> >printf("successfully connected... \n");
>> >  quit:
>> > return 0;
>> > }
>> >
>> >
>> > 
>> >
>> >
>> > Can you please suggest what can i be doing worng ?
>> >
>> >
>> > Thanks,
>> > Regards,
>> > Venu
>> >
>> >
>> > On Thu, 30 Sept 2021 at 13:21, > > <mailto:otr...@employees.org> > wrote:
>> >
>> >
>> >   Hi Venu,
>> >
>> >   > Any examples for VAPI shared to use binary APIs ?
>> >
>> >   Try this for a start:
>> >   https://git.fd.io/vpp/tree/src/vpp-api/vapi/vapi_c_test.c
>> >
>> >   Cheers,
>> >   Ole
>> >
>> >
>>
>>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20244): https://lists.fd.io/g/vpp-dev/message/20244
Mute This Topic: https://lists.fd.io/mt/85796959/21656
Mute #vpp:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp
Mute #socket-api:https://lists.fd.io/g/vpp-dev/mutehashtag/socket-api
Mute #sock-api:https://lists.fd.io/g/vpp-dev/mutehashtag/sock-api
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] rx-miss while sending packets to Interface (IMPORTANT)

2021-09-29 Thread Akash S R
Hi Mathew,

Thank you for your valuable response!
Yes I have only one tunnel with complete 1 GBPS traffic flowing to the
interface. So, My testing is only for one tunnel and not multiple tunnels.
So, How can I bypass this rx-miss or split this work among all the
available worker threads or any other way to solve this problem?
Is there any NIC related points out here for this issue ?

Please let me know if there are any solutions , mates.

Thanks,
Akash

On Wed, Sep 29, 2021 at 8:13 PM Matthew Smith  wrote:

>
> I saw two noteworthy items in your 'vppctl show runtime' output:
>
> 1. All of the packets received/processed appear to be handled by the
> gtpu4-input node. They also all appear to be received/handled by a single
> worker thread.
> 2. Nearly all of the packets are being dropped. I mean the packets that
> were actually received and processed - not the packets that were counted as
> an rx-miss.
>
> Regarding #1 -
>
> I imagine that one thread might be receiving all inbound packets because
> you're sending across a single GTPU tunnel (i.e. a single stream). If this
> is true, AFAIK most NICs will hash all of the packets to the same queue.
> This means you will likely be constrained to handling however many packets
> can be handled by a single thread and increasing the number of workers or
> rx queues won't help. You might be able to utilize multiple workers/queues
> by sending across  multiple tunnels. I know very little about GTPU use
> cases so I don't know whether it's practical for you to use multiple
> tunnels.
>
> Regarding #2 -
>
> Out of 8004674 packets received by dpdk-input, 7977696 packets end up
> being dropped by error-drop. It would probably be useful to look at a
> packet trace and see what node is sending the packets to error-drop. If
> packets are being passed to error-drop by gtpu4-input, maybe they do not
> match any configured tunnel.
>
> -Matt
>
>
> On Tue, Sep 28, 2021 at 9:24 AM Akash S R 
> wrote:
>
>> Hello,
>>
>> I have tried increasing the workers from 2 to 5 and rx/tx queues from
>> 1024 (default) to 2048 ,also decreasing till 256 but of no use.
>> As you told, vector is very high (> 100). Please let us know if there is
>> any other way or reason for the same.
>>
>>
>> Thread 1 vpp_wk_0 (lcore 2)
>> Time 41.3, 10 sec internal node vector rate 79.42 loops/sec 3628.25
>>   vector rates in 1.9388e5, out 6.5319e2, drop 1.9322e5, punt 0.e0
>>  Name State Calls  Vectors
>>  Suspends Clocks   Vectors/Call
>> TenGigabitEthernet4/0/0-output   active  19735
>> 26978   0  2.12e31.37
>> TenGigabitEthernet4/0/0-tx   active  19735
>> 26969   0  1.43e31.37
>> dpdk-input   polling  10241833
>> 8004674   0  2.81e3 .78
>> drop active  92422
>> 7977696   0  1.31e3   86.32
>> error-drop   active  92422
>> 7977696   0  6.82e1   86.32
>> ethernet-input   active  93109
>> 8004674   0  1.84e2   85.97
>> gtpu4-input  active  93106
>> 8004671   0  3.29e2   85.97
>> ip4-drop active  2
>> 2   0  1.33e41.00
>> ip4-inputactive  93106
>> 8004671   0  6.82e2   85.97
>> ip4-input-no-checksumactive  93106
>> 8004673   0  2.37e2   85.97
>> ip4-localactive  93106
>> 8004671   0  2.66e2   85.97
>> ip4-lookup   active 112841
>> 8031651   0  3.55e2   71.18
>> ip4-policer-classify active  93106
>> 8004671   0  1.35e3   85.97
>> ip4-rewrite  active  19735
>> 26978   0  2.43e31.37
>> ip4-udp-lookup   active  93106
>> 8004671   0  3.17e2   85.97
>> ip6-inputactive  1
>> 1   0  1.99e41.00
>> ip6-not-enabled  active  1
>> 1   0  2.59e41.00
>> unix-epoll-inp

Re: [vpp-dev] rx-miss while sending packets to Interface (IMPORTANT)

2021-09-29 Thread Akash S R
Hey Sathish,

Interface type is vfio-pci (10-Gigabit SFI/SFP+ Network Connection 10fb),
with rx queue and tx queue of hardware set to 4096 (MAX)..

Let me know if anything is known. :)

Thanks,
Akash

On Wed, Sep 29, 2021 at 6:09 PM  wrote:

> Hi Akash,
>
> Please let me know what type interface and driver you are using, example
> igb_uio, vfio, SRIOV etc?
> --
> Regards,
> Satish Singh
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20232): https://lists.fd.io/g/vpp-dev/message/20232
Mute This Topic: https://lists.fd.io/mt/85920772/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] rx-miss while sending packets to Interface (IMPORTANT)

2021-09-28 Thread Akash S R
7e30.00

Thanks,
Akash

On Tue, Sep 28, 2021 at 4:09 PM Akash S R via lists.fd.io  wrote:

> Thanks mate, that makes sense. Will check it out and get back .
>
>
> Thanks,
> Akash
>
> On Tue, Sep 28, 2021, 16:00 Benoit Ganne (bganne) 
> wrote:
>
>> Rx-miss means the NIC must drop packets on RX because the rx queue was
>> full, usually because VPP cannot keep up with the incoming packet rate.
>> You can check it with the output of 'show run'. If you see a big average
>> vector size (100 or more) it means VPP is busy.
>> To improve that you must increase the number of VPP workers (and rx
>> queues).
>> Rx-misses can also be caused by traffic spikes. In that case you can
>> increase the rx queues size to absorb the bursts.
>>
>> Best
>> ben
>>
>> > -Original Message-
>> > From: vpp-dev@lists.fd.io  On Behalf Of Akash S R
>> > Sent: mardi 28 septembre 2021 11:43
>> > To: vpp-dev 
>> > Subject: [vpp-dev] rx-miss while sending packets to Interface
>> (IMPORTANT)
>> >
>> > Hello mates,
>> >
>> > Its been a long time, me , raising a query out here to you guys :) (Nah,
>> > Please ignore this junk.)
>> >
>> > I have a question on rx-miss. Whenever we fire packets at some high
>> rate,
>> > say 1GBPS or more, I get rx-miss on the interface with some packet
>> count.
>> > I referred to a link below from the VPP forum:
>> https://lists.fd.io/g/vpp-
>> > dev/topic/78179815#17985
>> >
>> > TenGigabitEthernet4/0/1   3  up  1500/0/0/0 rx
>> > packets   8622948
>> > rx
>> > bytes  1103737344
>> > ip4
>> > 8622948
>> > rx-
>> > miss283721416
>> >
>> > But the buffer is available and allocated is less. I reduced the queues
>> to
>> > 256 and threads to 4.
>> > But still the issue is not resolved.
>> > DBGvpp# show dpdk buffer
>> > name="vpp pool 0"  available =   13984 allocated =2816 total =
>>  16800
>> >
>> >  May I know the reason for this rx-miss and any kinda resolution for
>> this
>> > issue?
>> >
>> > Thanks,
>> > Akash
>>
>>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20219): https://lists.fd.io/g/vpp-dev/message/20219
Mute This Topic: https://lists.fd.io/mt/85920772/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] rx-miss while sending packets to Interface (IMPORTANT)

2021-09-28 Thread Akash S R
Thanks mate, that makes sense. Will check it out and get back .


Thanks,
Akash

On Tue, Sep 28, 2021, 16:00 Benoit Ganne (bganne)  wrote:

> Rx-miss means the NIC must drop packets on RX because the rx queue was
> full, usually because VPP cannot keep up with the incoming packet rate.
> You can check it with the output of 'show run'. If you see a big average
> vector size (100 or more) it means VPP is busy.
> To improve that you must increase the number of VPP workers (and rx
> queues).
> Rx-misses can also be caused by traffic spikes. In that case you can
> increase the rx queues size to absorb the bursts.
>
> Best
> ben
>
> > -Original Message-
> > From: vpp-dev@lists.fd.io  On Behalf Of Akash S R
> > Sent: mardi 28 septembre 2021 11:43
> > To: vpp-dev 
> > Subject: [vpp-dev] rx-miss while sending packets to Interface (IMPORTANT)
> >
> > Hello mates,
> >
> > Its been a long time, me , raising a query out here to you guys :) (Nah,
> > Please ignore this junk.)
> >
> > I have a question on rx-miss. Whenever we fire packets at some high rate,
> > say 1GBPS or more, I get rx-miss on the interface with some packet count.
> > I referred to a link below from the VPP forum:
> https://lists.fd.io/g/vpp-
> > dev/topic/78179815#17985
> >
> > TenGigabitEthernet4/0/1   3  up  1500/0/0/0 rx
> > packets   8622948
> > rx
> > bytes  1103737344
> > ip4
> > 8622948
> > rx-
> > miss283721416
> >
> > But the buffer is available and allocated is less. I reduced the queues
> to
> > 256 and threads to 4.
> > But still the issue is not resolved.
> > DBGvpp# show dpdk buffer
> > name="vpp pool 0"  available =   13984 allocated =2816 total =
>  16800
> >
> >  May I know the reason for this rx-miss and any kinda resolution for this
> > issue?
> >
> > Thanks,
> > Akash
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20217): https://lists.fd.io/g/vpp-dev/message/20217
Mute This Topic: https://lists.fd.io/mt/85920772/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] rx-miss while sending packets to Interface (IMPORTANT)

2021-09-28 Thread Akash S R
Hello mates,

Its been a long time, me , raising a query out here to you guys :) (Nah,
Please ignore this junk.)

I have a question on rx-miss. Whenever we fire packets at some high rate,
say 1GBPS or more, I get rx-miss on the interface with some packet count. I
referred to a link below from the VPP forum:
https://lists.fd.io/g/vpp-dev/topic/78179815#17985




*TenGigabitEthernet4/0/1   3  up  1500/0/0/0 rx
packets   8622948
  rx bytes  1103737344
  ip4
 8622948
rx-miss283721416*
But the buffer is available and allocated is less. I reduced the queues to
256 and threads to 4.
But still the issue is not resolved.

*DBGvpp# show dpdk buffername="vpp pool 0"  available =   13984 allocated =
   2816 **total =   16800*
 May I know the reason for this rx-miss and any kinda resolution for this
issue?

Thanks,
Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20214): https://lists.fd.io/g/vpp-dev/message/20214
Mute This Topic: https://lists.fd.io/mt/85920772/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] Getting logs without using vppctl

2021-08-23 Thread Akash S R
Thanks Feng. I have tried already with *vapi_enum_if_status_flags* but I
was getting return value as 0 always.
Below is the payload. Which param will indicate the same ?
typedef struct __attribute__ ((__packed__)) {
  vapi_type_interface_index sw_if_index;
  u32 sup_sw_if_index;
  vapi_type_mac_address l2_address;
  vapi_enum_if_status_flags flags;
  vapi_enum_if_type type;
  vapi_enum_link_duplex link_duplex;
  u32 link_speed;
  u16 link_mtu;
  u32 mtu[4];
  u32 sub_id;
  u8 sub_number_of_tags;
  u16 sub_outer_vlan_id;
  u16 sub_inner_vlan_id;
  vapi_enum_sub_if_flags sub_if_flags;
  u32 vtr_op;
  u32 vtr_push_dot1q;
  u32 vtr_tag1;
  u32 vtr_tag2;
  u16 outer_tag;
  vapi_type_mac_address b_dmac;
  vapi_type_mac_address b_smac;
  u16 b_vlanid;
  u32 i_sid;
  u8 interface_name[64];
  u8 interface_dev_type[64];
  u8 tag[64];
} vapi_payload_sw_interface_details;

Regards,
Akash

On Mon, Aug 23, 2021 at 1:41 PM Feng Gao  wrote:

> You could dump the interface and get the up/down status from
> vl_api_sw_interface_details_t
>
> On Mon, Aug 23, 2021 at 2:25 PM Akash S R 
> wrote:
> >
> > Hey guys,
> >
> > please let me know if there is any VAPI to fetch the interface state
> UP/DOWN.
> >
> > Thanks,
> > Akash
> >
> > On Wed, Aug 18, 2021, 13:11 Akash S R  wrote:
> >>
> >> Hello mates
> >>
> >> I have a question on show commands of vpp like show logging ,show trace
> and show interface. There is a requirement where I need to push all the
> output of these commands without using vppctl.
> >>
> >>  I had a look on stats.md corresponding to the show statistics segment
> command but it doesn't have the logs of the above show commands. What
> should I do? Is there any way to retrieve those logs of show commands
> without using vppctl ?
> >>
> >> Any help would be appreciated, thanks in advance!
> >>
> >>
> >> Regards,
> >> Akash
> >
> >
> > 
> >
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20010): https://lists.fd.io/g/vpp-dev/message/20010
Mute This Topic: https://lists.fd.io/mt/84967574/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] Getting logs without using vppctl

2021-08-23 Thread Akash S R
Hey guys,

please let me know if there is any VAPI to fetch the interface state
UP/DOWN.

Thanks,
Akash

On Wed, Aug 18, 2021, 13:11 Akash S R  wrote:

> Hello mates
>
> I have a question on show commands of vpp like show logging ,show trace
> and show interface. There is a requirement where I need to push all the
> output of these commands without using vppctl.
>
>  I had a look on stats.md corresponding to the show statistics segment
> command but it doesn't have the logs of the above show commands. What
> should I do? Is there any way to retrieve those logs of show commands
> without using vppctl ?
>
> Any help would be appreciated, thanks in advance!
>
>
> Regards,
> Akash
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20008): https://lists.fd.io/g/vpp-dev/message/20008
Mute This Topic: https://lists.fd.io/mt/84967574/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Getting logs without using vppctl

2021-08-18 Thread Akash S R
Hello mates

I have a question on show commands of vpp like show logging ,show trace and
show interface. There is a requirement where I need to push all the output
of these commands without using vppctl.

 I had a look on stats.md corresponding to the show statistics segment
command but it doesn't have the logs of the above show commands. What
should I do? Is there any way to retrieve those logs of show commands
without using vppctl ?

Any help would be appreciated, thanks in advance!


Regards,
Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19981): https://lists.fd.io/g/vpp-dev/message/19981
Mute This Topic: https://lists.fd.io/mt/84967574/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] question on gtpu_input graph node

2021-07-16 Thread Akash S R
Hi Venu,

If you need to switch teid with tried/tteid you may do it on code and
ensure that decapsulation is not happening and you directly fire the packet
out/enqueue .

Regards,
Akash

On Fri, Jul 16, 2021, 9:52 PM Venumadhav Josyula  wrote:

> Hi Akash,
>
> You are more or less right, but there is an exception, we want to replace
> tried, the src ip, dst ip and then forward it.
>
>1.  receive GTP-U packet from DU
>
>
>1. Replace the tied with tried and put the proper source and
>destination ip and send to UPF. The dest ip is ip of UPF and source ip the
>ip of our node interface.
>
>
> Thanks,
> Regards,
> Venu
>
> On Fri, 16 Jul 2021 at 20:52, Akash S R  wrote:
>
>> Hi Venu,
>>
>> From your points, I understand that your GTPU packet must not be
>> decapsulated and fired out to Phys once the packet reaches VPP. If your
>> requirement is on Forwarding the packet via tunnel then include some code
>> in gtpu_input so that the packet is not decapsulated and the forwarding
>> also happens as you need. Search for the keyword "enqueue" inside the
>> gtpu_input which puts the packet to queue for egress of the same. Reach
>> that call without decapsulated .Mostly a goto variable would do the job
>> with some if checks.
>>
>> Hope this helps.
>>
>> Thanks and Regards,
>> Akash
>>
>> On Fri, Jul 16, 2021, 8:34 PM Venumadhav Josyula 
>> wrote:
>>
>>> Hi Akash,
>>>
>>> >From your requirement , keeping vpp support in mind, you shall send the
>>> complete GTPU
>>> >packet from your device which you use to fire packets. The packet shall
>>> be marked with the >exact destination so that it reaches the GTPU Tunnel
>>> created via Phys and the >Decapsulated packet shall egress out via Phys on
>>> which it was received. But I have no idea >how encap comes into picture in
>>> this . Anyways, if you need to mark the packet with the >correct teid,
>>> tteid and make the packet as type GTPU then you shall fire an IP packet to
>>> the >Tunnel so that it is encapsulated and fired out of interface.
>>>
>>> Ok let me explain, we are recieve GTPU packets from DU and want to send
>>> gtp packet to the UPF. Now for that our node receives GTP-U packet and send
>>> the GTP-U using tried. The dst ip passed as part of CLI will be going the
>>> dest ip.
>>>
>>> So once the packet enter gtpu_input ( i am talking existing GTPU Plugin
>>> code ), it uses the configured tied to match tied in the received packet.
>>> Now does it not strip GTP-U header. ?? This is my understanding. please
>>> correct me if i am wrong/
>>>
>>> If strips the GTP-U header we need to put back GTP-U which happens in
>>> the gtpu4-encap ? and send it out on interface.
>>>
>>> Or my understanding is totally misplaced ??? then what is the purpose
>>> gtpu4-encap ?
>>>
>>> Thanks,
>>> Regards,
>>> Venu
>>>
>>>
>>>
>>> On Fri, 16 Jul 2021 at 20:11, Akash S R 
>>> wrote:
>>>
>>>> Hi Venu,
>>>>
>>>> From your requirement , keeping vpp support in mind, you shall send the
>>>> complete GTPU packet from your device which you use to fire packets. The
>>>> packet shall be marked with the exact destination so that it reaches the
>>>> GTPU Tunnel created via Phys and the Decapsulated packet shall egress out
>>>> via Phys on which it was received. But I have no idea how encap comes into
>>>> picture in this . Anyways, if you need to mark the packet with the correct
>>>> teid, tteid and make the packet as type GTPU then you shall fire an IP
>>>> packet to the Tunnel so that it is encapsulated and fired out of interface.
>>>>
>>>> Hope this helps.
>>>>
>>>> Regards,
>>>> Akash
>>>>
>>>> On Fri, Jul 16, 2021, 7:46 PM Venumadhav Josyula 
>>>> wrote:
>>>>
>>>>> Hi Akash,
>>>>>
>>>>> Our requirement is simple we will get gtpu packet and send gtpu packet
>>>>> by properly replacing with proper tied and ip
>>>>>
>>>>> Thanks
>>>>> Regards
>>>>> Venu
>>>>>
>>>>> On Fri, 16 Jul, 2021, 7:25 pm Akash S R, 
>>>>> wrote:
>>>>>
>>>>>> Hi Venu,
>>>>>>
>>>>>> decap-next supports only 

Re: [vpp-dev] question on gtpu_input graph node

2021-07-16 Thread Akash S R
Hi Venu,

>From your points, I understand that your GTPU packet must not be
decapsulated and fired out to Phys once the packet reaches VPP. If your
requirement is on Forwarding the packet via tunnel then include some code
in gtpu_input so that the packet is not decapsulated and the forwarding
also happens as you need. Search for the keyword "enqueue" inside the
gtpu_input which puts the packet to queue for egress of the same. Reach
that call without decapsulated .Mostly a goto variable would do the job
with some if checks.

Hope this helps.

Thanks and Regards,
Akash

On Fri, Jul 16, 2021, 8:34 PM Venumadhav Josyula  wrote:

> Hi Akash,
>
> >From your requirement , keeping vpp support in mind, you shall send the
> complete GTPU
> >packet from your device which you use to fire packets. The packet shall
> be marked with the >exact destination so that it reaches the GTPU Tunnel
> created via Phys and the >Decapsulated packet shall egress out via Phys on
> which it was received. But I have no idea >how encap comes into picture in
> this . Anyways, if you need to mark the packet with the >correct teid,
> tteid and make the packet as type GTPU then you shall fire an IP packet to
> the >Tunnel so that it is encapsulated and fired out of interface.
>
> Ok let me explain, we are recieve GTPU packets from DU and want to send
> gtp packet to the UPF. Now for that our node receives GTP-U packet and send
> the GTP-U using tried. The dst ip passed as part of CLI will be going the
> dest ip.
>
> So once the packet enter gtpu_input ( i am talking existing GTPU Plugin
> code ), it uses the configured tied to match tied in the received packet.
> Now does it not strip GTP-U header. ?? This is my understanding. please
> correct me if i am wrong/
>
> If strips the GTP-U header we need to put back GTP-U which happens in the
> gtpu4-encap ? and send it out on interface.
>
> Or my understanding is totally misplaced ??? then what is the purpose
> gtpu4-encap ?
>
> Thanks,
> Regards,
> Venu
>
>
>
> On Fri, 16 Jul 2021 at 20:11, Akash S R  wrote:
>
>> Hi Venu,
>>
>> From your requirement , keeping vpp support in mind, you shall send the
>> complete GTPU packet from your device which you use to fire packets. The
>> packet shall be marked with the exact destination so that it reaches the
>> GTPU Tunnel created via Phys and the Decapsulated packet shall egress out
>> via Phys on which it was received. But I have no idea how encap comes into
>> picture in this . Anyways, if you need to mark the packet with the correct
>> teid, tteid and make the packet as type GTPU then you shall fire an IP
>> packet to the Tunnel so that it is encapsulated and fired out of interface.
>>
>> Hope this helps.
>>
>> Regards,
>> Akash
>>
>> On Fri, Jul 16, 2021, 7:46 PM Venumadhav Josyula 
>> wrote:
>>
>>> Hi Akash,
>>>
>>> Our requirement is simple we will get gtpu packet and send gtpu packet
>>> by properly replacing with proper tied and ip
>>>
>>> Thanks
>>> Regards
>>> Venu
>>>
>>> On Fri, 16 Jul, 2021, 7:25 pm Akash S R, 
>>> wrote:
>>>
>>>> Hi Venu,
>>>>
>>>> decap-next supports only 3 parameters I guess .So, If you need an
>>>> support like reaching gtpu4_encap-node, you might need to have a look on
>>>> the gtpu_input API where the next0 fields can be set internally with some
>>>> checks and enqueue the packet to gtpu4-encap.
>>>>
>>>> Also, Please add your requirement view so that I may help you out on it.
>>>>
>>>> Regards,
>>>> Akash
>>>>
>>>> On Fri, Jul 16, 2021, 2:42 PM Venumadhav Josyula 
>>>> wrote:
>>>>
>>>>> Hi Akash,
>>>>>
>>>>> While creating tunnels there if I set decap-next gtpu4-encap will it
>>>>> not work, it use the tried for the same right ?
>>>>> create gtpu tunnel src 10.21.58.142 dst 10.21.58.140 teid 13 tteid 14
>>>>> encap-vrf-id 0 decap-next ip4 // instead of ip4, gtpu4-encap
>>>>>
>>>>> Thanks,
>>>>> Regards,
>>>>> Venu
>>>>>
>>>>>
>>>>> On Fri, 16 Jul 2021 at 14:22, Akash S R 
>>>>> wrote:
>>>>>
>>>>>> Hi Venumadhav,
>>>>>>
>>>>>> Sharing my knowledge nuggets as below:
>>>>>> * gtpu_input is an API which processes the gtpu packet for
>>>>>> decapsulation and fire out the pac

Re: [vpp-dev] question on gtpu_input graph node

2021-07-16 Thread Akash S R
Hi Venu,

>From your requirement , keeping vpp support in mind, you shall send the
complete GTPU packet from your device which you use to fire packets. The
packet shall be marked with the exact destination so that it reaches the
GTPU Tunnel created via Phys and the Decapsulated packet shall egress out
via Phys on which it was received. But I have no idea how encap comes into
picture in this . Anyways, if you need to mark the packet with the correct
teid, tteid and make the packet as type GTPU then you shall fire an IP
packet to the Tunnel so that it is encapsulated and fired out of interface.

Hope this helps.

Regards,
Akash

On Fri, Jul 16, 2021, 7:46 PM Venumadhav Josyula  wrote:

> Hi Akash,
>
> Our requirement is simple we will get gtpu packet and send gtpu packet by
> properly replacing with proper tied and ip
>
> Thanks
> Regards
> Venu
>
> On Fri, 16 Jul, 2021, 7:25 pm Akash S R, 
> wrote:
>
>> Hi Venu,
>>
>> decap-next supports only 3 parameters I guess .So, If you need an support
>> like reaching gtpu4_encap-node, you might need to have a look on the
>> gtpu_input API where the next0 fields can be set internally with some
>> checks and enqueue the packet to gtpu4-encap.
>>
>> Also, Please add your requirement view so that I may help you out on it.
>>
>> Regards,
>> Akash
>>
>> On Fri, Jul 16, 2021, 2:42 PM Venumadhav Josyula 
>> wrote:
>>
>>> Hi Akash,
>>>
>>> While creating tunnels there if I set decap-next gtpu4-encap will it not
>>> work, it use the tried for the same right ?
>>> create gtpu tunnel src 10.21.58.142 dst 10.21.58.140 teid 13 tteid 14
>>> encap-vrf-id 0 decap-next ip4 // instead of ip4, gtpu4-encap
>>>
>>> Thanks,
>>> Regards,
>>> Venu
>>>
>>>
>>> On Fri, 16 Jul 2021 at 14:22, Akash S R 
>>> wrote:
>>>
>>>> Hi Venumadhav,
>>>>
>>>> Sharing my knowledge nuggets as below:
>>>> * gtpu_input is an API which processes the gtpu packet for
>>>> decapsulation and fire out the packet as an IP packet. You cannot reach
>>>> gtpu_encap_inline with the same. But if you wish to send the Decapsulated
>>>> IP packet to encap, you can using the next0 variable which enqueues your
>>>> packet to the next node you wish to reach.
>>>>
>>>> I don't guarantee that your packet will be encapsulated without any
>>>> error but you can reach the next node you wish to reach in this way.
>>>>
>>>> Thanks and Regards,
>>>> Akash S R
>>>>
>>>> On Fri, Jul 16, 2021, 2:03 PM Venumadhav Josyula 
>>>> wrote:
>>>>
>>>>> Hi vpp gtpu experts,
>>>>>
>>>>> We have requirement where
>>>>>
>>>>>- we create gtpu tunnel
>>>>>- Now, we will hit gtpu input, where we will receive gtpu packet
>>>>>and when we send it out on the interface replace the tied with tried 
>>>>> and
>>>>>massage the ip address of src and destination and send the packet out
>>>>>
>>>>> vpp# show vlib graph gtpu4-input
>>>>>Name  NextPrevious
>>>>> gtpu4-input error-drop [0]
>>>>>  ip4-gtpu-bypass
>>>>>  l2-input [1]
>>>>> ip4-udp-lookup
>>>>>  ip4-input [2]
>>>>>  ip6-input [3]
>>>>> vpp#
>>>>>
>>>>> vpp# show vlib graph gtpu4-encap
>>>>>Name  NextPrevious
>>>>> gtpu4-encap error-drop [0]  ip4-dvr-dpo
>>>>> ip4-lookup [1]ip4-arp
>>>>> ip6-lookup [2] ip4-midchain
>>>>>  ip4-load-balance [3]
>>>>> ip4-mcast-midchain
>>>>>
>>>>>  ip4-rewrite-mcast
>>>>>
>>>>>  ip4-rewrite-bcast
>>>>> ip4-rewrite
>>>>>
>>>>>  interface-output
>>>>>
>>>>>   vpp# show vlib graph gtpu4-input
>>>>>Name  NextPrevious
>>>>> gtpu4-input error-drop [0]
>>>>>  ip4-gtpu-bypass
>>>>>  l2-input [1]
>>>>> ip4-udp-lookup
>>>>>   gtpu4-encap [2]
>>>>>   gtpu6-encap [3]
>>>>>
>>>>> Now we want next gtpu-input to be gtpu4-encap and the next of that to
>>>>> ip4-load-balance or directly send it out. Is such thing possible.
>>>>>
>>>>> Thanks,
>>>>> Regards,
>>>>> Venu
>>>>>
>>>>> 
>>>>>
>>>>>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19804): https://lists.fd.io/g/vpp-dev/message/19804
Mute This Topic: https://lists.fd.io/mt/84244683/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] question on gtpu_input graph node

2021-07-16 Thread Akash S R
Hi Venu,

decap-next supports only 3 parameters I guess .So, If you need an support
like reaching gtpu4_encap-node, you might need to have a look on the
gtpu_input API where the next0 fields can be set internally with some
checks and enqueue the packet to gtpu4-encap.

Also, Please add your requirement view so that I may help you out on it.

Regards,
Akash

On Fri, Jul 16, 2021, 2:42 PM Venumadhav Josyula  wrote:

> Hi Akash,
>
> While creating tunnels there if I set decap-next gtpu4-encap will it not
> work, it use the tried for the same right ?
> create gtpu tunnel src 10.21.58.142 dst 10.21.58.140 teid 13 tteid 14
> encap-vrf-id 0 decap-next ip4 // instead of ip4, gtpu4-encap
>
> Thanks,
> Regards,
> Venu
>
>
> On Fri, 16 Jul 2021 at 14:22, Akash S R  wrote:
>
>> Hi Venumadhav,
>>
>> Sharing my knowledge nuggets as below:
>> * gtpu_input is an API which processes the gtpu packet for decapsulation
>> and fire out the packet as an IP packet. You cannot reach gtpu_encap_inline
>> with the same. But if you wish to send the Decapsulated IP packet to encap,
>> you can using the next0 variable which enqueues your packet to the next
>> node you wish to reach.
>>
>> I don't guarantee that your packet will be encapsulated without any error
>> but you can reach the next node you wish to reach in this way.
>>
>> Thanks and Regards,
>> Akash S R
>>
>> On Fri, Jul 16, 2021, 2:03 PM Venumadhav Josyula 
>> wrote:
>>
>>> Hi vpp gtpu experts,
>>>
>>> We have requirement where
>>>
>>>- we create gtpu tunnel
>>>- Now, we will hit gtpu input, where we will receive gtpu packet and
>>>when we send it out on the interface replace the tied with tried and
>>>massage the ip address of src and destination and send the packet out
>>>
>>> vpp# show vlib graph gtpu4-input
>>>Name  NextPrevious
>>> gtpu4-input error-drop [0]ip4-gtpu-bypass
>>>  l2-input [1] ip4-udp-lookup
>>>  ip4-input [2]
>>>  ip6-input [3]
>>> vpp#
>>>
>>> vpp# show vlib graph gtpu4-encap
>>>Name  NextPrevious
>>> gtpu4-encap error-drop [0]  ip4-dvr-dpo
>>> ip4-lookup [1]ip4-arp
>>> ip6-lookup [2] ip4-midchain
>>>  ip4-load-balance [3]
>>> ip4-mcast-midchain
>>>
>>>  ip4-rewrite-mcast
>>>
>>>  ip4-rewrite-bcast
>>> ip4-rewrite
>>>  interface-output
>>>
>>>   vpp# show vlib graph gtpu4-input
>>>Name  NextPrevious
>>> gtpu4-input error-drop [0]ip4-gtpu-bypass
>>>  l2-input [1] ip4-udp-lookup
>>>   gtpu4-encap [2]
>>>   gtpu6-encap [3]
>>>
>>> Now we want next gtpu-input to be gtpu4-encap and the next of that to
>>> ip4-load-balance or directly send it out. Is such thing possible.
>>>
>>> Thanks,
>>> Regards,
>>> Venu
>>>
>>> 
>>>
>>>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19802): https://lists.fd.io/g/vpp-dev/message/19802
Mute This Topic: https://lists.fd.io/mt/84244683/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] question on gtpu_input graph node

2021-07-16 Thread Akash S R
Hi Venumadhav,

Sharing my knowledge nuggets as below:
* gtpu_input is an API which processes the gtpu packet for decapsulation
and fire out the packet as an IP packet. You cannot reach gtpu_encap_inline
with the same. But if you wish to send the Decapsulated IP packet to encap,
you can using the next0 variable which enqueues your packet to the next
node you wish to reach.

I don't guarantee that your packet will be encapsulated without any error
but you can reach the next node you wish to reach in this way.

Thanks and Regards,
Akash S R

On Fri, Jul 16, 2021, 2:03 PM Venumadhav Josyula  wrote:

> Hi vpp gtpu experts,
>
> We have requirement where
>
>- we create gtpu tunnel
>- Now, we will hit gtpu input, where we will receive gtpu packet and
>when we send it out on the interface replace the tied with tried and
>massage the ip address of src and destination and send the packet out
>
> vpp# show vlib graph gtpu4-input
>Name  NextPrevious
> gtpu4-input error-drop [0]ip4-gtpu-bypass
>  l2-input [1] ip4-udp-lookup
>  ip4-input [2]
>  ip6-input [3]
> vpp#
>
> vpp# show vlib graph gtpu4-encap
>Name  NextPrevious
> gtpu4-encap error-drop [0]  ip4-dvr-dpo
> ip4-lookup [1]ip4-arp
> ip6-lookup [2] ip4-midchain
>  ip4-load-balance [3]   ip4-mcast-midchain
>  ip4-rewrite-mcast
>  ip4-rewrite-bcast
> ip4-rewrite
>  interface-output
>
>   vpp# show vlib graph gtpu4-input
>Name  NextPrevious
> gtpu4-input error-drop [0]ip4-gtpu-bypass
>  l2-input [1] ip4-udp-lookup
>   gtpu4-encap [2]
>   gtpu6-encap [3]
>
> Now we want next gtpu-input to be gtpu4-encap and the next of that to
> ip4-load-balance or directly send it out. Is such thing possible.
>
> Thanks,
> Regards,
> Venu
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19797): https://lists.fd.io/g/vpp-dev/message/19797
Mute This Topic: https://lists.fd.io/mt/84244683/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] UDP Checksum DROP in NIC offload for Uplink flow in 40G traffic

2021-07-12 Thread Akash S R
Hi,

 We are in developmental phase for 5G user plane as vpp.we are
struugling in measuring throughput in vpp.



40G traffic:



Using a Mellanox NIC created a RDMA interfaces , for 40G traffic Uplink
flow , facing a udp checksum drop in vpp.

The traffic drops at RDMA interfaces, and has a ”bad upd checksum” issue.



10G traffic:



Using a Mellanox NIC changed the 40G to 4x10 G in spirent and in NIC.
Created 4 SRIOV interfaces(as RDMA interface in vpp) .

But the packets are not reaching the SRIOV in vpp.



Kindly let us know how to proceed on this for 40G traffic flow.

Thanks in advance.



Regards,

Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19751): https://lists.fd.io/g/vpp-dev/message/19751
Mute This Topic: https://lists.fd.io/mt/84172390/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] no dpdk plugin in vpp

2021-07-11 Thread Akash S R
There should be a plugin keyword in .conf you use. If not checkout the
latest vpp version and check the same. But the query here is even if the
plugin is not there in conf, all the plugins will be enabled automatically
including dpdk_plugin.so by default. So, Check the drivers in conf and your
PC.

Best,
Akash S R

On Sat, Jul 10, 2021, 8:15 AM sundk911  wrote:

> no plugin keyword in conf.
>
> when I uncomment out dpdk in conf,seems that vpp doesnt recognize the
> “dpdk” keyworld.
>
> do you have any ideas?
>
> --
> 发自我的iPhone
>
>
> -- Original --
> *From:* Akash S R 
> *Date:* Fri,Jul 9,2021 10:24 PM
> *To:* Tony Sun 
> *Cc:* vpp-dev 
> *Subject:* Re: [vpp-dev] no dpdk plugin in vpp
>
> Hi Tony,
>
> From your phrase, I can understand that dpdkplugin.so is not visible.
> Please check your /etc/vpp/startup.conf , where the fields like "plugin" is
> enabled with dpdk (if not, all plugins will be enabled by default) and UIO
> Driver field in the same with the driver of your PC .
>
> Regards,
> Akash S R
>
> On Fri, Jul 9, 2021, 7:42 PM Tony Sun  wrote:
>
>> Hi
>>
>> 1. sudo vpp/build-root/vagrant/build.sh
>> 2. cd build-root && sudo dpkg -i *.deb
>> 3. service vpp start
>>
>> vpp# show version
>> vpp v21.10-rc0~138-gb946b209b built by root on n201-040-074 at
>> 2021-07-09T13:17:51
>>
>> but no dpdk plugion,why?
>>
>> is there any config I need to do to enable dpdk plugion
>>
>> and also I found that no igb_uio.ko present in my system.
>>
>> is there any ways that I can build vpp with dpdk inside? or do you have
>> steps that how I can enable dpdk in vpp?
>>
>> my system info: Linux 4.14.81.bm.26-amd64 #1 SMP Debian 4.14.81.bm.26 Mon
>> Sep 14 09:46:45 UTC 2020 x86_64 GNU/Linux
>>
>> Thanks
>> Frank Sun
>>
>>
>>
>>
>>
>>
>>
>> 
>>
>>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19743): https://lists.fd.io/g/vpp-dev/message/19743
Mute This Topic: https://lists.fd.io/mt/84092074/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] no dpdk plugin in vpp

2021-07-09 Thread Akash S R
Hi Tony,

>From your phrase, I can understand that dpdkplugin.so is not visible.
Please check your /etc/vpp/startup.conf , where the fields like "plugin" is
enabled with dpdk (if not, all plugins will be enabled by default) and UIO
Driver field in the same with the driver of your PC .

Regards,
Akash S R

On Fri, Jul 9, 2021, 7:42 PM Tony Sun  wrote:

> Hi
>
> 1. sudo vpp/build-root/vagrant/build.sh
> 2. cd build-root && sudo dpkg -i *.deb
> 3. service vpp start
>
> vpp# show version
> vpp v21.10-rc0~138-gb946b209b built by root on n201-040-074 at
> 2021-07-09T13:17:51
>
> but no dpdk plugion,why?
>
> is there any config I need to do to enable dpdk plugion
>
> and also I found that no igb_uio.ko present in my system.
>
> is there any ways that I can build vpp with dpdk inside? or do you have
> steps that how I can enable dpdk in vpp?
>
> my system info: Linux 4.14.81.bm.26-amd64 #1 SMP Debian 4.14.81.bm.26 Mon
> Sep 14 09:46:45 UTC 2020 x86_64 GNU/Linux
>
> Thanks
> Frank Sun
>
>
>
>
>
>
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19737): https://lists.fd.io/g/vpp-dev/message/19737
Mute This Topic: https://lists.fd.io/mt/84092074/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] Creating multiple VAPI connections from a single application

2021-07-05 Thread Akash S R
Hi Chinmaya,

>From your point of view, I understand that you have not done
vapi_disconnect for every vapi_connect you do. Since it is similar to a
socket, you must do it to disconnect from that connection and reconnect
vapi. I hope this may help you.

Regards,
Akash

On Mon, Jul 5, 2021, 7:32 PM Chinmaya Aggarwal 
wrote:

> Hi,
>
> We are trying to create multiple vapi connections simultaneously,
> using vapi_connect() function, but it is failing. We saw an old post: -
>
>
> https://lists.fd.io/g/vpp-dev/message/11140?p=,,,20,0,0,0::Created,,vapi+connection,20,2,0,2803
>
> It state that multiple VAPI connections were not supported at that time.
> Does vpp architecture now supports multiple VAPI connections?
>
>
> Thanks and Regards,
> Chinmaya Agarwal.
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19705): https://lists.fd.io/g/vpp-dev/message/19705
Mute This Topic: https://lists.fd.io/mt/83997592/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] TCP packets are not reaching to TCP graph node (tcp46_input_inline) #vpp-dev #vppcom #vnet

2021-07-05 Thread Akash S R
Hi Nikhil,

>From your phrase, I understand that your packet didn't reach inline. Maybe
that is because your packet didn't reach the TCP node of your plugin API.
Also check whether your plugin is visible under "show plugins" and check
the headers and packet type of yours too.

Regards,
Akash


On Mon, Jul 5, 2021, 1:19 PM nikhil subhedar 
wrote:

> Hi All,
>
> in our product we have plugin which will receive all the TCP packets and
> based on the type it will send it to appropriate graph node.
> For e.g. of the packet is BGP we will send it to BGP graph node and for
> non BGP packets we will send it to TCP graph node.
> and if the packet is non-BGP packet then i am marking next node as
> tcp4_input and forward. But it is observed that not a single time
> tcp46_input_inline() is hitted which will process this TCP packet.
>
> Am i missing any config here?
>
> Thanks in advance.
> Nikhil
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19701): https://lists.fd.io/g/vpp-dev/message/19701
Mute This Topic: https://lists.fd.io/mt/83992901/21656
Mute #vnet:https://lists.fd.io/g/vpp-dev/mutehashtag/vnet
Mute #vppcom:https://lists.fd.io/g/vpp-dev/mutehashtag/vppcom
Mute #vpp-dev:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-dev
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Forwarding packets from an external application to VPP Node

2021-06-25 Thread Akash S R
Hi All,

Just a Quick Question on Sending packets from an External Application
Developed to VPP. How can a packet be sent like the above mentioned
statement? How can the VLIB_NODE_FUNCTION of a particular protocol on VPP
be hit so that the packet is sent to egress out?

Let us consider the packet reaches dpdk-input from Spirent/NIC.How is that
node function HIT? Can it be possible to make the same node function HIT
from the application?

Please help us with the above queries.

Thanks in Advance!

Regards,
Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19636): https://lists.fd.io/g/vpp-dev/message/19636
Mute This Topic: https://lists.fd.io/mt/83783521/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] Quick question on VPP on : How to Embed VPP as library

2021-06-10 Thread Akash S R
Thanks for the quick reply.
So if I need to take inputs from application and proceed to further
processing, what is the way to do so?
Should I still be using 2 binaries?

Regards,
Akash

On Thu, Jun 10, 2021 at 6:31 PM Dave Barach  wrote:

> Vpp seems to be its dispatch loop, waiting for an input node to inject
> work into the forwarding graph. What you call cust_main() is the moral
> equivalent of a while(1) loop. It won’t return.
>
>
>
> D.
>
>
>
> *From:* Akash S R 
> *Sent:* Thursday, June 10, 2021 7:38 AM
> *To:* Akash S R 
> *Cc:* v...@barachs.net; vpp-dev@lists.fd.io; srilcha...@gmail.com
> *Subject:* Re: [vpp-dev] Quick question on VPP on : How to Embed VPP as
> library
>
>
>
> Hi Dave,
>
>
>
> As per your suggestion, we have compiled a shared library and renamed main
> in vnet/main.c as cust_main ().
>
> Invoking the cust_main() from our application results in a hang. Bt as
> below:
>
>
>
> Thread 1 "vpp_main" received signal SIGINT, Interrupt.
>
> 0x7519d888 in clib_time_now_internal (c=0x7fffb3115680,
> n=287541441385032)
>
> at /home/soundarya/june4/vpp/src/vppinfra/time.h:219
>
> 219   if (PREDICT_FALSE
>
> Missing separate debuginfos, use: debuginfo-install
> check-0.9.9-5.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64
> libgcc-4.8.5-44.el7.x86_64 libselinux-2.5-15.el7.x86_64
> libstdc++-4.8.5-44.el7.x86_64 libuuid-2.23.2-65.el7_9.1.x86_64
> mbedtls-2.7.17-1.el7.x86_64 numactl-libs-2.0.12-5.el7.x86_64
> pcre-8.32-17.el7.x86_64 pkcs11-helper-1.11-3.el7.x86_64
>
> (gdb) thread apply all bt
>
>
>
> Thread 2 (Thread 0x7fffac0de700 (LWP 10052)):
>
> #0  0x76ad0fd3 in epoll_wait () at
> ../sysdeps/unix/syscall-template.S:81
>
> #1  0x7fffb03dae84 in eal_intr_thread_main () from
> /home/soundarya/june4/vpp/build-root/install-vpp_debug-native/vpp/lib/vpp_plugins/dpdk_plugin.so
>
> #2  0x77b53ea5 in start_thread (arg=0x7fffac0de700) at
> pthread_create.c:307
>
> #3  0x76ad09fd in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
>
>
>
> Thread 1 (Thread 0x73218940 (LWP 10048)):
>
> #0  0x751a57f9 in vlib_main_or_worker_loop (vm=0x7fffb3115680,
> is_main=1) at /home/soundarya/june4/vpp/src/vlib/main.c:1764
>
> #1  0x751a599e in vlib_main_loop (vm=0x7fffb3115680) at
> /home/soundarya/june4/vpp/src/vlib/main.c:1794
>
> #2  0x751a69f6 in vlib_main (vm=0x7fffb3115680,
> input=0x7fffae6c3fb0) at /home/soundarya/june4/vpp/src/vlib/main.c:2083
>
> #3  0x752118c1 in thread0 (arg=140736197645952) at
> /home/soundarya/june4/vpp/src/vlib/unix/main.c:671
>
> #4  0x77e5d638 in clib_calljmp () at
> /home/5G/vpp/src/vppinfra/longjmp.S:123
>
> #5  0x7fffafa0 in ?? ()
>
> #6  0x75212010 in vlib_unix_main (argc=37, argv=0x46a3c0) at
> /home/soundarya/june4/vpp/src/vlib/unix/main.c:751
>
> #7  0x77f2774e in cust_main (argc=37, argv=0x46a3c0) at
> /home/soundarya/june4/vpp/src/vpp/vnet/main.c:339
>
> #8  0x0041757c in main () at
> /home/soundarya/june4/ViNGC/upf/DataPlane/packetProcessing/vpp/dp/sim/src/altvppsim.c:119
>
> (gdb)
>
>
>
> Any points to resolve it?
>
>
>
> Thanks in Advance!
>
>
>
> Regards,
>
> Akash
>
>
>
> On Wed, May 19, 2021 at 5:48 PM Akash S R via lists.fd.io
>  wrote:
>
> Thanks Dave, Will check it out and get back here if any query is to be
> addressed.
>
>
>
> Regards,
>
> Akash
>
>
>
> On Wed, May 19, 2021, 4:51 PM  wrote:
>
> Long ago, we decided to strictly separate the vpp data plane process from
> its control plane process(es); as a matter of fault containment if nothing
> else.
>
>
>
> As a practical matter, if you want to build vpp as a library you could
> change .../src/vpp/vnet/main.c in trivial ways, and adjust
> .../src/vpp/CMakeLists.txt to build a shared library instead of a
> standalone binary.
>
>
>
> Bottom line: I wouldn’t go there myself for any number of reasons, but it
> wouldn’t be difficult.
>
>
>
> HTH... Dave
>
>
>
> *From:* vpp-dev@lists.fd.io  *On Behalf Of *Akash S R
> *Sent:* Wednesday, May 19, 2021 6:31 AM
> *To:* vpp-dev@lists.fd.io
> *Cc:* srilcha...@gmail.com
> *Subject:* [vpp-dev] Quick question on VPP on : How to Embed VPP as
> library
>
>
>
> Hi All,
>
> We are using VPP version 21.06 (Latest)
> We understand that vpp package consists of libraries , plugins,dev and
> debugs utilities and runs as exe .
> But as per our current usage , we have a control plane application layer
> from which we have included VPP packages as libraries from o

Re: [vpp-dev] Quick question on VPP on : How to Embed VPP as library

2021-06-10 Thread Akash S R
Hi Dave,



As per your suggestion, we have compiled a shared library and renamed main
in vnet/main.c as cust_main ().

Invoking the cust_main() from our application results in a hang. Bt as
below:



Thread 1 "vpp_main" received signal SIGINT, Interrupt.

0x7519d888 in clib_time_now_internal (c=0x7fffb3115680,
n=287541441385032)

at /home/soundarya/june4/vpp/src/vppinfra/time.h:219

219   if (PREDICT_FALSE

Missing separate debuginfos, use: debuginfo-install
check-0.9.9-5.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64
libgcc-4.8.5-44.el7.x86_64 libselinux-2.5-15.el7.x86_64
libstdc++-4.8.5-44.el7.x86_64 libuuid-2.23.2-65.el7_9.1.x86_64
mbedtls-2.7.17-1.el7.x86_64 numactl-libs-2.0.12-5.el7.x86_64
pcre-8.32-17.el7.x86_64 pkcs11-helper-1.11-3.el7.x86_64

(gdb) thread apply all bt



Thread 2 (Thread 0x7fffac0de700 (LWP 10052)):

#0  0x76ad0fd3 in epoll_wait () at
../sysdeps/unix/syscall-template.S:81

#1  0x7fffb03dae84 in eal_intr_thread_main () from
/home/soundarya/june4/vpp/build-root/install-vpp_debug-native/vpp/lib/vpp_plugins/dpdk_plugin.so

#2  0x77b53ea5 in start_thread (arg=0x7fffac0de700) at
pthread_create.c:307

#3  0x76ad09fd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111



Thread 1 (Thread 0x73218940 (LWP 10048)):

#0  0x751a57f9 in vlib_main_or_worker_loop (vm=0x7fffb3115680,
is_main=1) at /home/soundarya/june4/vpp/src/vlib/main.c:1764

#1  0x751a599e in vlib_main_loop (vm=0x7fffb3115680) at
/home/soundarya/june4/vpp/src/vlib/main.c:1794

#2  0x751a69f6 in vlib_main (vm=0x7fffb3115680,
input=0x7fffae6c3fb0) at /home/soundarya/june4/vpp/src/vlib/main.c:2083

#3  0x752118c1 in thread0 (arg=140736197645952) at
/home/soundarya/june4/vpp/src/vlib/unix/main.c:671

#4  0x77e5d638 in clib_calljmp () at
/home/5G/vpp/src/vppinfra/longjmp.S:123

#5  0x7fffafa0 in ?? ()

#6  0x75212010 in vlib_unix_main (argc=37, argv=0x46a3c0) at
/home/soundarya/june4/vpp/src/vlib/unix/main.c:751

#7  0x77f2774e in cust_main (argc=37, argv=0x46a3c0) at
/home/soundarya/june4/vpp/src/vpp/vnet/main.c:339

#8  0x0041757c in main () at
/home/soundarya/june4/ViNGC/upf/DataPlane/packetProcessing/vpp/dp/sim/src/altvppsim.c:119

(gdb)



Any points to resolve it?


Thanks in Advance!


Regards,

Akash

On Wed, May 19, 2021 at 5:48 PM Akash S R via lists.fd.io  wrote:

> Thanks Dave, Will check it out and get back here if any query is to be
> addressed.
>
> Regards,
> Akash
>
> On Wed, May 19, 2021, 4:51 PM  wrote:
>
>> Long ago, we decided to strictly separate the vpp data plane process from
>> its control plane process(es); as a matter of fault containment if nothing
>> else.
>>
>>
>>
>> As a practical matter, if you want to build vpp as a library you could
>> change .../src/vpp/vnet/main.c in trivial ways, and adjust
>> .../src/vpp/CMakeLists.txt to build a shared library instead of a
>> standalone binary.
>>
>>
>>
>> Bottom line: I wouldn’t go there myself for any number of reasons, but it
>> wouldn’t be difficult.
>>
>>
>>
>> HTH... Dave
>>
>>
>>
>> *From:* vpp-dev@lists.fd.io  *On Behalf Of *Akash S
>> R
>> *Sent:* Wednesday, May 19, 2021 6:31 AM
>> *To:* vpp-dev@lists.fd.io
>> *Cc:* srilcha...@gmail.com
>> *Subject:* [vpp-dev] Quick question on VPP on : How to Embed VPP as
>> library
>>
>>
>>
>> Hi All,
>>
>> We are using VPP version 21.06 (Latest)
>> We understand that vpp package consists of libraries , plugins,dev and
>> debugs utilities and runs as exe .
>> But as per our current usage , we have a control plane application layer
>> from which we have included VPP packages as libraries from our Makefile .
>> We launch VPP as a separate process and we invoke VAPI's using socket.
>>
>> What is the way to embed VPP directly as a library (Instead of a separate
>> process ) and directly invoke VAPI's from control plane applications ?
>>
>> This is important since we need to know how to deliver VPP as a library
>> to our client. Please Reply Back if any Related Solution is known.
>>
>>
>>
>> Thanks in Advance!
>>
>>
>>
>> Regards,
>>
>> Akash
>>
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19549): https://lists.fd.io/g/vpp-dev/message/19549
Mute This Topic: https://lists.fd.io/mt/82933046/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Support for GTP-U Echo - Response and Error Indication

2021-06-07 Thread Akash S R
Hi All,

We found a diff related to this in forum:
gerrit.fd Code Review - vpp.git/commitdiff


But the same was not merged/taken into VPP. Do we have any latest patch for
the same
in the latest version (21.05)? If not, please reply back if any other
latest patches are available for the same.

Thanks in advance !

Regards,
Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19531): https://lists.fd.io/g/vpp-dev/message/19531
Mute This Topic: https://lists.fd.io/mt/83364822/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Mapping Multiple Classify Session under a Single Classifier Table

2021-05-21 Thread Akash S R
Hello All,

We are trying to bind one classifier to multiple classify session.
However, we wish to configure src ip alone for one session, src ip and dest
ip for the next session, Destination IP alone for another session, etc..
Unfortunately, though config is accepted, functionality wise classification
itself didn't happen.

We have a GTPU Tunnel to support multiple classifiers . We are able to
support only one and are not able to support without *dst *field in the
following VPP-CLI command.
*classify table mask l3 ip4 src dst*
The following piece of commands are given after the above:
set policer classify interface VirtualFunctionEthernet1/10/1 ip4-table 0
configure policer name ambr cir 450 eir 600 cb 51200 eb 51200 rate kbps
round up type 2r3c-4115 conform-action transmit exceed-action transmit

classify session policer-hit-next ambr exceed-color table-index 0 match l3
ip4 src 172.23.48.50
classify session policer-hit-next ambr exceed-color table-index 0 match l3
ip4 dst 192.168.45.200
classify session policer-hit-next ambr exceed-color table-index 0 match l3
ip4 src 172.23.49.50 dst 192.168.45.200

If we configure both src and dst in all the sessions, functionality is
working fine( classification is proper, traffic falls into all the sessions
properly) as below :
classify session policer-hit-next ambr exceed-color table-index 0 match l3
ip4 src 172.23.49.50 dst 192.168.45.200

Is it not possible if I have mask for more than one field but setting only
any of it? Kindly suggest whether any extra configs or how to handle this?

Thanks in Advance!

Regards,
Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19422): https://lists.fd.io/g/vpp-dev/message/19422
Mute This Topic: https://lists.fd.io/mt/82980975/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] Quick question on VPP on : How to Embed VPP as library

2021-05-19 Thread Akash S R
Thanks Dave, Will check it out and get back here if any query is to be
addressed.

Regards,
Akash

On Wed, May 19, 2021, 4:51 PM  wrote:

> Long ago, we decided to strictly separate the vpp data plane process from
> its control plane process(es); as a matter of fault containment if nothing
> else.
>
>
>
> As a practical matter, if you want to build vpp as a library you could
> change .../src/vpp/vnet/main.c in trivial ways, and adjust
> .../src/vpp/CMakeLists.txt to build a shared library instead of a
> standalone binary.
>
>
>
> Bottom line: I wouldn’t go there myself for any number of reasons, but it
> wouldn’t be difficult.
>
>
>
> HTH... Dave
>
>
>
> *From:* vpp-dev@lists.fd.io  *On Behalf Of *Akash S R
> *Sent:* Wednesday, May 19, 2021 6:31 AM
> *To:* vpp-dev@lists.fd.io
> *Cc:* srilcha...@gmail.com
> *Subject:* [vpp-dev] Quick question on VPP on : How to Embed VPP as
> library
>
>
>
> Hi All,
>
> We are using VPP version 21.06 (Latest)
> We understand that vpp package consists of libraries , plugins,dev and
> debugs utilities and runs as exe .
> But as per our current usage , we have a control plane application layer
> from which we have included VPP packages as libraries from our Makefile .
> We launch VPP as a separate process and we invoke VAPI's using socket.
>
> What is the way to embed VPP directly as a library (Instead of a separate
> process ) and directly invoke VAPI's from control plane applications ?
>
> This is important since we need to know how to deliver VPP as a library to
> our client. Please Reply Back if any Related Solution is known.
>
>
>
> Thanks in Advance!
>
>
>
> Regards,
>
> Akash
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19411): https://lists.fd.io/g/vpp-dev/message/19411
Mute This Topic: https://lists.fd.io/mt/82933046/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Quick question on VPP on : How to Embed VPP as library

2021-05-19 Thread Akash S R
Hi All,

We are using VPP version 21.06 (Latest)
We understand that vpp package consists of libraries , plugins,dev and
debugs utilities and runs as exe .
But as per our current usage , we have a control plane application layer
from which we have included VPP packages as libraries from our Makefile .
We launch VPP as a separate process and we invoke VAPI's using socket.

What is the way to embed VPP directly as a library (Instead of a separate
process ) and directly invoke VAPI's from control plane applications ?

This is important since we need to know how to deliver VPP as a library to
our client. Please Reply Back if any Related Solution is known.

Thanks in Advance!

Regards,
Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19408): https://lists.fd.io/g/vpp-dev/message/19408
Mute This Topic: https://lists.fd.io/mt/82933046/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 Telemetry plugin support for Latency and Time Interval

2021-05-19 Thread Akash S R
Hi All,

Is there any support on VPP for the above items!? If there is any, please
reply back to me.

Regards,
Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19406): https://lists.fd.io/g/vpp-dev/message/19406
Mute This Topic: https://lists.fd.io/mt/82930418/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] GTP-U Tunnel Creation only without dst and tteid

2021-04-07 Thread Akash S R
Hi All,

I am in a condition to alter VPP code for Creating GTP-U Tunnel without dst
address and
tteid(remote) and I will be updating the same later with some values. But,
the main concept
is to Create a Tunnel without it and should be reflected on hw as well
as be shown on VPPCTL.
Please help me on this if any solution is known or working code is
available.

Thanks in Advance!

Thanks and Regards,
Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19131): https://lists.fd.io/g/vpp-dev/message/19131
Mute This Topic: https://lists.fd.io/mt/81922756/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Error during bring UP of VPP after compilation in Cent OS

2021-03-16 Thread Akash S R
Hi All,

The following is the error when we try to bring up vpp from compiled path
in Cent OS:

[root@6464258675a9 bin]# ./vpp[7394]: received signal SIGSEGV, PC
0x7fede345f78a, faulting address 0x0

./vpp[7394]: received signal SIGSEGV, PC 0x7fede345f78a, faulting address
0x0

./vpp[7394]: #0  0x7fee2b13ec00 unix_signal_handler + 0x120

./vpp[7394]: #0  0x7fee2b13ec00 unix_signal_handler + 0x120

./vpp[7394]: #1  0x7fee295ea630 0x7fee295ea630

./vpp[7394]: #1  0x7fee295ea630 0x7fee295ea630

./vpp[7394]: #2  0x7fede345f78a intel_uncore_add_unit.isra.0 + 0x24a

./vpp[7394]: #2  0x7fede345f78a intel_uncore_add_unit.isra.0 + 0x24a

./vpp[7394]: #3  0x7fede345fca1 intel_uncore_init + 0x1f1

./vpp[7394]: #3  0x7fede345fca1 intel_uncore_init + 0x1f1

./vpp[7394]: #4  0x7fede345ca13 perfmon_init + 0x123

./vpp[7394]: #4  0x7fede345ca13 perfmon_init + 0x123

./vpp[7394]: #5  0x7fee2b0e8f3e vlib_call_init_exit_functions + 0x6e

./vpp[7394]: #5  0x7fee2b0e8f3e vlib_call_init_exit_functions + 0x6e

./vpp[7394]: #6  0x7fee2b0fb225 vlib_main + 0x265

./vpp[7394]: #6  0x7fee2b0fb225 vlib_main + 0x265

./vpp[7394]: #7  0x7fee2b13dc38 thread0 + 0x28

./vpp[7394]: #7  0x7fee2b13dc38 thread0 + 0x28

./vpp[7394]: #8  0x7fee2b00f5e0 0x7fee2b00f5e0

./vpp[7394]: #8  0x7fee2b00f5e0 0x7fee2b00f5e0


Please address this query if solution is know. We suspect this is due to
Cent OS. If so, How to resolve ? Please reply back if known.


Thanks,

Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18937): https://lists.fd.io/g/vpp-dev/message/18937
Mute This Topic: https://lists.fd.io/mt/81371133/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] Regarding VPP Statistics

2021-03-05 Thread Akash S R
Thanks! I'll check it out.

Regards,
Akash

On Fri, Mar 5, 2021, 2:05 PM  wrote:

> > I am in need to print the VPP statistics from an external application.
> Is that possible? I have gone through some links with telemetry plugins and
> some other but couldn't find out the exact thing which I can do to print
> this from my external application. Kindly help me out with this.
>
> VPP exposes telemetry information through a shared memory "stats segment".
>
> There are existing external integrations with prometheus, gnmi.
> A fuse filesystem is in the works.
>
> In addition there are language bindings in C, Go and Python to access it
> externally.
> https://git.fd.io/vpp/tree/src/vpp/stats/stats.md
>
> Or you can use the example tools vpp_get_stats (or vpp_prometheus_export).
>
> sudo vpp_get_stats ls /if/
> sudo vpp_get_stats dump ^/if/tx/$
> [0 @ 0]: 0 packets, 0 bytes /if/tx
> [1 @ 0]: 7 packets, 622 bytes /if/tx
> [2 @ 0]: 0 packets, 0 bytes /if/tx
> [3 @ 0]: 0 packets, 0 bytes /if/tx
>
> Best regards,
> Ole
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18861): https://lists.fd.io/g/vpp-dev/message/18861
Mute This Topic: https://lists.fd.io/mt/81098207/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] Regarding VPP Statistics

2021-03-05 Thread Akash S R
I have even gone through "interface.api.vapi.h" which doesn't have counters.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18858): https://lists.fd.io/g/vpp-dev/message/18858
Mute This Topic: https://lists.fd.io/mt/81098207/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Regarding VPP Statistics

2021-03-05 Thread Akash S R
Hi All,
I am in need to print the VPP statistics from an external application. Is
that possible? I have gone through some links with telemetry plugins and
some other but couldn't find out the exact thing which I can do to print
this from my external application. Kindly help me out with this.

Regards,
Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18857): https://lists.fd.io/g/vpp-dev/message/18857
Mute This Topic: https://lists.fd.io/mt/81098207/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Regarding GTPU Tunnel packet send/recieve

2021-03-04 Thread Akash S R
Hi,
I couldn't send traffic to GTPU Tunnel with respect to the teid and tteid,
but it works when I set an IP address to the particular Tunnel. Is this
always needed or else is there any other way without setting IP for a
tunnel? Kindly let me know if possible.

Regards,
Akash

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18856): https://lists.fd.io/g/vpp-dev/message/18856
Mute This Topic: https://lists.fd.io/mt/81098107/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-