From 7ddb625c3d48c4fc714d0def07a1f163d2b67cf5 Mon Sep 17 00:00:00 2001 From: David Marchand Date: Mon, 3 May 2021 15:26:43 +0200 Subject: [PATCH] mbuf: mark offload flag as deprecated PKT_RX_EIP_CKSUM_BAD has been declared deprecated but there was no warning to applications still using it. Fix this by marking as deprecated with the newly introduced RTE_DEPRECATED. Fixes: e8a419d6de4b ("mbuf: rename outer IP checksum macro") Signed-off-by: David Marchand Reviewed-by: Flavio Leitner Acked-by: Olivier Matz Acked-by: Lance Richardson Acked-by: Ajit Khaparde Reviewed-by: Maxime Coquelin --- lib/mbuf/rte_mbuf_core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mbuf/rte_mbuf_core.h b/lib/mbuf/rte_mbuf_core.h index c17dc95c51..bb38d7f581 100644 --- a/lib/mbuf/rte_mbuf_core.h +++ b/lib/mbuf/rte_mbuf_core.h @@ -83,7 +83,8 @@ extern "C" { * Deprecated. * This flag has been renamed, use PKT_RX_OUTER_IP_CKSUM_BAD instead. */ -#define PKT_RX_EIP_CKSUM_BAD PKT_RX_OUTER_IP_CKSUM_BAD +#define PKT_RX_EIP_CKSUM_BAD \ + RTE_DEPRECATED(PKT_RX_EIP_CKSUM_BAD) PKT_RX_OUTER_IP_CKSUM_BAD /** * A vlan has been stripped by the hardware and its tci is saved in -- 2.20.1