[RFC,07/14] net: add rte prefix to gre structure
Checks
Commit Message
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 | 2 +-
lib/librte_net/rte_net.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
@@ -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 */
@@ -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);