[lng-odp] VLAN rx-offload set/unset to handle vlan HDR removal

2016-04-28 Thread gyanesh patra
Hi, How does ODP handles the vlan header removal in accordance to vlan-rx-offload feature in linux/hardware? Are there any APIs for: 1. To know if vlan header is removed, if the offload feature is set or not? 2. What is the vlan value if the HDR is removed? 3. How to set/unset the vlan

[lng-odp] "Message too long" error message with Iperf testing

2016-05-16 Thread gyanesh patra
I have a simple *standalone application* using ODP. It receives packets on one interface and do a broadcasting to all other interfaces. But many a times i see this error message when i try to calculate the throughput using IPerf tool. pktio/socket_mmap.c:263:pkt_mmap_v2_tx():sendto(pkt m

Re: [lng-odp] "Message too long" error message with Iperf testing

2016-05-16 Thread gyanesh patra
I am using the linux-generic with ODP v1.9.0.0 I am just running Iperf with default settings. But i will try similar experiments by turning off the segment offloading on the target NIC. Thank you for the pointer. Regards, Gyanesh Patra > On May 16, 2016, at 21:21, Bill Fischofer wr

[lng-odp] LPM Algorithm APIs in ODP

2016-04-17 Thread gyanesh patra
I encountered an old email chain about the different LPM algorithm for ODP. I am curious if anyone has released or working on something for l3 forwarding/routing. Here is the link to the mail chain: https://lists.linaro.org/pipermail/lng-odp/2015-August/014717.html If any work is going on, then po

Re: [lng-odp] LPM Algorithm APIs in ODP

2016-09-20 Thread gyanesh patra
o hash code into ODP helper. > >About the LPM code we have already a 16-8-8 implementation. Now we are > working on the code to fit it into ODP architecture. But we have not > submitted any code for LPM yet. > >If there is a requirement, we can switch to focus on LPM code. &

[lng-odp] query regarding cuckoo hash table support

2016-09-20 Thread gyanesh patra
Hi, I am unable to find the cuckoo hash files in the recent code base. Is the feature is removed from ODP code base or renamed to something else? Thank you Gyanesh

[lng-odp] ODP installation issues on Cavium ThunderX

2017-01-19 Thread Gyanesh Patra
equisites details? I am using the latest master branch of ODP. >>> lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial >>> gcc --version gcc (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 Thanks, P Gyanesh Patra

Re: [lng-odp] ODP installation issues on Cavium ThunderX

2017-01-19 Thread Gyanesh Patra
There is no link available for the "Cavium implementation" by Support Account on the ODP download page. How can i have access to the code and also corresponding toolchain if needed? P Gyanesh Patra On Thu, 19 Jan 2017 at 14:33 Mike Holmes < mailto:Mike Holmes > wrote: a, p

[lng-odp] ODP install error with dpdk 16.07

2017-01-28 Thread Gyanesh Patra
target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory 'odp/test' Makefile:497: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 I have tried with ODP master branch with DPDK 17 and DPDK 16.07 . I am facing the same problem. This is the ODP repo, not the odp-dpdk repo. P Gyanesh Patra

[lng-odp] odp-dpdk gives error with "configure" command

2017-01-28 Thread Gyanesh Patra
configure: error: in `/home/macsad/pktio/odp-dpdk': configure: error: "can't find DPDK headers" See `config.log' for more details macsad@india:~/pktio/odp-dpdk$  P Gyanesh Patra

Re: [lng-odp] odp-dpdk gives error with "configure" command

2017-01-31 Thread Gyanesh Patra
Thank you. It works fine now. P Gyanesh Patra On Mon, 30 Jan 2017 at 05:54 Elo Matias (Nokia - FI/Espoo) < mailto:Elo Matias (Nokia - FI/Espoo) > wrote: a, pre, code, a:link, body { word-wrap: break-word !important; } > On 28 Jan 2017, at 23:38, Gyanesh Patra < mailto

Re: [lng-odp] ODP install error with dpdk 16.07

2017-01-31 Thread Gyanesh Patra
Thanks, with this configuration it is working. My doubt here is: Why we are not using shared lib, and abi-compat ?? P Gyanesh Patra On Mon, 30 Jan 2017 at 05:37 Elo Matias (Nokia - FI/Espoo) < mailto:Elo Matias (Nokia - FI/Espoo) > wrote: a, pre, code, a:link, body { word-wrap: brea

[lng-odp] Fundamental difference between ODP and SAI (Switch Abstraction Interface) from OCP group

2015-08-05 Thread gyanesh patra
Hi All, I have seen ODP and SAI have good traction in networking community with very rapid contribution and development. Can anyone please explain how they are different from each other? What is the fundamental difference in their goal? Thanks P Gyanesh Kumar Patra

[lng-odp] issues with usage of mellanox 100G NICs with ODP & ODP-DPDK

2017-11-08 Thread gyanesh patra
Hi, I am trying to run ODP & ODP-DPDK examples on our server with mellanox 100G NICs. I am using the odp_l2fwd example. While running the example, I am facing some issues. -> When I run "ODP" example using the if names given by kernel as arguments, I am not getting enough throughput.(the value is v

Re: [lng-odp] issues with usage of mellanox 100G NICs with ODP & ODP-DPDK

2017-11-08 Thread gyanesh patra
dpdk too. Is there anything i am missing? P Gyanesh Kumar Patra On Wed, Nov 8, 2017 at 5:22 PM, Maxim Uvarov wrote: > is Mellanox pmd compiled in? > > Maxim. > > On 11/08/17 17:58, gyanesh patra wrote: > > Hi, > > I am trying to run ODP & ODP-DPDK examples on o

Re: [lng-odp] issues with usage of mellanox 100G NICs with ODP & ODP-DPDK

2017-11-08 Thread gyanesh patra
wd example too?? P Gyanesh Kumar Patra On Wed, Nov 8, 2017 at 7:56 PM, Maxim Uvarov wrote: > On 11/08/17 19:32, gyanesh patra wrote: > > I am not sure what you mean. Can you please elaborate? > > > > As i mentioned before I am able to run dpdk examples. Hence the driver

Re: [lng-odp] issues with usage of mellanox 100G NICs with ODP & ODP-DPDK

2017-11-09 Thread gyanesh patra
Wed, Nov 8, 2017 at 7:56 PM, Maxim Uvarov wrote: > On 11/08/17 19:32, gyanesh patra wrote: > > I am not sure what you mean. Can you please elaborate? > > > > As i mentioned before I am able to run dpdk examples. Hence the drivers > > are available and working fine

Re: [lng-odp] issues with usage of mellanox 100G NICs with ODP & ODP-DPDK

2017-11-10 Thread gyanesh patra
teps should also work with odp linux-generic. The >> main difference is configure script. With linux-generic you use >> '--with-dpdk-path=' option and optionally >> --enable-dpdk-zero-copy flag. The supported dpdk version is v17.08. >> > >> > -Matias >

Re: [lng-odp] issues with usage of mellanox 100G NICs with ODP & ODP-DPDK

2017-11-10 Thread gyanesh patra
main difference is configure script. With linux-generic you use > '--with-dpdk-path=' option and optionally > --enable-dpdk-zero-copy flag. The supported dpdk version is v17.08. > > > > -Matias > > > >> On 9 Nov 2017, at 10:34, gyanesh patra > wrote: >

Re: [lng-odp] issues with usage of mellanox 100G NICs with ODP & ODP-DPDK

2017-11-10 Thread gyanesh patra
t; -Matias > > > On 9 Nov 2017, at 10:34, gyanesh patra wrote: > > > > Hi Maxim, > > Thanks for the help. I managed to figure out the configuration error and > it > > works fine for "ODP-DPDK". The MLX5 pmd was not included properly. > > > >

[lng-odp] ODP always falls back to normal pages instead of using hugepages

2017-11-13 Thread gyanesh patra
Hi, I have noticed that ODP application always check for hugepages and fails though hugepage is configured in the system. And it runs normally using normal pages. I am not sure it affects the performance or not. But if it does, how can i make sure that ODP application uses the hugepages??? I am ad

[lng-odp] Compilation flags for release build and performance evaluation

2018-01-31 Thread gyanesh patra
Hi, I am curious if there are any specific flags available for ODP for release builds or performance evaluation? Also where can i find the list of features i can disable by passing to configure scripts? I found couple of options in odp-thunderx project such as "-DODP_DISABLE_CLASSIFICATION and -D

[lng-odp] unexpected packet handling behavior with dpdk pktio support

2018-02-05 Thread gyanesh patra
Regards, Gyanesh Patra PhD Candidate Unicamp University

Re: [lng-odp] unexpected packet handling behavior with dpdk pktio support

2018-02-06 Thread gyanesh patra
; >> On 6 Feb 2018, at 13:55, Elo, Matias (Nokia - FI/Espoo) < > matias@nokia.com> wrote: > >> > >> > >> > >>> On 5 Feb 2018, at 19:42, Bill Fischofer > wrote: > >>> > >>> Thanks, Gyanesh, that does sound like a bug. +cc

Re: [lng-odp] unexpected packet handling behavior with dpdk pktio support

2018-02-06 Thread gyanesh patra
9:55 AM, Elo, Matias (Nokia - FI/Espoo) < matias@nokia.com> wrote: > > > > On 5 Feb 2018, at 19:42, Bill Fischofer > wrote: > > > > Thanks, Gyanesh, that does sound like a bug. +cc Matias: Can you comment > on this? > > > > On Mon, Feb 5, 2018 at 5:09

Re: [lng-odp] unexpected packet handling behavior with dpdk pktio support

2018-02-06 Thread gyanesh patra
you using for the tests ? > > Regards > Ilias > > On 6 February 2018 at 19:00, gyanesh patra > wrote: > > Hi, > > I tried with netmap, dpdk and dpdk with zero-copy enabled. All of them > have > > the same behaviour. I also tried with (200*2048) as packet pool

Re: [lng-odp] unexpected packet handling behavior with dpdk pktio support

2018-02-07 Thread gyanesh patra
re > identical they will all end up in the same input queue, which would explain > what you are seeing. > > -Matias > > > > On 6 Feb 2018, at 19:00, gyanesh patra wrote: > > > > Hi, > > I tried with netmap, dpdk and dpdk with zero-copy enabled. All of the

Re: [lng-odp] unexpected packet handling behavior with dpdk pktio support

2018-02-07 Thread gyanesh patra
> > > > On 7 Feb 2018, at 11:14, gyanesh patra wrote: > > > > Thanks for the info. I verified this with both odp 1.16 and odp 1.17 > with same behavior. > > The traffic consists of diff Mac and ip addresses. > > Without the busy loop, I could see that

Re: [lng-odp] unexpected packet handling behavior with dpdk pktio support

2018-02-07 Thread gyanesh patra
rte_eth_dev_socket_id(port_ >> id), >> -NULL, pkt_dpdk->pkt_pool); >> +rxconf, pkt_dpdk->pkt_pool); >> if (ret < 0) { >> ODP_ERR(&qu

Re: [lng-odp] unexpected packet handling behavior with dpdk pktio support

2018-02-07 Thread gyanesh patra
Is it possible to fix for netmap too in similar fashion? P Gyanesh Kumar Patra On Wed, Feb 7, 2018 at 1:19 PM, Elo, Matias (Nokia - FI/Espoo) < matias@nokia.com> wrote: > The PR is now available: https://github.com/Linaro/odp/pull/458 > > -Matias > > > On 7 Feb 2018,

Re: [lng-odp] issues with usage of mellanox 100G NICs with ODP & ODP-DPDK

2018-03-06 Thread gyanesh patra
lper: ODP worker thread started as linux pthread. (pid=43825) [02] num pktios 1, PKTIN_DIRECT, PKTOUT_DIRECT pktio/dpdk.c:1538:dpdk_start():Queue setup failed: err=-12, port=0 odp_l2fwd.c:1671:main():Error: unable to start 0 ubuntu@ubuntu:/home/gyanesh/odp/test/performance# If any other logs or detai

Re: [lng-odp] lng-odp Digest, Vol 48, Issue 37

2018-03-17 Thread gyanesh patra
Hi Matias, Thanks for the patch to compile ODP with MLX drivers. Finally, i got to try out the patch, but it is not working for me. I am still getting the same error while running 'test/performance/odp_l2fwd'. My configuration details are : Driver: MLNX_OFED_LINUX-4.2-1.0.0.0 (OFED-4.2-1.0.0) Int

Re: [lng-odp] Bug 3657

2018-03-28 Thread gyanesh patra
Hi Bill, I tried with Matias' suggestions but without success. P Gyanesh Kumar Patra On Mon, Mar 26, 2018 at 4:16 PM, Bill Fischofer wrote: > Hi Gyanesh, > > Have you had a chance to look at https://bugs.linaro.org/ > show_bug.cgi?id=3657 and see if Matias' suggestions are helpful to you? > > T

Re: [lng-odp] Bug 3657

2018-03-28 Thread gyanesh patra
ue index %u", >(void *)dev, idx); >priv_unlock(priv); > return -ENOMEM; > } > } > > The reported -12 error code is -ENOMEM so I'd say the issue is some > sort of memory alloc

Re: [lng-odp] Suspected SPAM - Re: Bug 3657

2018-04-10 Thread gyanesh patra
> memory related issue. > > > > -Matias > > > > > >> On 28 Mar 2018, at 18:15, gyanesh patra > wrote: > >> > >> Yes, it is. > >> The error is the same. I did replied that the only difference I see is > with Ubuntu version and

Re: [lng-odp] Bug 3657

2018-04-12 Thread gyanesh patra
> Hi, > > Have you tested the latest odp-dpdk code? It uses different shm > implementation, so at least we could rule that one out. > > -Matias > > > > On 10 Apr 2018, at 21:37, gyanesh patra > wrote: > > > > Hi Matias, > > > > The Mellanox in

Re: [lng-odp] Bug 3657

2018-04-12 Thread gyanesh patra
t; >> > >> /* first argument is facility log, simply bind it to odpdpdk for > now.*/ > >> - cmd_len = snprintf(full_cmd, cmd_len, "odpdpdk -c %s -m %d %s", > >> - mask_str, DPDK_MEMORY_MB, cmdline); > >>

Re: [lng-odp] Suspected SPAM - Re: Bug 3657

2018-04-12 Thread gyanesh patra
cmd_len = snprintf(full_cmd, cmd_len, "odpdpdk -c %s -m %d,%d %s", > + mask_str, DPDK_MEMORY_MB, DPDK_MEMORY_MB, > cmdline); > > for (i = 0, dpdk_argc = 1; i < cmd_len; ++i) { > if (isspace(full_cmd[i])) > > &

Re: [lng-odp] Bug 3657

2018-04-12 Thread gyanesh patra
rformance impact. > > -Matias > > > On 12 Apr 2018, at 15:55, gyanesh patra > wrote: > > > > I tried this trick and it worked on the odp-dpdk repository. > > > > What will be the preferred method? > > - ODP_PKTIO_DPDK_PARAMS="-m 512,512" >

[lng-odp] ODP logo to use in academic publications

2018-07-25 Thread gyanesh patra
​ Hi, I am looking for the ODP Logo in eps format to use in academic publications. I have only encountered png files. Is there any goto location where i can find the logo? Thanks, P Gyanesh Kumar Patra

Re: [lng-odp] ODP logo to use in academic publications

2018-07-25 Thread gyanesh patra
Thanks a lot for the pointer. Regards, P Gyanesh Kumar Patra On Wed, Jul 25, 2018 at 9:51 AM Maxim Uvarov wrote: > main odp project has: > ./doc/images/ODP-Logo-HQ.svg > > I think it should be possible to convert it to eps. > > Maxim. > > On 25 July 2018 at 15:

[lng-odp] latency calulation with netmap pkt i/o fails with oversized packet debug msg

2018-07-25 Thread gyanesh patra
I am trying to run moongen to calculate the latency in the link. I compiled ODP with netmap. I run example/l2-load-latency.lua from moongen and odp_l2fwd_simple from ODP. I found that most of the packets are dropped at the rx side of ODP. ODP-- root@test:~/gyn/odp/buildN/bin# ./odp_l2fwd_s

Re: [lng-odp] latency calulation with netmap pkt i/o fails with oversized packet debug msg

2018-07-26 Thread gyanesh patra
Hi, Here is the output for the debug messages as advised: For this code: -- 541 ODP_DBG("MTU: %" PRIu32 "\n", mtu); 542 ODP_DBG("NM buf_size: %" PRIu32 "\n", buf_size); 543 pkt_nm->mtu = (mtu < buf_size) ? mtu : buf_size; Output: - netmap interface: eth

Re: [lng-odp] latency calulation with netmap pkt i/o fails with oversized packet debug msg

2018-07-26 Thread gyanesh patra
debug message from the netmap.c file? Does it serve any purpose? Regards, Gyanesh On Thu, Jul 26, 2018 at 11:25 AM Maxim Uvarov wrote: > > > On 26 July 2018 at 16:01, gyanesh patra wrote: > >> Hi, >> Here is the output for the debug messages as advised: >> For t

Re: [lng-odp] Suspected SPAM - Re: latency calulation with netmap pkt i/o fails with oversized packet debug msg

2018-07-27 Thread gyanesh patra
Thanks, I'll check it out. P Gyanesh Kumar Patra On Fri, Jul 27, 2018 at 4:45 AM Elo, Matias (Nokia - FI/Espoo) < matias@nokia.com> wrote: > > >> On 26 Jul 2018, at 21:24, gyanesh patra > wrote: > >> > >> I verified the throughput over the lin

[lng-odp] ODP crash at buffer_alloc_multi() while inserting into iplookuptable

2018-09-10 Thread gyanesh patra
Hi, ODP is crashing at buffer_alloc_multi() while inserting into iplookuptable. The backtrace is as below: (gdb) bt #0 buffer_alloc_multi (pool=0x7fffd5420c00, buf_hdr=buf_hdr@entry=0x7fff55fa8bb0, max_num=max_num@entry=1) at odp_pool.c:700 #1 0x00433083 in odp_buffer_alloc (pool_hdl=pool_

[lng-odp] odp with dpdk pktio gives error with larger packets - 'Segmented buffers not supported'

2018-10-16 Thread gyanesh patra
Hi, I am facing problem while using ODP master branch with DPDK pktio & zero-pkt-copy as below: ODP/bin/# ./odp_l2fwd_simple ./odp_l2fwd_simple pktio/dpdk.c:851:mbuf_to_pkt_zero():Segmented buffers not supported pktio/dpdk.c:851:mbuf_to_pkt_zero():Segmented buffers not supported pktio/dpdk.c:851:

Re: [lng-odp] odp with dpdk pktio gives error with larger packets - 'Segmented buffers not supported'

2018-10-16 Thread gyanesh patra
mple: ./test/performance/odp_l2fwd > > Best Regards, > Maxim. > > > On Tue, 16 Oct 2018 at 20:49, gyanesh patra > wrote: > >> Hi, >> I am facing problem while using ODP master branch with DPDK pktio & >> zero-pkt-copy as below: >> >> ODP/bin

Re: [lng-odp] odp with dpdk pktio gives error with larger packets - 'Segmented buffers not supported'

2018-10-18 Thread gyanesh patra
Hi Matias, This PR 731 fixed the issue. Thanks a lot. Regards, P Gyanesh Kumar Patra On Thu, Oct 18, 2018 at 4:40 AM Elo, Matias (Nokia - FI/Espoo) < matias@nokia.com> wrote: > Thanks! I think I figured out the problem. Some DPDK NICs require that the > buffer length is at least 2kB + headr

Re: [lng-odp] ODP crash at buffer_alloc_multi() while inserting into iplookuptable

2018-10-18 Thread gyanesh patra
ion. >>> >>> I have no idea if it's your case or not. Probably not because you have >>> buffer_alloc_multi in stack trace and I do not see that. >>> >>> You can test this patch: >>> https://github.com/Linaro/odp/pull/700 >>> >>

[lng-odp] packet pool create failed on odp-thunder

2018-10-25 Thread gyanesh patra
Hi, I am trying to run the pktgen example on odp-thunderx. It worked for a couple of times. After that it keeps on failing with error as below. This persists across reboot. I am running this over Ubuntu 18.04.1 LTS" root@cavium:~/odp-thunderx/build/bin# ./pktgen -I vfio:30 -m r ODP system info --

[lng-odp] can't configure ODP with DPDK pktio using DPDK package in Ubutnu

2018-10-29 Thread gyanesh patra
Hi, I see that newer ubuntu has an updated version of DPDK. How can I build/run ODP with this DPDK in ubuntu? For me it fails at configure step. *Steps:* 1)Install dpdk-dev, libdpdk-dev, dpdk 2) ./configure --prefix=/root/odp/build --with-dpdk-path=/usr/share/dpdk/arm64-armv8a-linuxapp-gcc/ *I a