Hi Balaji,

I see that the problem is in icmp_responder app, as it isn't refilling queues 
after connecting. It should call 'memif_refill_queue' in 'on_connect' callback. 
However, another issue

appeared after I refilled the queues. I'll be looking into this. Meanwhile I 
encourage you to take a look at icmp_reponder-epoll example.


Regards,

Jakub

________________________________
From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> on behalf of balaji kn 
<balaji.s...@gmail.com>
Sent: Wednesday, August 28, 2019 1:33 PM
To: vpp-dev
Subject: [vpp-dev] issue is memif sample application icmp_responder in VPP 19.04

Hello All,

I am using VPP 19.04 version. As per my analysis icmp_responder application is 
receiving interrupts but memif_rx_burst API is always giving number of buffers 
as 0.

Below are logs collected on icmp_responder.

root@balaji:~# ./icmp_responder
INFO: tx qid: 0
LIBMEMIF EXAMPLE APP: ICMP_Responder
==============================
libmemif version: 2.1
memif version: 512
        use CTRL+C to exit
MEMIF DETAILS
==============================
        interface name: memif_connection
        app name: ICMP_Responder
        remote interface name:
        remote app name:
        id: 0
        secret: (null)
        role: slave
        mode: ethernet
        socket filename: /run/vpp/memif.sock
        socket filename: /run/vpp/memif.sock
        rx queues:
        tx queues:
        link: up
INFO: memif connected!
ICMP_Responder:on_interrupt:289: interrupted
ICMP_Responder:on_interrupt:298: received 0 buffers. 0/256 alloc/free buffers
ICMP_Responder:icmpr_buffer_alloc:237: allocated 0/0 buffers, 256 free buffers
ICMP_Responder:on_interrupt:320: freed 0 buffers. 0/256 alloc/free buffers
ICMP_Responder:icmpr_tx_burst:252: tx: 0/0

Do let me know if i am missing anything.

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

View/Reply Online (#13856): https://lists.fd.io/g/vpp-dev/message/13856
Mute This Topic: https://lists.fd.io/mt/33056182/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-
  • ... balaji kn
    • ... Jakub Grajciar -X (jgrajcia - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io

Reply via email to