diff options
author | Bill Fischofer <bill.fischofer@linaro.org> | 2014-12-16 14:30:34 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-12-16 19:03:39 +0300 |
commit | 8822ad6c22f6d135c43829e043c675a779bbd005 (patch) | |
tree | abbef5ec4bddbe90bbcbb964009e668e8bcf9822 /example | |
parent | 57408e45ba64d287d402da8bd212edc9aa56d1ba (diff) |
api: packet: move helper functions to public API
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'example')
-rw-r--r-- | example/generator/odp_generator.c | 5 | ||||
-rw-r--r-- | example/ipsec/odp_ipsec.c | 3 | ||||
-rw-r--r-- | example/ipsec/odp_ipsec_stream.c | 3 | ||||
-rw-r--r-- | example/l2fwd/odp_l2fwd.c | 3 | ||||
-rw-r--r-- | example/packet/odp_pktio.c | 3 |
5 files changed, 6 insertions, 11 deletions
diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index a67910ebb..5ded85c15 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -21,7 +21,6 @@ #include <odp.h> #include <odph_linux.h> -#include <odph_packet.h> #include <odph_eth.h> #include <odph_ip.h> #include <odph_udp.h> @@ -503,13 +502,13 @@ static void *gen_recv_thread(void *arg) pkt = odp_packet_from_buffer(buf); /* Drop packets with errors */ if (odp_unlikely(odp_packet_error(pkt))) { - odph_packet_free(pkt); + odp_packet_free(pkt); continue; } print_pkts(thr, &pkt, 1); - odph_packet_free(pkt); + odp_packet_free(pkt); } return arg; diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c index 4b5a21c3c..cd7368216 100644 --- a/example/ipsec/odp_ipsec.c +++ b/example/ipsec/odp_ipsec.c @@ -20,7 +20,6 @@ #include <odp.h> #include <odph_linux.h> -#include <odph_packet.h> #include <odph_eth.h> #include <odph_ip.h> #include <odph_icmp.h> @@ -1148,7 +1147,7 @@ void *pktio_thread(void *arg EXAMPLE_UNUSED) /* Check for drop */ if (PKT_DROP == rc) - odph_packet_free(pkt); + odp_packet_free(pkt); /* Print packet counts every once in a while */ if (PKT_DONE == rc) { diff --git a/example/ipsec/odp_ipsec_stream.c b/example/ipsec/odp_ipsec_stream.c index 8e002b61f..91eba8832 100644 --- a/example/ipsec/odp_ipsec_stream.c +++ b/example/ipsec/odp_ipsec_stream.c @@ -16,7 +16,6 @@ #include <odp.h> -#include <odph_packet.h> #include <odph_eth.h> #include <odph_ip.h> #include <odph_icmp.h> @@ -549,7 +548,7 @@ bool verify_stream_db_outputs(void) good = verify_ipv4_packet(stream, pkt); if (good) stream->verified++; - odph_packet_free(pkt); + odp_packet_free(pkt); } } diff --git a/example/l2fwd/odp_l2fwd.c b/example/l2fwd/odp_l2fwd.c index 3c1fd6a7e..9721ab7d2 100644 --- a/example/l2fwd/odp_l2fwd.c +++ b/example/l2fwd/odp_l2fwd.c @@ -19,7 +19,6 @@ #include <odp.h> #include <odph_linux.h> -#include <odph_packet.h> #include <odph_eth.h> #include <odph_ip.h> @@ -476,7 +475,7 @@ static int drop_err_pkts(odp_packet_t pkt_tbl[], unsigned len) pkt = pkt_tbl[i]; if (odp_unlikely(odp_packet_error(pkt))) { - odph_packet_free(pkt); /* Drop */ + odp_packet_free(pkt); /* Drop */ pkt_cnt--; } else if (odp_unlikely(i != j++)) { pkt_tbl[j-1] = pkt; diff --git a/example/packet/odp_pktio.c b/example/packet/odp_pktio.c index 5ac83984c..10b79d7a6 100644 --- a/example/packet/odp_pktio.c +++ b/example/packet/odp_pktio.c @@ -19,7 +19,6 @@ #include <odp.h> #include <odph_linux.h> -#include <odph_packet.h> #include <odph_eth.h> #include <odph_ip.h> @@ -455,7 +454,7 @@ static int drop_err_pkts(odp_packet_t pkt_tbl[], unsigned len) pkt = pkt_tbl[i]; if (odp_unlikely(odp_packet_error(pkt))) { - odph_packet_free(pkt); /* Drop */ + odp_packet_free(pkt); /* Drop */ pkt_cnt--; } else if (odp_unlikely(i != j++)) { pkt_tbl[j-1] = pkt; |