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

2021-09-22 Thread RaviKiran Veldanda
Hi Ole, Thanks for your response, I have a question on other language, So we don't have any SOCKET API support for C/C++? The socket API support is possible with go/python right? //Ravi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20186): https://

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

2021-09-22 Thread RaviKiran Veldanda
Hi Experts, I was trying to find out how to use socket-api instead of "VAPI" based API. Can you please provide how to use socket-api any pointer will be a great help. //Ravi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20184): https://lists.fd.io/

[vpp-dev] VPP healthy or not, or VAPI connection is healthy or not #vapi #vpp #shm

2021-09-14 Thread RaviKiran Veldanda
Hi Experts, We are using several applications to communicate the VPP by using the VAPI. We are using Vapi_connect, Vapi_send, Vapi_recv calls, Sometimes I see one of the application can not able to communicate with VPP and it will give errors. At the same time other applications are running fine w

Re: [vpp-dev] VPP hangs after few hours of continuous VAPI Send/Recv #acl #abf #vapi

2021-09-13 Thread RaviKiran Veldanda
Hi Andrew, Thanks for prompt reply, Please find details below VAPI Configuration ==> I believe you are talking about this rv = vapi_connect (ctx, "checking", NULL, 512, 512, VAPI_MODE_BLOCKING, true); The VPP_IFADDR.cfg --> is for all interface information. The startup.conf for the VPP startup. I

Re: [vpp-dev] VPP hangs after few hours of continuous VAPI Send/Recv #acl #abf #vapi

2021-09-13 Thread RaviKiran Veldanda
[Edited Message Follows] This is reproduced with stand alone app, which just creates and deletes the ACL,ABF policies. No traffic, No memif. Please find GDB context: Its waiting on some ptherad_condition_wait --> not a timed wait. gdb /usr/bin/vpp 0x7f023297848c in pthread_cond_wait@@GLIBC

Re: [vpp-dev] VPP hangs after few hours of continuous VAPI Send/Recv #acl #abf #vapi

2021-09-13 Thread RaviKiran Veldanda
Please find GDB context: Its waiting on some ptherad_condition_wait --> not a timed wait. gdb /usr/bin/vpp 0x7f023297848c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 Missing separate debuginfos, use: yum debuginfo-install glibc-2.28-101.el8.x86_64 libuuid-2.32.1-22.el

Re: [vpp-dev] VPP hangs after few hours of continuous VAPI Send/Recv #acl #abf #vapi

2021-09-13 Thread RaviKiran Veldanda
Hi Andrew, >>>What is sitting on the other end of the memif interfaces? Are those >>>applications experiencing any changes / restarts throughout, or are they >>>permanently run so no transient events in memif ? There is no transition on memif interfaces, and I am not running any traffic so no ev

Re: [vpp-dev] VPP hangs after few hours of continuous VAPI Send/Recv #acl #abf #vapi

2021-09-13 Thread RaviKiran Veldanda
This definition is way too vague to tell anything. Hi Andrew, Please find my answers below What is the setup ? (Cores and their config) Its 1U server, with 72cores available and 5cores for VPP. With 100G NIC. VAPI with 512 request and response size. What are the exact rules being pushe

[vpp-dev] VPP hangs after few hours of continuous VAPI Send/Recv #acl #abf #vapi

2021-09-12 Thread RaviKiran Veldanda
Hi Experts, I am running several applications and calling some ACL/ABF API to add and delete rules in VPP, these rules are added/deleted from all the applications continuously. After 5 to 6 hours I see the VPP ACL/ABF API will return VAPI_OK but payload.retval is NONZero number, If we keep on ad

Re: [vpp-dev] acl ipv6 rule creation with VAPI. #acl #ipv6 #vapi

2021-09-02 Thread RaviKiran Veldanda
Sorry for spamming, After going over the acl_plugin code I understood that the prefix length must match the address othewise the acl_plugin doesn't accept the rules :-( Error line ==> ret=inet_pton(AF_INET6,"fd01:: 1",&(acl->payload.r[0].dst_ prefix.address.un.ip6)); after changing the line to =

