[API-NEXT,v3,6/14] helper: switch to using odp_packet_l3_type_set()

Message ID 1518008409-31750-7-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • Packet L3/L4 type implementation and API extension
Related show

Commit Message

Github ODP bot Feb. 7, 2018, 1 p.m.
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Use odp_packet_l3_type_set() instead of calling
odp_packet_has_ipv4_set() or odp_packet_has_ipv6_set().

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 457 (lumag:packet-types)
 ** https://github.com/Linaro/odp/pull/457
 ** Patch: https://github.com/Linaro/odp/pull/457.patch
 ** Base sha: e1175d5a69c65bb465022c9f1381c40fdb5c4069
 ** Merge commit sha: 86fcf3650d33f5dd82712dda131fb8ca66a3bdf8
 **/
 helper/test/chksum.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/helper/test/chksum.c b/helper/test/chksum.c
index 5c7c650e0..292eb2d6d 100644
--- a/helper/test/chksum.c
+++ b/helper/test/chksum.c
@@ -110,7 +110,7 @@  int main(int argc ODPH_UNUSED, char *argv[] ODPH_UNUSED)
 				       ODPH_IPV4HDR_LEN);
 	ip->proto = ODPH_IPPROTO_UDP;
 	ip->id = odp_cpu_to_be_16(1);
-	odp_packet_has_ipv4_set(test_packet, 1);
+	odp_packet_l3_type_set(test_packet, ODP_PROTO_L3_TYPE_IPV4);
 	if (odph_ipv4_csum_update(test_packet) < 0)
 		status = -1;