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://
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/
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
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
[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
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
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
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
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
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 =
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
[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
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
[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
[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
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
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
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
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
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
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
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
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
[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
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
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
[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
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
[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
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
[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
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
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
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
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
[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
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
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
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
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
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
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
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
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
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+
[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
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
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
48 matches
Mail list logo