diff mbox series

[API-NEXT,v1,13/14] api: packet: deprecate old L3/L4 flag setters

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

Commit Message

Github ODP bot Feb. 7, 2018, 11 a.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: 802ddfc5ea6f47a8935993bf6f8c1675a4c94930
 **/
 include/odp/api/spec/packet_flags.h | 64 +++++++++----------------------------
 1 file changed, 15 insertions(+), 49 deletions(-)
diff mbox series

Patch

diff --git a/include/odp/api/spec/packet_flags.h b/include/odp/api/spec/packet_flags.h
index 500ecc148..8ca46f3bf 100644
--- a/include/odp/api/spec/packet_flags.h
+++ b/include/odp/api/spec/packet_flags.h
@@ -21,6 +21,7 @@  extern "C" {
 
 #include <odp/api/std_types.h>
 #include <odp/api/packet.h>
+#include <odp/api/deprecated.h>
 
 /** @addtogroup odp_packet
  *  Operations on packet metadata flags.
@@ -411,29 +412,14 @@  void odp_packet_has_vlan_set(odp_packet_t pkt, int val);
  */
 void odp_packet_has_vlan_qinq_set(odp_packet_t pkt, int val);
 
-/**
- * Set flag for ARP
- *
- * @param pkt Packet handle
- * @param val Value
- */
-void odp_packet_has_arp_set(odp_packet_t pkt, int val);
+/** @deprecated Use odp_packet_l3_type_set instead */
+void ODP_DEPRECATE(odp_packet_has_arp_set)(odp_packet_t pkt, int val);
 
-/**
- * Set flag for IPv4
- *
- * @param pkt Packet handle
- * @param val Value
- */
-void odp_packet_has_ipv4_set(odp_packet_t pkt, int val);
+/** @deprecated Use odp_packet_l3_type_set instead */
+void ODP_DEPRECATE(odp_packet_has_ipv4_set)(odp_packet_t pkt, int val);
 
-/**
- * Set flag for IPv6
- *
- * @param pkt Packet handle
- * @param val Value
- */
-void odp_packet_has_ipv6_set(odp_packet_t pkt, int val);
+/** @deprecated Use odp_packet_l3_type_set instead */
+void ODP_DEPRECATE(odp_packet_has_ipv6_set)(odp_packet_t pkt, int val);
 
 /**
  * Set flag for IP broadcast address
@@ -475,37 +461,17 @@  void odp_packet_has_ipopt_set(odp_packet_t pkt, int val);
  */
 void odp_packet_has_ipsec_set(odp_packet_t pkt, int val);
 
-/**
- * Set flag for UDP
- *
- * @param pkt Packet handle
- * @param val Value
- */
-void odp_packet_has_udp_set(odp_packet_t pkt, int val);
+/** @deprecated Use odp_packet_l4_type_set instead */
+void ODP_DEPRECATE(odp_packet_has_udp_set)(odp_packet_t pkt, int val);
 
-/**
- * Set flag for TCP
- *
- * @param pkt Packet handle
- * @param val Value
- */
-void odp_packet_has_tcp_set(odp_packet_t pkt, int val);
+/** @deprecated Use odp_packet_l4_type_set instead */
+void ODP_DEPRECATE(odp_packet_has_tcp_set)(odp_packet_t pkt, int val);
 
-/**
- * Set flag for SCTP
- *
- * @param pkt Packet handle
- * @param val Value
- */
-void odp_packet_has_sctp_set(odp_packet_t pkt, int val);
+/** @deprecated Use odp_packet_l4_type_set instead */
+void ODP_DEPRECATE(odp_packet_has_sctp_set)(odp_packet_t pkt, int val);
 
-/**
- * Set flag for ICMP
- *
- * @param pkt Packet handle
- * @param val Value
- */
-void odp_packet_has_icmp_set(odp_packet_t pkt, int val);
+/** @deprecated Use odp_packet_l4_type_set instead */
+void ODP_DEPRECATE(odp_packet_has_icmp_set)(odp_packet_t pkt, int val);
 
 /**
  * Clear flag for packet flow hash