[vpp-dev] acl ipv6 rule creation with VAPI. #acl #ipv6 #vapi

2021-09-02 Thread RaviKiran Veldanda
Hi Experts, I got tired trying several ways to add the IPV6 ACL rules using API. I couldn't successful. The same thing working fine with IPv4 rule. When I tried IPV6 rule, I am getting retval is -58, I am not able to figure out what is this error. Can anyone please help me to understand what coul

Re: [vpp-dev] VAPI ACL addition. Not getting ACL index in response. #acl #acl_plugin #vapi

2021-08-30 Thread RaviKiran Veldanda
[Edited Message Follows] Sorry for spamming, anyway, I found the problem. I was sending wrong response structure causing the problem. We supposed to use, *vapi_msg_acl_add_replace_reply* *resp; but I was using *vapi_payload_acl_add_replace_reply* *resp; Its working fine. Just incase some one want

Re: [vpp-dev] VAPI ACL addition. Not getting ACL index in response. #acl #acl_plugin #vapi

2021-08-30 Thread RaviKiran Veldanda
Sorry for spamming, anyway, I found the problem. I was sending wrong response structure causing the problem. We supposed to use, *vapi_msg_acl_add_replace_reply* *resp; *vapi_payload_acl_add_replace_reply* *resp; Its working fine. Just incase some one wants to use above example, providing working o

[vpp-dev] VAPI ACL addition. Not getting ACL index in response. #acl #acl_plugin #vapi

2021-08-30 Thread RaviKiran Veldanda
[Edited Message Follows] Hi Experts, We are trying to use VPP-API(VAPI) to create ACL rules. We are using the VAPI in blocking mode to get response immediately. We are getting the response back but the *ACL-INDEX is some other value*. Can you please see the below code, if I am doing something wro

[vpp-dev] VAPI ACL addition. Not getting ACL index in response. #acl #acl_plugin #vapi

2021-08-30 Thread RaviKiran Veldanda
[Edited Message Follows] Hi Experts, We are trying to use VPP-API(VAPI) to create ACL rules. We are using the VAPI in blocking mode to get response immediately. We are getting the response back but the *ACL-INDEX is some other value*. Can you please see the below code, if I am doing something wro

[vpp-dev] VAPI ACL addition. Not getting ACL index in response. #acl #acl_plugin #vapi

2021-08-30 Thread RaviKiran Veldanda
Hi Experts, We are trying to use VPP-API(VAPI) to create ACL rules. We are using the VAPI in blocking mode to get response immediately. We are getting the response back but the *ACL-INDEX is some other value*. Can you please see the below code, if I am doing something wrong. Any pointers are big h

[vpp-dev] Blocking API call #ACL #binapi

2021-08-28 Thread RaviKiran Veldanda
HI Experts, We want to use API calls to create the ACL and ABF policies. We need a blocking calls because we need to decide next action on the return values. When I checked using the VAPI, I see only Asynchronous calls and we need to register callback for return values but I need a blocking calls

Re: [vpp-dev] Delete ACL rules #acl_plugin #acl #abf

2021-08-10 Thread RaviKiran Veldanda
Thanks for the help Neale \\Ravi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19945): https://lists.fd.io/g/vpp-dev/message/19945 Mute This Topic: https://lists.fd.io/mt/84778842/21656 Mute #acl_plugin:https://lists.fd.io/g/vpp-dev/mutehashtag/acl

Re: [vpp-dev] Delete ACL rules #acl_plugin #acl #abf

2021-08-10 Thread RaviKiran Veldanda
Any pointer will be a big help. //Ravi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19941): https://lists.fd.io/g/vpp-dev/message/19941 Mute This Topic: https://lists.fd.io/mt/84778842/21656 Mute #acl_plugin:https://lists.fd.io/g/vpp-dev/mutehasht

[vpp-dev] Delete ACL rules #acl_plugin #acl #abf

2021-08-09 Thread RaviKiran Veldanda
Hi Team, I am trying to find a way to delete the ACL rules. From the commands provided in acl-plugin, I coudn't find a way to delete the acls after addition. The only way to delete ACL rules are just restart VPP, I don't want to do that. How can we dynamically delete the rules? always the rules ar

