[lng-odp] [Linaro/odp] 083b31: linux-gen: buffer: apply modular framework and cre...

2017-09-04 Thread GitHub
Branch: refs/heads/cloud-dev Home: https://github.com/Linaro/odp Commit: 083b31d9200f5cff4794511f2a9f865506c706ef https://github.com/Linaro/odp/commit/083b31d9200f5cff4794511f2a9f865506c706ef Author: Kevin Wang Date: 2017-09-05 (Tue, 05 Sep 2017)

Re: [lng-odp] [PATCH API-NEXT v4] api: pool: add min and max headroom in pool capability

2017-09-04 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_pool.c line 9 @@ -348,6 +348,11 @@ static odp_pool_t pool_create(const char *name, odp_pool_param_t *params, break; case ODP_POOL_PACKET: + if

[lng-odp] [Linaro/odp] 421846: helper: chksum: add few guarding conditions

2017-09-04 Thread GitHub
Branch: refs/heads/master Home: https://github.com/Linaro/odp Commit: 42184679185ce0c979e065349360167e3fce6ca0 https://github.com/Linaro/odp/commit/42184679185ce0c979e065349360167e3fce6ca0 Author: Dmitry Eremin-Solenikov Date: 2017-09-04

Re: [lng-odp] Compiler Barrier API

2017-09-04 Thread Maxim Uvarov
On 09/04/17 18:09, Andriy Berestovskyy wrote: > Hey guys, > There are few __asm__ volatile("" ::: "memory") in the generic ODP code, > but seems like there is no API for the compiler barrier. > > Shall we add one to the api/sync.h? > > Andriy Hello Andriy, Do you have use case for that? In my

[lng-odp] [Linaro/odp] 29139f: configure: enable all tests by default

2017-09-04 Thread GitHub
Branch: refs/heads/master Home: https://github.com/Linaro/odp Commit: 29139f725a7d6f2bd9e57a60abf1e55f4ac64c97 https://github.com/Linaro/odp/commit/29139f725a7d6f2bd9e57a60abf1e55f4ac64c97 Author: Dmitry Eremin-Solenikov Date: 2017-09-04

[lng-odp] [PATCH API-NEXT v4 2/2] linux-generic: pool: implementation for min and max headroom

2017-09-04 Thread Github ODP bot
From: Balasubramanian Manoharan Adds minimum and maximum headroom in pool capability Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 152 (bala-manoharan:pool_headroom) **

[lng-odp] [PATCH API-NEXT v4 1/2] api: pool: add min and max headroom in capability

2017-09-04 Thread Github ODP bot
From: Balasubramanian Manoharan Adds pool minimum and maximum headroom in pool capability Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 152 (bala-manoharan:pool_headroom) **

[lng-odp] [PATCH API-NEXT v4 0/2] api: pool: add min and max headroom in pool capability

2017-09-04 Thread Github ODP bot
github /** Email created from pull request 152 (bala-manoharan:pool_headroom) ** https://github.com/Linaro/odp/pull/152 ** Patch: https://github.com/Linaro/odp/pull/152.patch ** Base sha: 91c0b58fc87ba0431241818758cea94438cd5498 ** Merge commit sha:

[lng-odp] [PATCH v7 1/1] odp-generator: Use clock related functions less when printing

2017-09-04 Thread Github ODP bot
From: Ilias Apalodimas Using odp_time_local() on each iteration consumes too much cpu for no reason. Netmap pktio reported a boost from ~550kpps to ~1.2Mpps when odp_generator was used as a receiver on 1Gbit links. Signed-off-by: Ilias Apalodimas

[lng-odp] [PATCH v7 0/1] odp-generator: Use clock related functions less when printing

2017-09-04 Thread Github ODP bot
Using odp_time_local() on each iteration consumes too much cpu for no reason Netmap pktio reported ~550kpps prior to this and ~1.2Mpps after the patch, when odp_generator was used as a receiver. Signed-off-by: Ilias Apalodimas ilias.apalodi...@linaro.org

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: example/generator/odp_generator.c line 314 @@ -742,6 +809,23 @@ static int gen_recv_thread(void *arg) continue; for (i = 0, pkt_cnt = 0; i < ev_cnt; i++) { pkt =

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c line 125 @@ -436,6 +440,97 @@ static inline int mbuf_to_pkt(pktio_entry_t *pktio_entry, return (i > 0 ? i : -1); } +static inline int packet_parse(void *l3_hdr, odp_bool_t *l3_proto_v4, +

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: example/generator/odp_generator.c line 322 @@ -742,6 +809,23 @@ static int gen_recv_thread(void *arg) continue; for (i = 0, pkt_cnt = 0; i < ev_cnt; i++) { pkt =

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c @@ -426,6 +430,96 @@ static inline int mbuf_to_pkt(pktio_entry_t *pktio_entry, return (i > 0 ? i : -1); } +static inline int packet_parse(void *l3_hdr, uint8_t *l3_proto_v4, +

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: example/generator/odp_generator.c line 33 @@ -116,6 +126,10 @@ static args_t *args; /** Barrier to sync threads execution */ static odp_barrier_t barrier; +/** Packet processing function types */ +typedef odp_packet_t (*setup_pkt_ref_t)(odp_pool_t,

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c line 88 @@ -436,6 +440,97 @@ static inline int mbuf_to_pkt(pktio_entry_t *pktio_entry, return (i > 0 ? i : -1); } +static inline int packet_parse(void *l3_hdr, odp_bool_t *l3_proto_v4, +

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c line 18 @@ -301,6 +301,48 @@ static struct rte_mempool_ops ops_stack = { MEMPOOL_REGISTER_OPS(ops_stack); +#define HAS_IP4_PROTO(m, proto) ((m->packet_type & RTE_PTYPE_L3_MASK) == proto) +#define HAS_IP4_PROTOS(m)

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/pktio/dpdk.c line 18 @@ -301,6 +301,48 @@ static struct rte_mempool_ops ops_stack = { MEMPOOL_REGISTER_OPS(ops_stack); +#define HAS_IP4_PROTO(m, proto) ((m->packet_type & RTE_PTYPE_L3_MASK) == proto) +#define

Re: [lng-odp] [PATCH API-NEXT v4] api: pool: add min and max headroom in pool capability

2017-09-04 Thread Github ODP bot
Balasubramanian Manoharan(bala-manoharan) replied on github web page: platform/linux-generic/odp_pool.c line 9 @@ -348,6 +348,11 @@ static odp_pool_t pool_create(const char *name, odp_pool_param_t *params, break; case ODP_POOL_PACKET: + if

Re: [lng-odp] [PATCH v3] dpdk pktio: enable hardware checksum support

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: platform/linux-generic/pktio/dpdk.c line 18 @@ -301,6 +301,48 @@ static struct rte_mempool_ops ops_stack = { MEMPOOL_REGISTER_OPS(ops_stack); +#define HAS_IP4_PROTO(m, proto) ((m->packet_type & RTE_PTYPE_L3_MASK) == proto) +#define HAS_IP4_PROTOS(m)

Re: [lng-odp] [PATCH API-NEXT v3] api: pool: add min and max headroom in pool capability

2017-09-04 Thread Github ODP bot
Balasubramanian Manoharan(bala-manoharan) replied on github web page: include/odp/api/spec/pool.h line 27 @@ -214,6 +222,15 @@ typedef struct odp_pool_param_t { defined by pool capability pkt.max_uarea_size. Specify as 0 if no user area is

Re: [lng-odp] [PATCH v5] odp-generator: Use clock related functions less when printing

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: example/generator/odp_generator.c line 23 @@ -786,8 +787,14 @@ static void print_global_stats(int num_workers) } cur = odp_time_local(); - if (odp_time_cmp(next, cur) > 0) + if

Re: [lng-odp] [PATCH v5] odp-generator: Use clock related functions less when printing

2017-09-04 Thread Github ODP bot
bogdanPricope replied on github web page: example/generator/odp_generator.c line 23 @@ -786,8 +787,14 @@ static void print_global_stats(int num_workers) } cur = odp_time_local(); - if (odp_time_cmp(next, cur) > 0) + if

Re: [lng-odp] [PATCH v2] linux-gen: socket: use segment data pointers in _tx_pkt_to_iovec()

2017-09-04 Thread Github ODP bot
Matias Elo(matiaselo) replied on github web page: platform/linux-generic/pktio/socket.c @@ -696,19 +696,23 @@ static int sock_mmsg_recv(pktio_entry_t *pktio_entry, int index ODP_UNUSED, static uint32_t _tx_pkt_to_iovec(odp_packet_t pkt, struct iovec

[lng-odp] [PATCH v2 0/1] linux-gen: socket: use segment data pointers in _tx_pkt_to_iovec()

2017-09-04 Thread Github ODP bot
A packet may not have valid L2 offset set, so odp_packet_l2_offset() cannot be used when transmitting packets. Signed-off-by: Matias Elo matias@nokia.com github /** Email created from pull request 158 (matiaselo:fix/socket_tx) **

[lng-odp] [PATCH v2 1/1] linux-gen: socket: don't use odp_packet_l2_offset() in _tx_pkt_to_iovec()

2017-09-04 Thread Github ODP bot
From: Matias Elo A packet may not have valid L2 offset set, so odp_packet_l2_offset() cannot be used when transmitting packets. Signed-off-by: Matias Elo --- /** Email created from pull request 158 (matiaselo:fix/socket_tx) **