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

2018-07-27 Thread Elo, Matias (Nokia - FI/Espoo)
> On 26 Jul 2018, at 21:24, gyanesh patra wrote: > > I verified the throughput over the link with/without this debug message. > With DEBUG message: 10-15 Mbps > without DEBUG message: 1500 Mbps > > Due to this debug message to the stdout, the throughput drops to the minimum > and the latency

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

2018-07-27 Thread Maxim Uvarov
On 26 July 2018 at 21:24, gyanesh patra wrote: > I verified the throughput over the link with/without this debug message. > With DEBUG message: 10-15 Mbps > without DEBUG message: 1500 Mbps > > Due to this debug message to the stdout, the throughput drops to the > minimum and the latency can't be

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

2018-07-26 Thread gyanesh patra
I verified the throughput over the link with/without this debug message. With DEBUG message: 10-15 Mbps without DEBUG message: 1500 Mbps Due to this debug message to the stdout, the throughput drops to the minimum and the latency can't be calculated properly too. Should i just remove the debug mes

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

2018-07-26 Thread Maxim Uvarov
On 26 July 2018 at 16:01, gyanesh patra wrote: > 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

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-25 Thread Elo, Matias (Nokia - FI/Espoo)
> On 25 Jul 2018, at 17:11, Maxim Uvarov wrote: > > For quick look it looks like mtu is not set correctly on open(). Can you try > this patch: > > diff --git a/platform/linux-generic/pktio/netmap.c > b/platform/linux-generic/pktio/netmap.c > index 0da2b7a..d4db0af 100644 > --- a/platform/li

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

2018-07-25 Thread Maxim Uvarov
For quick look it looks like mtu is not set correctly on open(). Can you try this patch: diff --git a/platform/linux-generic/pktio/netmap.c b/platform/linux-generic/pktio/netmap.c index 0da2b7a..d4db0af 100644 --- a/platform/linux-generic/pktio/netmap.c +++ b/platform/linux-generic/pktio/netma

[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