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 fdc44dd4322f624c2a5d8c0be5306f7c45364520 (commit) from 614399faccde551f7ee473e3763254bce96e3444 (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 fdc44dd4322f624c2a5d8c0be5306f7c45364520 Author: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Date: Tue Sep 26 03:09:48 2017 +0300
linux-gen: drop unused _odp_packet_cmp_data() function
This is to fix https://bugs.linaro.org/show_bug.cgi?id=3241
Signed-off-by: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Reviewed-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h index d76d7bf0..15cb53f4 100644 --- a/platform/linux-generic/include/odp_packet_internal.h +++ b/platform/linux-generic/include/odp_packet_internal.h @@ -321,9 +321,6 @@ int _odp_cls_parse(odp_packet_hdr_t *pkt_hdr, const uint8_t *parseptr); int _odp_packet_set_data(odp_packet_t pkt, uint32_t offset, uint8_t c, uint32_t len);
-int _odp_packet_cmp_data(odp_packet_t pkt, uint32_t offset, - const void *s, uint32_t len); - #ifdef __cplusplus } #endif diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c index f4a0e0ec..fff01ad9 100644 --- a/platform/linux-generic/odp_packet.c +++ b/platform/linux-generic/odp_packet.c @@ -1642,32 +1642,6 @@ int _odp_packet_set_data(odp_packet_t pkt, uint32_t offset, return 0; }
-int _odp_packet_cmp_data(odp_packet_t pkt, uint32_t offset, - const void *s, uint32_t len) -{ - const uint8_t *ptr = s; - void *mapaddr; - uint32_t seglen = 0; /* GCC */ - uint32_t cmplen; - int ret; - odp_packet_hdr_t *pkt_hdr = packet_hdr(pkt); - - ODP_ASSERT(offset + len <= pkt_hdr->frame_len); - - while (len > 0) { - mapaddr = packet_map(pkt_hdr, offset, &seglen, NULL); - cmplen = len > seglen ? seglen : len; - ret = memcmp(mapaddr, ptr, cmplen); - if (ret != 0) - return ret; - offset += cmplen; - len -= cmplen; - ptr += cmplen; - } - - return 0; -} - /* * * Debugging
-----------------------------------------------------------------------
Summary of changes: .../linux-generic/include/odp_packet_internal.h | 3 --- platform/linux-generic/odp_packet.c | 26 ---------------------- 2 files changed, 29 deletions(-)
hooks/post-receive