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 d22c949cc466bf28de559855a1cb525740578137 (commit)
from 637353bbd96770741cbb58711c78c9dc01e4ea34 (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 d22c949cc466bf28de559855a1cb525740578137
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Fri Oct 27 15:56:32 2017 +0300
api: packet: change argument to insert for l3 and l4 chsums
function name already has l3 and l4 layer, argument insert
is more clean here.
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
diff --git a/include/odp/api/spec/packet.h b/include/odp/api/spec/packet.h
index 3fc46064..fac7790b 100644
--- a/include/odp/api/spec/packet.h
+++ b/include/odp/api/spec/packet.h
@@ -1414,10 +1414,10 @@ odp_packet_chksum_status_t odp_packet_l4_chksum_status(odp_packet_t pkt);
* the relevant pktout chksum bit set in the pktio capability.
*
* @param pkt Packet handle
- * @param l3 0: do not insert L3 checksum
+ * @param insert 0: do not insert L3 checksum
* 1: insert L3 checksum
*/
-void odp_packet_l3_chksum_insert(odp_packet_t pkt, int l3);
+void odp_packet_l3_chksum_insert(odp_packet_t pkt, int insert);
/**
* Layer 4 checksum insertion override
@@ -1431,10 +1431,10 @@ void odp_packet_l3_chksum_insert(odp_packet_t pkt, int l3);
* the relevant pktout chksum bit set in the pktio capability.
*
* @param pkt Packet handle
- * @param l4 0: do not insert L4 checksum
+ * @param insert 0: do not insert L4 checksum
* 1: insert L4 checksum
*/
-void odp_packet_l4_chksum_insert(odp_packet_t pkt, int l4);
+void odp_packet_l4_chksum_insert(odp_packet_t pkt, int insert);
/**
* Packet flow hash value
-----------------------------------------------------------------------
Summary of changes:
include/odp/api/spec/packet.h | 8 ++++----
1 file changed, 4 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, api-next has been updated
via 637353bbd96770741cbb58711c78c9dc01e4ea34 (commit)
via 387b402c4f2fc0694b6e0fe68ee4be8a2bd42442 (commit)
via ebdf6e27af66a58fff6a17a1c6c2cd6ae85909f1 (commit)
via 3edee38da55876e36f654a5d1a4b87c2ea5b8bfe (commit)
via 8d22e0e2013596403ae6a35457cdf30b0a0c559b (commit)
from cc97d3ae6d6d4c07ec77e7b33e2529154fb0ed24 (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 637353bbd96770741cbb58711c78c9dc01e4ea34
Merge: ebdf6e27 387b402c
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Mon Oct 30 22:27:20 2017 +0300
Merge branch 'master' into api-next
commit ebdf6e27af66a58fff6a17a1c6c2cd6ae85909f1
Author: Matias Elo <matias.elo(a)nokia.com>
Date: Wed Oct 25 14:59:00 2017 +0300
validation: shmem: compare info page size to all supported huge page sizes
Compare odp_shm_info_t.page_size to all supported page sizes on the system.
This enables passing the test when shmem is not allocated using the
system's default huge page size.
Signed-off-by: Matias Elo <matias.elo(a)nokia.com>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/test/validation/api/shmem/shmem.c b/test/validation/api/shmem/shmem.c
index d5335afa..d1abc62b 100644
--- a/test/validation/api/shmem/shmem.c
+++ b/test/validation/api/shmem/shmem.c
@@ -80,6 +80,7 @@ static int run_test_basic_thread(void *arg ODP_UNUSED)
odp_shm_t shm;
shared_test_data_t *shared_test_data;
int thr;
+ int pagesz_match = 0;
thr = odp_thread_id();
printf("Thread %i starts\n", thr);
@@ -98,8 +99,27 @@ static int run_test_basic_thread(void *arg ODP_UNUSED)
CU_ASSERT(0 == info.flags);
CU_ASSERT(shared_test_data == info.addr);
CU_ASSERT(sizeof(shared_test_data_t) <= info.size);
- CU_ASSERT((info.page_size == odp_sys_huge_page_size()) ||
- (info.page_size == odp_sys_page_size()))
+
+ if (info.page_size == odp_sys_page_size()) {
+ pagesz_match = 1;
+ } else {
+ int num = odp_sys_huge_page_size_all(NULL, 0);
+
+ if (num > 0) {
+ uint64_t pagesz_tbs[num];
+ int i;
+
+ num = odp_sys_huge_page_size_all(pagesz_tbs, num);
+ for (i = 0; i < num; i++) {
+ if (info.page_size == pagesz_tbs[i]) {
+ pagesz_match = 1;
+ break;
+ }
+ }
+ }
+ }
+ CU_ASSERT(pagesz_match == 1);
+
odp_shm_print_all();
fflush(stdout);
-----------------------------------------------------------------------
Summary of changes:
.travis.yml | 1 -
doc/users-guide/users-guide.adoc | 18 ++++++++++++++++++
platform/linux-generic/odp_packet.c | 35 +++++++++++++++++++++++++++++++++++
scripts/ci-checkpatches.sh | 22 ++++++++++++++--------
test/validation/api/shmem/shmem.c | 24 ++++++++++++++++++++++--
5 files changed, 89 insertions(+), 11 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 387b402c4f2fc0694b6e0fe68ee4be8a2bd42442 (commit)
from 3edee38da55876e36f654a5d1a4b87c2ea5b8bfe (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 -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
.travis.yml | 1 -
scripts/ci-checkpatches.sh | 22 ++++++++++++++--------
2 files changed, 14 insertions(+), 9 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, next has been updated
via f318c88f26b15140dda243e6a1d27e3c8f9d275b (commit)
via 8862db747458bf1a52ccd22eaf8b5cb1f8539e95 (commit)
from 7137f734b5421c59cfb03bfc4928a40dbfef9166 (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 f318c88f26b15140dda243e6a1d27e3c8f9d275b
Author: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Date: Wed Jul 12 14:42:06 2017 +0300
doc: move PREDEFINED to common place
It is easy to update PREDEFINED definitions in one Doxyfile, while
forgetting about the others, as happened e.g. with ODP_DEPRECATE(x)
definition. Move PREDEFINED definitions into Doxyfile_common, so that it
is included by the rest of Doxyfiles.
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/doc/Doxyfile_common b/doc/Doxyfile_common
index 59558535..0471dcf3 100644
--- a/doc/Doxyfile_common
+++ b/doc/Doxyfile_common
@@ -30,3 +30,15 @@ MACRO_EXPANSION = YES
EXPAND_ONLY_PREDEF = YES
INTERNAL_DOCS = YES
DOT_IMAGE_FORMAT = svg
+PREDEFINED = __GNUC__ \
+ __attribute__(x)= \
+ ODP_ALIGNED(x)= \
+ ODPDRV_ALIGNED(x)= \
+ __BIG_ENDIAN_BITFIELD \
+ __LITTLE_ENDIAN_BITFIELD \
+ __x86_64__ \
+ ODP_PACKED \
+ ODPDRV_PACKED \
+ ODP_DEPRECATE(x)=x \
+ "ODP_HANDLE_T(type)=odp_handle_t type" \
+ "ODPDRV_HANDLE_T(type)=odpdrv_handle_t type"
diff --git a/doc/application-api-guide/Doxyfile b/doc/application-api-guide/Doxyfile
index 9cb183c1..2709f6fd 100644
--- a/doc/application-api-guide/Doxyfile
+++ b/doc/application-api-guide/Doxyfile
@@ -7,6 +7,4 @@ INPUT = $(SRCDIR)/doc/application-api-guide \
$(SRCDIR)/include
EXCLUDE_PATTERNS = drv* odp_drv.h
EXAMPLE_PATH = $(SRCDIR)/example $(SRCDIR)
-PREDEFINED = __GNUC__ \
- "ODP_HANDLE_T(type)=odp_handle_t type"
WARNINGS = NO
diff --git a/doc/driver-api-guide/Doxyfile b/doc/driver-api-guide/Doxyfile
index 680d1d42..28794ef0 100644
--- a/doc/driver-api-guide/Doxyfile
+++ b/doc/driver-api-guide/Doxyfile
@@ -5,10 +5,5 @@ PROJECT_NUMBER = $(VERSION)
PROJECT_LOGO = $(SRCDIR)/doc/images/ODP-Logo-HQ.svg
INPUT = $(SRCDIR)/doc/driver-api-guide \
$(SRCDIR)/include/odp/drv \
+ $(SRCDIR)/platform/$(WITH_PLATFORM)/include/odp/drv \
$(SRCDIR)/include/odp_drv.h
-EXCLUDE_PATTERNS = drv* odp_drv.h
-EXAMPLE_PATH = $(SRCDIR)/example $(SRCDIR)
-PREDEFINED = __GNUC__ \
- "ODP_HANDLE_T(type)=odp_handle_t type" \
- odpdrv_bool_t=int
-WARNINGS = NO
diff --git a/doc/helper-guide/Doxyfile b/doc/helper-guide/Doxyfile
index bcc24539..bb9bd8e6 100644
--- a/doc/helper-guide/Doxyfile
+++ b/doc/helper-guide/Doxyfile
@@ -33,13 +33,5 @@ LAYOUT_FILE = $(SRCDIR)/doc/doxygenlayout.xml
ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = YES
EXPAND_ONLY_PREDEF = YES
-PREDEFINED = __GNUC__ \
- __attribute__(x)= \
- ODP_ALIGNED(x)= \
- __BIG_ENDIAN_BITFIELD \
- __LITTLE_ENDIAN_BITFIELD \
- __x86_64__ \
- ODP_PACKED \
- "ODP_HANDLE_T(type)=odp_handle_t type"
INTERNAL_DOCS = YES
DOT_IMAGE_FORMAT = svg
diff --git a/doc/platform-api-guide/Doxyfile b/doc/platform-api-guide/Doxyfile
index 1f2d49a4..d716b4a3 100644
--- a/doc/platform-api-guide/Doxyfile
+++ b/doc/platform-api-guide/Doxyfile
@@ -10,12 +10,3 @@ INPUT = $(SRCDIR)/doc/application-api-guide \
$(SRCDIR)/platform/$(WITH_PLATFORM)/include/odp/api \
$(SRCDIR)/platform/$(WITH_PLATFORM)/arch/$(WITH_ARCH)
EXAMPLE_PATH = $(SRCDIR)/example $(SRCDIR)/platform $(SRCDIR)
-PREDEFINED = __GNUC__ \
- __attribute__(x)= \
- ODP_ALIGNED(x)= \
- __BIG_ENDIAN_BITFIELD \
- __LITTLE_ENDIAN_BITFIELD \
- __x86_64__ \
- ODP_PACKED \
- ODP_DEPRECATE(x)=x \
- "ODP_HANDLE_T(type)=odp_handle_t type"
commit 8862db747458bf1a52ccd22eaf8b5cb1f8539e95
Author: Petri Savolainen <petri.savolainen(a)linaro.org>
Date: Tue Sep 5 13:46:58 2017 +0300
api: packet_io: refine packet format on output
Define explicitly that (by default) packet output does not
need any extra metadata to be set. Also (Ethernet) padding
and CRC are added by default.
Signed-off-by: Petri Savolainen <petri.savolainen(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/include/odp/api/spec/packet_io.h b/include/odp/api/spec/packet_io.h
index 76c63e72..efc3aa76 100644
--- a/include/odp/api/spec/packet_io.h
+++ b/include/odp/api/spec/packet_io.h
@@ -857,6 +857,11 @@ uint64_t odp_pktin_wait_time(uint64_t nsec);
* is less than 'num', the remaining packets at the end of packets[] array
* are not consumed, and the caller has to take care of them.
*
+ * Entire packet data is sent out (odp_packet_len() bytes of data, starting from
+ * odp_packet_data()). All other packet metadata is ignored unless otherwise
+ * specified e.g. for protocol offload purposes. Link protocol specific frame
+ * checksum and padding are added to frames before transmission.
+ *
* @param queue Packet output queue handle for sending packets
* @param packets[] Array of packets to send
* @param num Number of packets to send
-----------------------------------------------------------------------
Summary of changes:
doc/Doxyfile_common | 12 ++++++++++++
doc/application-api-guide/Doxyfile | 2 --
doc/driver-api-guide/Doxyfile | 7 +------
doc/helper-guide/Doxyfile | 8 --------
doc/platform-api-guide/Doxyfile | 9 ---------
include/odp/api/spec/packet_io.h | 5 +++++
6 files changed, 18 insertions(+), 25 deletions(-)
hooks/post-receive
--