From: Olivier Matz Date: Fri, 26 Oct 2018 07:04:01 +0000 (+0200) Subject: net: add rte prefix to gre structure X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bce649568672839a68d240b87ed867c2ccfc5ad9;p=dpdk.git net: add rte prefix to gre structure Add 'rte_' prefix to structures: - rename struct gre_hdr as struct rte_gre_hdr. Signed-off-by: Olivier Matz --- diff --git a/lib/librte_net/rte_gre.h b/lib/librte_net/rte_gre.h index 69499bb82a..0a09543ea1 100644 --- a/lib/librte_net/rte_gre.h +++ b/lib/librte_net/rte_gre.h @@ -15,7 +15,7 @@ extern "C" { /** * GRE Header */ -struct gre_hdr { +struct rte_gre_hdr { #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN uint16_t res2:4; /**< Reserved */ uint16_t s:1; /**< Sequence Number Present bit */ diff --git a/lib/librte_net/rte_net.c b/lib/librte_net/rte_net.c index d7d94791f4..3ad16f0c4b 100644 --- a/lib/librte_net/rte_net.c +++ b/lib/librte_net/rte_net.c @@ -139,8 +139,8 @@ ptype_tunnel(uint16_t *proto, const struct rte_mbuf *m, [0xa] = 12, [0xb] = 16, }; - const struct gre_hdr *gh; - struct gre_hdr gh_copy; + const struct rte_gre_hdr *gh; + struct rte_gre_hdr gh_copy; uint16_t flags; gh = rte_pktmbuf_read(m, *off, sizeof(*gh), &gh_copy);