diff mbox series

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

Message ID 1518008409-31750-14-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
 **/
 include/odp/api/spec/packet_flags.h | 29 +++++++++++++++--------------
 1 file changed, 15 insertions(+), 14 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..e231d00ec 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.
@@ -412,28 +413,28 @@  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
+ * @deprecated Use odp_packet_l3_type_set instead */
  *
  * @param pkt Packet handle
  * @param val Value
  */
-void odp_packet_has_arp_set(odp_packet_t pkt, int val);
+void ODP_DEPRECATE(odp_packet_has_arp_set)(odp_packet_t pkt, int val);
 
 /**
- * Set flag for IPv4
+ * @deprecated Use odp_packet_l3_type_set instead */
  *
  * @param pkt Packet handle
  * @param val Value
  */
-void odp_packet_has_ipv4_set(odp_packet_t pkt, int val);
+void ODP_DEPRECATE(odp_packet_has_ipv4_set)(odp_packet_t pkt, int val);
 
 /**
- * Set flag for IPv6
+ * @deprecated Use odp_packet_l3_type_set instead */
  *
  * @param pkt Packet handle
  * @param val Value
  */
-void odp_packet_has_ipv6_set(odp_packet_t pkt, int val);
+void ODP_DEPRECATE(odp_packet_has_ipv6_set)(odp_packet_t pkt, int val);
 
 /**
  * Set flag for IP broadcast address
@@ -476,36 +477,36 @@  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
+ * @deprecated Use odp_packet_l3_type_set instead */
  *
  * @param pkt Packet handle
  * @param val Value
  */
-void odp_packet_has_udp_set(odp_packet_t pkt, int val);
+void ODP_DEPRECATE(odp_packet_has_udp_set)(odp_packet_t pkt, int val);
 
 /**
- * Set flag for TCP
+ * @deprecated Use odp_packet_l3_type_set instead */
  *
  * @param pkt Packet handle
  * @param val Value
  */
-void odp_packet_has_tcp_set(odp_packet_t pkt, int val);
+void ODP_DEPRECATE(odp_packet_has_tcp_set)(odp_packet_t pkt, int val);
 
 /**
- * Set flag for SCTP
+ * @deprecated Use odp_packet_l3_type_set instead */
  *
  * @param pkt Packet handle
  * @param val Value
  */
-void odp_packet_has_sctp_set(odp_packet_t pkt, int val);
+void ODP_DEPRECATE(odp_packet_has_sctp_set)(odp_packet_t pkt, int val);
 
 /**
- * Set flag for ICMP
+ * @deprecated Use odp_packet_l3_type_set instead */
  *
  * @param pkt Packet handle
  * @param val Value
  */
-void odp_packet_has_icmp_set(odp_packet_t pkt, int val);
+void ODP_DEPRECATE(odp_packet_has_icmp_set)(odp_packet_t pkt, int val);
 
 /**
  * Clear flag for packet flow hash