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 566492d067083e870548c78a89f8c65b02ecde89 (commit)
from ea0b2211f1c5d90e1699aa94b3192704fbf6ca91 (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 566492d067083e870548c78a89f8c65b02ecde89
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Thu Sep 22 17:00:46 2016 +0300
Revert "example: generator: actually use specified default"
This reverts commit ea0b2211f1c5d90e1699aa94b3192704fbf6ca91.
This parameter need to be accounted also in l2fwd performance
test which fails after this patch.
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 48d7f5f..b0053b9 100644
--- a/example/generator/odp_generator.c
+++ b/example/generator/odp_generator.c
@@ -946,7 +946,6 @@ 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 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 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
--