diff mbox series

[API-NEXT,v3,14/14] linux-gen: packet: deprecate old L3/L4 flag setters

Message ID 1518008409-31750-15-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v3,1/14] linux-gen: packet: implement packet l3/l4 proto types | expand

Commit Message

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


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
 **/
 platform/linux-generic/odp_packet_flags.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/platform/linux-generic/odp_packet_flags.c b/platform/linux-generic/odp_packet_flags.c
index ce140e600..7e48397ee 100644
--- a/platform/linux-generic/odp_packet_flags.c
+++ b/platform/linux-generic/odp_packet_flags.c
@@ -8,6 +8,7 @@ 
 
 #include <odp/api/plat/packet_flag_inlines.h>
 #include <odp/api/packet_flags.h>
+#include <odp/api/deprecated.h>
 #include <odp_packet_internal.h>
 
 #define retflag(pkt, x) do {                             \
@@ -239,6 +240,7 @@  void odp_packet_has_vlan_qinq_set(odp_packet_t pkt, int val)
 	setflag(pkt, input_flags.vlan_qinq, val);
 }
 
+#if ODP_DEPRECATED_API
 void odp_packet_has_arp_set(odp_packet_t pkt, int val)
 {
 	odp_packet_hdr_t *pkt_hdr = odp_packet_hdr(pkt);
@@ -268,6 +270,7 @@  void odp_packet_has_ipv6_set(odp_packet_t pkt, int val)
 	else if (pkt_hdr->p.input_flags.l3_type == ODP_PROTO_L3_TYPE_IPV6)
 		odp_packet_l3_type_set(pkt, ODP_PROTO_L3_TYPE_NONE);
 }
+#endif
 
 void odp_packet_has_ip_bcast_set(odp_packet_t pkt, int val)
 {
@@ -294,6 +297,7 @@  void odp_packet_has_ipsec_set(odp_packet_t pkt, int val)
 	setflag(pkt, input_flags.ipsec, val);
 }
 
+#if ODP_DEPRECATED_API
 void odp_packet_has_udp_set(odp_packet_t pkt, int val)
 {
 	odp_packet_hdr_t *pkt_hdr = odp_packet_hdr(pkt);
@@ -337,6 +341,7 @@  void odp_packet_has_icmp_set(odp_packet_t pkt, int val)
 	else if (pkt_hdr->p.input_flags.l3_type == ODP_PROTO_L4_TYPE_ICMPV6)
 		odp_packet_l4_type_set(pkt, ODP_PROTO_L4_TYPE_NONE);
 }
+#endif
 
 void odp_packet_has_flow_hash_clr(odp_packet_t pkt)
 {