I think you should run step-by-step with gdb to see exactly what is failing. As 
it works on a recent system but not on an old one, I suspect an issue with an 
unsupported feature (eg. special flag in syscall or similar)...

Best
ben

> -----Original Message-----
> From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Pragya Nand
> Bhagat
> Sent: Saturday, May 21, 2022 15:30
> To: pragya.nand.bhaga...@gmail.com
> Cc: vpp-dev@lists.fd.io
> Subject: Re: [vpp-dev] Help needed in bringing up memif with shm_open.
> 
> Hi,
> 
> I'm able to send and receive packet when I compile with gcc version
> (Ubuntu 8.4.0-1ubuntu1~18.04) , GLIBC 2.27 and kernel 5.4.0-66-lowlatency.
> but when I compile with gcc gcc (GCC) 5.4.0, GLIBC 2.17 , and kernel
> 3.10.0-rt56 it fails at memif_buffer_alloc.
> Any idea why this behaviour can be .
> 
> Thanks for all the suggestions and insights.
> 
> Thank You
> Pragya Nand
> 
> On Fri, May 20, 2022 at 10:26 AM Pragya Nand Bhagat via lists.fd.io
> <http://lists.fd.io>  <pragya.nand.bhagat.1=gmail....@lists.fd.io
> <mailto:gmail....@lists.fd.io> > wrote:
> 
> 
>       Hi All,
> 
>       I'm trying to connect two existing container application by using
> memif.
>       Unfortunately these are old codes and i'm stuck with old glibc and
> kernel .
>       So I'm trying to use shm_open instead of memfd_create .
> 
>       The issue that I'm facing is are as follows :
> 
>       It throws following error while trying to do tx :
>       memif_tx_burst : Invalid argument. (This comes from src/main.c 1746
> - 1750)
>       When I try to do a rx I get the interrupt but the received packet
> is 0.
>       It would be a great help if someone knows changes which are
> required for libmemif to work with shm_open.
> 
>       I'm working on same and will share changes if it works.
> 
>       Thank You
>       Pragya Nand Bhagat
> 
> 
> 

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

Reply via email to