aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/pktio/loop.c
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-03-25 15:03:52 +0200
committerMatias Elo <matias.elo@nokia.com>2022-05-02 12:06:11 +0300
commit82d0da39fb22300cdfe5432a593d438b2e44b89d (patch)
treef9c14a30143e43760a78ed9ddb368e76f9d6b564 /platform/linux-generic/pktio/loop.c
parent52cfc352aa497952470a2e0d1ae8d31c38d3c861 (diff)
linux-gen: macros: prefix implementation internal macro names
Add _ODP_ prefixes to implementation internal helper macros and collect common macros into a single header file (odp_macros_internal.h). Unused macros (DIV_ROUND_UP, odp_container_of) have been removed. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Diffstat (limited to 'platform/linux-generic/pktio/loop.c')
-rw-r--r--platform/linux-generic/pktio/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linux-generic/pktio/loop.c b/platform/linux-generic/pktio/loop.c
index 2441d8bcb..c702f9ded 100644
--- a/platform/linux-generic/pktio/loop.c
+++ b/platform/linux-generic/pktio/loop.c
@@ -197,7 +197,7 @@ static int loopback_recv(pktio_entry_t *pktio_entry, int index ODP_UNUSED,
* parser in the case of a segmented packet. */
if (odp_unlikely(seg_len < PARSE_BYTES &&
pkt_len > seg_len)) {
- seg_len = MIN(pkt_len, PARSE_BYTES);
+ seg_len = _ODP_MIN(pkt_len, PARSE_BYTES);
odp_packet_copy_to_mem(pkt, 0, seg_len, buf);
pkt_addr = buf;
} else {