From: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@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 --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