net: add rte prefix to gre structure
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 26 Oct 2018 07:04:01 +0000 (09:04 +0200)
committerOlivier Matz <olivier.matz@6wind.com>
Fri, 26 Oct 2018 07:04:01 +0000 (09:04 +0200)
Add 'rte_' prefix to structures:
- rename struct gre_hdr as struct rte_gre_hdr.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_net/rte_gre.h
lib/librte_net/rte_net.c

index 69499bb..0a09543 100644 (file)
@@ -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 */
index d7d9479..3ad16f0 100644 (file)
@@ -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);