diff options
author | Jere Leppänen <jere.leppanen@nokia.com> | 2020-11-21 16:40:38 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2020-12-23 18:04:25 +0200 |
commit | e185f53434028f84fb26a3b3cb75e8769b23393b (patch) | |
tree | c4e1412e151cbda467ad589d30f294f120db284c /platform/linux-generic/pktio/loop.c | |
parent | 56cca35349616e1aed4ef92bc1d786d2fb11af4d (diff) |
linux-gen: rename some global symbols in the static library
Rename some symbols that are global in the static library, in order to
avoid clashes with application code. The prefix "_odp_" is added to
the existing names.
This patch renames most of the global symbols, a few more still remain
to be renamed.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/pktio/loop.c')
-rw-r--r-- | platform/linux-generic/pktio/loop.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/platform/linux-generic/pktio/loop.c b/platform/linux-generic/pktio/loop.c index f44df208f..cc4cb1751 100644 --- a/platform/linux-generic/pktio/loop.c +++ b/platform/linux-generic/pktio/loop.c @@ -144,9 +144,9 @@ static int loopback_recv(pktio_entry_t *pktio_entry, int index ODP_UNUSED, pkt_addr = odp_packet_data(pkt); } - ret = cls_classify_packet(pktio_entry, pkt_addr, - pkt_len, seg_len, - &new_pool, pkt_hdr, true); + ret = _odp_cls_classify_packet(pktio_entry, pkt_addr, + pkt_len, seg_len, + &new_pool, pkt_hdr, true); if (ret) { failed++; odp_packet_free(pkt); @@ -167,9 +167,9 @@ static int loopback_recv(pktio_entry_t *pktio_entry, int index ODP_UNUSED, pkt_hdr = packet_hdr(new_pkt); } } else { - packet_parse_layer(pkt_hdr, - pktio_entry->s.config.parser.layer, - pktio_entry->s.in_chksums); + _odp_packet_parse_layer(pkt_hdr, + pktio_entry->s.config.parser.layer, + pktio_entry->s.in_chksums); } packet_set_ts(pkt_hdr, ts); @@ -473,7 +473,7 @@ static int loop_init_global(void) return 0; } -const pktio_if_ops_t loopback_pktio_ops = { +const pktio_if_ops_t _odp_loopback_pktio_ops = { .name = "loop", .print = NULL, .init_global = loop_init_global, |