[vpp-dev] VLAN+IP based forwarding #acl, #abf #vlan #memif #forwarding #vpp

2021-08-02 Thread RaviKiran Veldanda
Hi Experts, We have our application reading packets through memif and does consume them. We are adding rules in the VPP to reach particualr memif based on dst IP. "ip route add 172.172.0.0/24 via 192.168.1.3 memif1/0" However we have a requirement, where the Destination  NETWORK can overlap with

Re: [vpp-dev] VLAN based Forwarding to My application #vlan #memif #forwarding #acl

2021-08-02 Thread RaviKiran Veldanda
Hi Neale, Thanks for your suggestion and time. However I tried following things " set interface l2 xconnect memif1/0 memif2/0 set interface l2 xconnect memif2/0 memif1/0 " and forwarding to memif1/0 from some routing. the memif1/0 is getting received the packets. But memif2/0 is not getting recei

[vpp-dev] VLAN+IP Based forwarding is possible? #vlan #abf #acl #memif

2021-08-02 Thread RaviKiran Veldanda
Hi Experts, We have our application reading packets through memif and does consume them. We are adding rules in the VPP to reach particualr memif based on dst IP. "ip route add 172.172.0.0/24 via 192.168.1.3 memif1/0" However we have a requirement, where the Destination  NETWORK can overlap with

[vpp-dev] VLAN based Forwarding to My application #vlan #memif #forwarding #acl

2021-07-29 Thread RaviKiran Veldanda
[Edited Message Follows] Hi Experts, Our requirement is when VPP receives tcp/udp traffic with VLAN header, it should forward to application in Linux So our requirement is VLAN 1--> Memif1 --> App1 VLAN 2 --> Memif2 --> App2 How can we achieve this. We don't want to use ip route based or ACL->AB

[vpp-dev] VLAN based Forwarding to My application #vlan #memif #forwarding #acl

2021-07-29 Thread RaviKiran Veldanda
Hi Experts, Our requirement is when VPP receives tcp/udp traffic with VLAN header, it should forward to application in Linux So our requirement is VLAN 1--> Memif1 --> App1 VLAN 2 --> Memif2 --> App1 How can we achieve this. We don't want to use ip route based or ACL->ABF because at least I coul

Re: [vpp-dev] ACL-->ABF--> Memif, Seeing arp request for the packets #acl #abf #policy #routing

2021-07-17 Thread RaviKiran Veldanda
Neale, This is really I never thought we can create VLAN for memif This saved enormous of amount my time... I am really excited and its working perfectly fine. //Ravi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19822): https://lists.fd.io/g

Re: [vpp-dev] ACL-->ABF--> Memif, Seeing arp request for the packets #acl #abf #policy #routing

2021-07-16 Thread RaviKiran Veldanda
[Edited Message Follows] Hi Neale, Thanks for your time. Yes I got that and I did created a dummy arp to make this work. ip neighbor memif1/0 192.168.1.3 dead.dead.dead set acl-plugin acl permit dst 172.172.0.0/24 abf policy add id 0 acl 0 via 192.168.1.3 memif1/0 abf attach ip4 policy 0  Hun

Re: [vpp-dev] ACL-->ABF--> Memif, Seeing arp request for the packets #acl #abf #policy #routing

2021-07-16 Thread RaviKiran Veldanda
Hi Neale, Thanks for your time. Yes I got that and I did created a dummy arp to make this work. ip neighbor memif1/0 192.168.1.3 dead.dead.dead set acl-plugin acl permit dst 172.172.0.0/24 abf policy add id 0 acl 0 via 192.168.1.3 memif1/0 abf attach ip4 policy 0  HundredGigabitEthernet12/0/0

[vpp-dev] ACL-->ABF--> Memif, Seeing arp request for the packets #acl #abf #policy #routing

2021-07-16 Thread RaviKiran Veldanda
[Edited Message Follows] Hi Experts, We are trying to implement forwarding dst X.X.X.X/X subnet packets on interface Y to the memif1/0 To achieve that we used ACL and ABF policy rules. When I am trying to send traffic to "X.X.X.X" network I see ARP requests for that subnet on memif1/0. We don't

