Re: [lng-odp] latency calulation with netmap pkt i/o fails with oversized packet debug msg
> 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/linux-generic/pktio/netmap.c > +++ b/platform/linux-generic/pktio/netmap.c > @@ -539,6 +539,7 @@ static int netmap_open(odp_pktio_t id ODP_UNUSED, > pktio_entry_t *pktio_entry, > goto error; > } > pkt_nm->mtu = (mtu < buf_size) ? mtu : buf_size; > + pkt_priv(pktio_entry)->mtu = pkt_nm->mtu; pkt_netmap_t *pkt_nm = pkt_priv(pktio_entry), so this is unnecessary. >> >> >> Is this a know issue or am i missing something? >> As far as I can see the problem is caused by reading interface MTU incorrectly or netmap using unusually small buffers (assuming moongen sends packets smaller than MTU). The following patch should help debug the issue. -Matias diff --git a/platform/linux-generic/pktio/netmap.c b/platform/linux-generic/pktio/netmap.c index 0da2b7afd..3e0a17542 100644 --- a/platform/linux-generic/pktio/netmap.c +++ b/platform/linux-generic/pktio/netmap.c @@ -538,6 +538,10 @@ static int netmap_open(odp_pktio_t id ODP_UNUSED, pktio_entry_t *pktio_entry, ODP_ERR("Unable to read interface MTU\n"); goto error; } + + ODP_DBG("MTU: %" PRIu32 "\n", mtu); + ODP_DBG("NM buf_size: %" PRIu32 "\n", buf_size); + pkt_nm->mtu = (mtu < buf_size) ? mtu : buf_size; /* Check if RSS is supported. If not, set 'max_input_queues' to 1. */
Re: [lng-odp] latency calulation with netmap pkt i/o fails with oversized packet debug msg
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/netmap.c @@ -539,6 +539,7 @@ static int netmap_open(odp_pktio_t id ODP_UNUSED, pktio_entry_t *pktio_entry, goto error; } pkt_nm->mtu = (mtu < buf_size) ? mtu : buf_size; + pkt_priv(pktio_entry)->mtu = pkt_nm->mtu; /* Check if RSS is supported. If not, set 'max_input_queues' to 1. */ if (rss_conf_get_supported_fd(sockfd, netdev, &hash_proto) == 0) { @@ -836,7 +837,8 @@ static inline int netmap_recv_desc(pktio_entry_t *pktio_entry, if (odp_likely(ring->slot[slot_id].len <= mtu)) { slot_tbl[num_rx].buf = buf; slot_tbl[num_rx].len = ring->slot[slot_id].len; - ODP_DBG("dropped oversized packet\n"); + ODP_DBG("dropped oversized packet %d %d\n", + ring->slot[slot_id].len, mtu); num_rx++; } ring->cur = nm_ring_next(ring, slot_id); On 25.07.2018 16:59, gyanesh patra wrote: 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_simple eth5 eth6 01:02:03:04:05:06 07:08:09:0a:0b:0c pktio/netmap.c:839:netmap_recv_desc():dropped oversized packet pktio/netmap.c:839:netmap_recv_desc():dropped oversized packet --- ---MOONGEN--- root@ubuntu:/home/ubuntu# ./MoonGen/build/MoonGen ./MoonGen/examples/l2-load-latency.lua 0 1 --- ---ubunut-- root@test:# ifconfig eth5 eth5 Link encap:Ethernet HWaddr a0:36:9f:3e:95:34 inet6 addr: fe80::a236:9fff:fe3e:9534/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:8288 errors:21532426 dropped:*1229684107* overruns:0 frame:21532426 TX packets:28 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:742932 (742.9 KB) TX bytes:2376 (2.3 KB) root@test:# ifconfig eth6 eth6 Link encap:Ethernet HWaddr a0:36:9f:3e:95:36 inet6 addr: fe80::a236:9fff:fe3e:9536/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:2780 errors:0 dropped:554038705 overruns:0 frame:0 TX packets:38 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:166800 (166.8 KB) TX bytes:3276 (3.2 KB) When i try the same thing while compiling ODP with DPDK, it works fine. I am getting error in case of Netmap packet i/o. Is this a know issue or am i missing something? Thanks Gyanesh
[lng-odp] latency calulation with netmap pkt i/o fails with oversized packet debug msg
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_simple eth5 eth6 01:02:03:04:05:06 07:08:09:0a:0b:0c pktio/netmap.c:839:netmap_recv_desc():dropped oversized packet pktio/netmap.c:839:netmap_recv_desc():dropped oversized packet --- ---MOONGEN--- root@ubuntu:/home/ubuntu# ./MoonGen/build/MoonGen ./MoonGen/examples/l2-load-latency.lua 0 1 --- ---ubunut-- root@test:# ifconfig eth5 eth5 Link encap:Ethernet HWaddr a0:36:9f:3e:95:34 inet6 addr: fe80::a236:9fff:fe3e:9534/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:8288 errors:21532426 dropped:*1229684107* overruns:0 frame:21532426 TX packets:28 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:742932 (742.9 KB) TX bytes:2376 (2.3 KB) root@test:# ifconfig eth6 eth6 Link encap:Ethernet HWaddr a0:36:9f:3e:95:36 inet6 addr: fe80::a236:9fff:fe3e:9536/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:2780 errors:0 dropped:554038705 overruns:0 frame:0 TX packets:38 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:166800 (166.8 KB) TX bytes:3276 (3.2 KB) When i try the same thing while compiling ODP with DPDK, it works fine. I am getting error in case of Netmap packet i/o. Is this a know issue or am i missing something? Thanks Gyanesh
[lng-odp] [Linaro/odp] 6d91fe: thread: increase ODP_THREAD_COUNT_MAX to 256
Branch: refs/heads/master Home: https://github.com/Linaro/odp Commit: 6d91fe717d2e62e048fb8837a67cc1118a3113d1 https://github.com/Linaro/odp/commit/6d91fe717d2e62e048fb8837a67cc1118a3113d1 Author: Matias Elo Date: 2018-07-25 (Wed, 25 Jul 2018) Changed paths: M include/odp/api/abi-default/thread.h Log Message: --- thread: increase ODP_THREAD_COUNT_MAX to 256 Signed-off-by: Matias Elo Reviewed-by: Bill Fischofer Signed-off-by: Maxim Uvarov **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
Re: [lng-odp] ODP logo to use in academic publications
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:38, gyanesh patra wrote: > >> >> 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
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:38, gyanesh patra wrote: > > 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 >
[lng-odp] ODP logo to use in academic publications
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