This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via 614399faccde551f7ee473e3763254bce96e3444 (commit) via 13f091e6e0e5fff0552abd1d54b3559b4fc6158f (commit) from f710dd9c76b8a7683f07574afdfc5896f8e4db7a (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 614399faccde551f7ee473e3763254bce96e3444 Author: Maxim Uvarov maxim.uvarov@linaro.org Date: Tue Sep 26 20:52:32 2017 +0300
Revert "test: make odp_pktio_perf more scalable"
This reverts: commit 3794fb4eddeb ("test: make odp_pktio_perf more scalable")
Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/test/common_plat/performance/odp_pktio_perf.c b/test/common_plat/performance/odp_pktio_perf.c index 210a833f..a170e128 100644 --- a/test/common_plat/performance/odp_pktio_perf.c +++ b/test/common_plat/performance/odp_pktio_perf.c @@ -167,13 +167,14 @@ static test_globals_t *gbl_args; /* * Generate a single test packet for transmission. */ -static odp_packet_t pktio_create_packet(uint32_t seq) +static odp_packet_t pktio_create_packet(void) { odp_packet_t pkt; odph_ethhdr_t *eth; odph_ipv4hdr_t *ip; odph_udphdr_t *udp; char *buf; + uint16_t seq; uint32_t offset; pkt_head_t pkt_hdr; size_t payload_len; @@ -208,6 +209,7 @@ static odp_packet_t pktio_create_packet(uint32_t seq) ODPH_IPV4HDR_LEN); ip->ttl = 128; ip->proto = ODPH_IPPROTO_UDP; + seq = odp_atomic_fetch_inc_u32(&ip_seq); ip->id = odp_cpu_to_be_16(seq); ip->chksum = 0; odph_ipv4_csum_update(pkt); @@ -261,11 +263,9 @@ static int pktio_pkt_has_magic(odp_packet_t pkt) static int alloc_packets(odp_packet_t *pkt_tbl, int num_pkts) { int n; - uint16_t seq;
- seq = odp_atomic_fetch_add_u32(&ip_seq, num_pkts); for (n = 0; n < num_pkts; ++n) { - pkt_tbl[n] = pktio_create_packet(seq + n); + pkt_tbl[n] = pktio_create_packet(); if (pkt_tbl[n] == ODP_PACKET_INVALID) break; }
commit 13f091e6e0e5fff0552abd1d54b3559b4fc6158f Author: Maxim Uvarov maxim.uvarov@linaro.org Date: Tue Sep 26 20:51:56 2017 +0300
Revert "test: disable packet parsing in odp_pktio_perf"
This reverts: commit f710dd9c76b8 ("test: disable packet parsing in odp_pktio_perf")
Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/test/common_plat/performance/odp_pktio_perf.c b/test/common_plat/performance/odp_pktio_perf.c index 01c2eae1..210a833f 100644 --- a/test/common_plat/performance/odp_pktio_perf.c +++ b/test/common_plat/performance/odp_pktio_perf.c @@ -739,7 +739,6 @@ static int test_init(void) odp_pool_param_t params; const char *iface; int schedule; - odp_pktio_config_t cfg;
odp_pool_param_init(¶ms); params.pkt.len = PKT_HDR_LEN + gbl_args->args.pkt_len; @@ -789,13 +788,6 @@ static int test_init(void) return -1; }
- /* Disable packet parsing as this is done in the driver where it - * affects scalability. - */ - odp_pktio_config_init(&cfg); - cfg.parser.layer = ODP_PKTIO_PARSER_LAYER_NONE; - odp_pktio_config(gbl_args->pktio_rx, &cfg); - if (gbl_args->args.num_ifaces > 1) { if (odp_pktout_queue_config(gbl_args->pktio_rx, NULL)) { LOG_ERR("failed to configure pktio_rx queue\n");
-----------------------------------------------------------------------
Summary of changes: test/common_plat/performance/odp_pktio_perf.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-)
hooks/post-receive