[vpp-dev] ACL-->ABF--> Memif, Seeing arp request for the packets #acl #abf #policy #routing

2021-07-16 Thread RaviKiran Veldanda
Hi Experts, We are trying to implement forwarding dst X.X.X.X/X subnet packets on interface Y to the memif1/0 To achieve that we used ACL and ABF policy rules. When I am trying to send traffic to "X.X.X.X" network I see ARP requests for that subnet on memif1/0. We don't need to send ARP for these

[vpp-dev] BondedInterface and memif interface for raw packet #memif #BondedInterface #plugin

2021-07-15 Thread RaviKiran Veldanda
[Edited Message Follows] Hi Experts, We implemented a PLUGIN, this plugin reads packets from physical interface and sends to memif. We implemented this approach to get RAW packets to our application. The memif other end is our application, it takes necessary action. The packet flow would be Devi

[vpp-dev] BondedInterface and memif interface for raw packet #memif #BondedInterface #plugin

2021-07-15 Thread RaviKiran Veldanda
Hi Experts, We implemented a PLUGIN, this plugin reads packets from physical interface and sends to memif. The memif other end is our application, it takes necessary action. The packet flow would be Devie-Input --> OUR Plugin --> Memif --> Our application.(Plugin filters the packets and send to

[vpp-dev] ACL IPV6 rule addition using the "set acl_plugin acl" command from "vppctl" #vppctl #acl #acl_plugin #ipv6

2021-07-14 Thread RaviKiran Veldanda
Hi Experts, We were trying to create some ACL rules for IPv6 addresses, *"set acl-plugin acl permit src 2001:5b0::1150::0/64 " in vppctl. * "set acl-plugin acl permit ipv6 src 2001:5b0::1150::0/64 " in vppctl. giving ACL index but when I check "show acl_plugin acl" its not giving any info

[vpp-dev] Plugin and getting packets from Bonded interface. #vpp-memif #vpp-hoststack #vnet

2021-05-18 Thread RaviKiran Veldanda
Hi Team, We developed a plugin in VPP to read data from a physical interface and forward to our application, Packet 2 *03:03:45:254785: dpdk-input* *HundredGigabitEthernet12/0/0 rx queue 0* buffer 0x1f3a68: current data 0, length 114, buffer-pool 0, ref-count 1, totlen-nifb 132, trace handle 0x

[vpp-dev] VLAN based routing #vpp-dev

2021-03-09 Thread RaviKiran Veldanda
Hi Team, Our architecture is something like this INGRESS>VPP->Plugin->MEMIF(Ethernet mode)->USER Application, In ingress we want to read the packet layer 2. EGRESS ==> User Application --> MEMIF(IP MODE) --> VPP. We want to get the packet routed through VPP. We are seeing the VPP dropping

[vpp-dev] Plugin communication with Host Application. #plugin #vpp-dev #control_and_data_plane_together

2020-12-07 Thread RaviKiran Veldanda
[Edited Message Follows] Hi Team, We developed a plugin and forwarding packets to several interfaces depending on some filtering rules. Now we have a requirement to create these filtering rules from Host Application. We have a problem to use VPPCOM/Binary API. DO we have any communication method

[vpp-dev] Plugin communication with Host Application. #plugin #vpp-dev #control_and_data_plane_together

2020-12-07 Thread RaviKiran Veldanda
Hi Team, We developed a plugin and forwarding packets to several interfaces depending on some filtering rules. Now we have a requirement to create these filtering rules from Host Application. We have a problem to use VPPCOM/Binary API. DO we have any communication method from HOSTAPP to VPP Plugi

Re: [vpp-dev] vppcom and binary api #binapi #vapi #vppcom

2020-12-07 Thread RaviKiran Veldanda
Hi Florin/Team of experts, I have one more question, The basic requirement we have is We have to send some data from our application to our own plugin. While going through previous messages and documentation, we found we can use memif or quick sockets. Our question is, do we have any other VPP pro

Re: [vpp-dev] vppcom and binary api #binapi #vapi #vppcom

2020-12-03 Thread RaviKiran Veldanda
Hi Florin, Thanks for your response, however I have a question, If I want to use another Binary API initialization do we need to do at our Application or in VPP code. When I check VPP source code, the initialization always with "vpe-api" vpe_api_init calls always vl_set_memory_region_name ("/vpe-a

[vpp-dev] vppcom and binary api #binapi #vapi #vppcom

2020-12-02 Thread RaviKiran Veldanda
Hi Team, We have our application which uses VPPCOM sessions to read and write some packets. We have one more requirement that Application uses Vpp-binary api and provide some information to our own plugin. When we try calling this binary apis without VPPCOM session started or running, the VPP Bi

Re: [vpp-dev] Distributing VPPCOM TX sessions to different worker thread #vnet #vppcom #TxBuff

2020-09-25 Thread RaviKiran Veldanda
Thanks Florin, I am seeing maximum 12G with 1.5kB Datagrams. Not able to achieve 20Gbps. I will explore the option you provided. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17520): https://lists.fd.io/g/vpp-dev/message/17520 Mute This Topic: htt

Re: [vpp-dev] Distributing VPPCOM TX sessions to different worker thread #vnet #vppcom #TxBuff

2020-09-25 Thread RaviKiran Veldanda
Thanks Florin for your response Please find my answers below 1> I opened the UDP sessions with vppcom_session_connect and these are always for TX and it will not receive any data. 2> No there is no sent traffic on these. I can try this part. 3> Actually the throughput as you know depends on differ

[vpp-dev] Distributing VPPCOM TX sessions to different worker thread #vnet #vppcom #TxBuff

2020-09-25 Thread RaviKiran Veldanda
Hi Team, We are planning to use VPP for throughput enhancement with our Applications. However I found a bottleneck in TX side. So our application is placed like this VPP RX Interface--> VPP Memif --> Our Application --> VPPCOM UDP session --> VPP TX Interface. The RX part we are not seeing issue

[vpp-dev] Can one memif have multiple sockets

2020-07-01 Thread RaviKiran Veldanda
Hi Team, I realized that memif and corresponding sockets are tightly coupled. Means for example memif1 --> /run/vpp/memif1.sock --> application. We can not have multiple sockets for memif1, is my understanding correct? memif1 --> /run/vpp/memif1.sock if its already mapped, then we can not create m

Re: [vpp-dev] Sub Interface/VLAN receiving packets directly from the Interface and multi thread approach

2020-06-23 Thread RaviKiran Veldanda
Hi Team, Any advice or pointer helps us to progress on this issue. //Ravi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16789): https://lists.fd.io/g/vpp-dev/message/16789 Mute This Topic: https://lists.fd.io/mt/74987897/21656 Group Owner: vpp-dev+

[vpp-dev] Sub Interface/VLAN receiving packets directly from the Interface and multi thread approach

2020-06-19 Thread RaviKiran Veldanda
[Edited Message Follows] Hi Team, I have written a plugin attached to device_input and running before ethernet_input. I am receiving all the packets for that particular physical interface. Actually this is working as we expected and okay. Now I have a requirement to get packets only for a parti

[vpp-dev] Sub Interface/VLAN receiving packets directly from the Interface and multi thread approach

2020-06-19 Thread RaviKiran Veldanda
Hi Team, I have written a plugin attached to device_input and running before ethernet_input. I am receiving all the packets for that particular physical interface. Actually this is working as we expected and okay. Now I have a requirement to get packets only for a particular sub interface/VLAN

Re: [vpp-dev] [discuss] sw_if_index in vent_buffer giving wrong IP address with ip_interface_address_get_address

2020-06-19 Thread RaviKiran Veldanda
uffer(b)->sw_if_index[VLIB_*TX*] to the tx interface sw_if_index. > > > > HTH... Dave > > > > *From:* RaviKiran Veldanda > *Sent:* Friday, June 19, 2020 1:47 PM > *To:* Dave Barach (dbarach) > *Subject:* Re: [discuss] sw_if_index in vent_buffer giving wrong IP &g