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, api-next has been updated
via cf6425f16f8ee554815f6697a231e398ddb0546c (commit)
from 6085237938d93c68710db69f70014eca2238492a (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 cf6425f16f8ee554815f6697a231e398ddb0546c
Author: Christophe Milard <christophe.milard(a)linaro.org>
Date: Tue Sep 13 14:40:46 2016 +0200
linux-generic: _fdserver: allocating data table dynamicaly
The table containing the saved file-descriptors<->{context, key} couples is
now dynamically malloc'd in the fd server process, hence avoiding
the memory waste which happened in other process when the table was
staticaly reserved in all processes.
Signed-off-by: Christophe Milard <christophe.milard(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/platform/linux-generic/_fdserver.c b/platform/linux-generic/_fdserver.c
index 97661d0..41a630b 100644
--- a/platform/linux-generic/_fdserver.c
+++ b/platform/linux-generic/_fdserver.c
@@ -73,7 +73,7 @@ typedef struct fdentry_s {
uint64_t key;
int fd;
} fdentry_t;
-static fdentry_t fd_table[FDSERVER_MAX_ENTRIES];
+static fdentry_t *fd_table;
static int fd_table_nb_entries;
/*
@@ -622,8 +622,20 @@ int _odp_fdserver_init_global(void)
/* TODO: pin the server on appropriate service cpu mask */
/* when (if) we can agree on the usage of service mask */
+ /* allocate the space for the file descriptor<->key table: */
+ fd_table = malloc(FDSERVER_MAX_ENTRIES * sizeof(fdentry_t));
+ if (!fd_table) {
+ ODP_ERR("maloc failed!\n");
+ exit(1);
+ }
+
+ /* wait for clients requests */
wait_requests(sock); /* Returns when server is stopped */
close(sock);
+
+ /* release the file descriptor table: */
+ free(fd_table);
+
exit(0);
}
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/_fdserver.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
hooks/post-receive
--
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, api-next has been updated
via 6085237938d93c68710db69f70014eca2238492a (commit)
via 03626c586519818ef4de9a2f733ebfd46a0bf6be (commit)
via ea0b2211f1c5d90e1699aa94b3192704fbf6ca91 (commit)
from c070eda5f78f9209ef3c7a0fe6dfc0cff210894b (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 6085237938d93c68710db69f70014eca2238492a
Merge: 03626c5 ea0b221
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Wed Sep 14 17:29:27 2016 +0300
Merge branch 'master' into api-next
commit 03626c586519818ef4de9a2f733ebfd46a0bf6be
Author: Christophe Milard <christophe.milard(a)linaro.org>
Date: Tue Sep 13 12:05:18 2016 +0200
linux-generic: _fdserver: fixing comment typo
Signed-off-by: Christophe Milard <christophe.milard(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/platform/linux-generic/_fdserver.c b/platform/linux-generic/_fdserver.c
index bf36eb2..97661d0 100644
--- a/platform/linux-generic/_fdserver.c
+++ b/platform/linux-generic/_fdserver.c
@@ -103,7 +103,7 @@ typedef struct fd_server_msg {
* Send a fdserver_msg, possibly including a file descriptor, on the socket
* This function is used both by:
* -the client (sending a FD_REGISTER_REQ with a file descriptor to be shared,
- * or FD_LOOKUP_REQ/FD_DEREGISTER_REQ without a file descirptor)
+ * or FD_LOOKUP_REQ/FD_DEREGISTER_REQ without a file descriptor)
* -the server (sending FD_REGISTER_ACK/NACK, FD_LOOKUP_NACK,
* FD_DEREGISTER_ACK/NACK... without a fd or a
* FD_LOOKUP_ACK with a fd)
@@ -165,7 +165,7 @@ static int send_fdserver_msg(int sock, int command,
* given socket.
* This function is used both by:
* -the server (receiving a FD_REGISTER_REQ with a file descriptor to be shared,
- * or FD_LOOKUP_REQ, FD_DEREGISTER_REQ without a file descirptor)
+ * or FD_LOOKUP_REQ, FD_DEREGISTER_REQ without a file descriptor)
* -the client (receiving FD_REGISTER_ACK...without a fd or a FD_LOOKUP_ACK with
* a fd)
* This function make use of the ancillary data (control data) to pass and
-----------------------------------------------------------------------
Summary of changes:
example/generator/odp_generator.c | 1 +
platform/linux-generic/_fdserver.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
hooks/post-receive
--
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 ea0b2211f1c5d90e1699aa94b3192704fbf6ca91 (commit)
from 1d43e53c96246c5625ae619d0667b179ea8bd4b2 (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 ea0b2211f1c5d90e1699aa94b3192704fbf6ca91
Author: Mike Holmes <mike.holmes(a)linaro.org>
Date: Tue Sep 13 13:35:40 2016 -0400
example: generator: actually use specified default
The help states default is 1000ms. 0 for flood mode, however the
default was incorrectly set to zero.
Signed-off-by: Mike Holmes <mike.holmes(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c
index b0053b9..48d7f5f 100644
--- a/example/generator/odp_generator.c
+++ b/example/generator/odp_generator.c
@@ -946,6 +946,7 @@ static void parse_args(int argc, char *argv[], appl_args_t *appl_args)
appl_args->number = -1;
appl_args->payload = 56;
appl_args->timeout = -1;
+ appl_args->interval = DEFAULT_PKT_INTERVAL;
opterr = 0; /* do not issue errors on helper options */
-----------------------------------------------------------------------
Summary of changes:
example/generator/odp_generator.c | 1 +
1 file changed, 1 insertion(+)
hooks/post-receive
--
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 032915e5988d0e1da0562193b8bc925600cdb5f6 (commit)
from da7a72e86db0cf83f7b391d8516f9b7504f4e27a (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 032915e5988d0e1da0562193b8bc925600cdb5f6
Author: Juha Mattila <juha.mattila(a)nokia.com>
Date: Tue Sep 6 16:22:04 2016 +0300
linux-gen: tap: add classifier support
Add missing classifier support to tap pktio.
Resolves bug: https://bugs.linaro.org/show_bug.cgi?id=2504
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Matias Elo <matias.elo(a)nokia.com>
Signed-off-by: Juha Mattila <juha.mattila(a)nokia.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/platform/linux-generic/pktio/tap.c b/platform/linux-generic/pktio/tap.c
index d758a39..ac20456 100644
--- a/platform/linux-generic/pktio/tap.c
+++ b/platform/linux-generic/pktio/tap.c
@@ -43,6 +43,7 @@
#include <odp_packet_socket.h>
#include <odp_packet_internal.h>
#include <odp_packet_io_internal.h>
+#include <odp_classification_internal.h>
#define BUF_SIZE 65536
@@ -185,8 +186,17 @@ static odp_packet_t pack_odp_pkt(pktio_entry_t *pktio_entry, const void *data,
{
odp_packet_t pkt;
odp_packet_hdr_t *pkt_hdr;
+ odp_packet_hdr_t parsed_hdr;
int num;
+ if (pktio_cls_enabled(pktio_entry)) {
+ if (cls_classify_packet(pktio_entry, data, len, len,
+ &pktio_entry->s.pkt_tap.pool,
+ &parsed_hdr)) {
+ return ODP_PACKET_INVALID;
+ }
+ }
+
num = packet_alloc_multi(pktio_entry->s.pkt_tap.pool, len, &pkt, 1);
if (num != 1)
@@ -199,7 +209,12 @@ static odp_packet_t pack_odp_pkt(pktio_entry_t *pktio_entry, const void *data,
}
pkt_hdr = odp_packet_hdr(pkt);
- packet_parse_l2(&pkt_hdr->p, len);
+
+ if (pktio_cls_enabled(pktio_entry))
+ copy_packet_cls_metadata(&parsed_hdr, pkt_hdr);
+ else
+ packet_parse_l2(&pkt_hdr->p, len);
+
packet_set_ts(pkt_hdr, ts);
pkt_hdr->input = pktio_entry->s.handle;
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/pktio/tap.c | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
hooks/post-receive
--
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 2d63311886330e6acddb55674ff7a7b62d711ef5 (commit)
from d96981e81ecbfc54ac8832d3ed2c32f50eaaf9a1 (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 2d63311886330e6acddb55674ff7a7b62d711ef5
Author: Petri Savolainen <petri.savolainen(a)nokia.com>
Date: Mon Sep 5 13:29:50 2016 +0300
test: l2fwd: remove wait time from sched mode
Application requested 100ms timeout for no reason in the
scheduler mode. For example on odp-linux, performance is improved
about 10% when the timeout is removed (as time keeping creates
system calls).
Signed-off-by: Petri Savolainen <petri.savolainen(a)nokia.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/test/common_plat/performance/odp_l2fwd.c b/test/common_plat/performance/odp_l2fwd.c
index 418382d..4020dea 100644
--- a/test/common_plat/performance/odp_l2fwd.c
+++ b/test/common_plat/performance/odp_l2fwd.c
@@ -305,7 +305,6 @@ static int run_worker_sched_mode(void *arg)
odp_packet_t pkt_tbl[MAX_PKT_BURST];
int pkts;
int thr;
- uint64_t wait;
int dst_idx;
int thr_idx;
int i;
@@ -344,14 +343,13 @@ static int run_worker_sched_mode(void *arg)
odp_barrier_wait(&barrier);
- wait = odp_schedule_wait_time(ODP_TIME_MSEC_IN_NS * 100);
-
/* Loop packets */
while (!exit_threads) {
int sent;
unsigned tx_drops;
- pkts = odp_schedule_multi(NULL, wait, ev_tbl, MAX_PKT_BURST);
+ pkts = odp_schedule_multi(NULL, ODP_SCHED_NO_WAIT, ev_tbl,
+ MAX_PKT_BURST);
if (pkts <= 0)
continue;
-----------------------------------------------------------------------
Summary of changes:
test/common_plat/performance/odp_l2fwd.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
hooks/post-receive
--
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 d96981e81ecbfc54ac8832d3ed2c32f50eaaf9a1 (commit)
from 7cd13f48c935a88d56fd7d393fea6f02e5b0365a (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 d96981e81ecbfc54ac8832d3ed2c32f50eaaf9a1
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Mon Sep 5 22:04:51 2016 +0300
example: l3fwd: fix clang build
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer(a)linaro.org>
diff --git a/example/l3fwd/odp_l3fwd_db.c b/example/l3fwd/odp_l3fwd_db.c
index 4731237..082b2c2 100644
--- a/example/l3fwd/odp_l3fwd_db.c
+++ b/example/l3fwd/odp_l3fwd_db.c
@@ -209,7 +209,7 @@ static void create_fwd_hash_cache(void)
}
size = sizeof(flow_bucket_t) * bucket_count;
- flows = (flow_entry_t *)((char *)bucket + size);
+ flows = (flow_entry_t *)(void *)((char *)bucket + size);
fwd_lookup_cache.bucket = bucket;
fwd_lookup_cache.bkt_cnt = bucket_count;
-----------------------------------------------------------------------
Summary of changes:
example/l3fwd/odp_l3fwd_db.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--