]> git.droids-corp.org - dpdk.git/commitdiff
net: add rte prefix to gre structure
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 18 Mar 2019 17:07:28 +0000 (18:07 +0100)
committerOlivier Matz <olivier.matz@6wind.com>
Mon, 18 Mar 2019 17:12:52 +0000 (18:12 +0100)
Add 'rte_' prefix to structures:
- rename struct gre_hdr as struct rte_gre_hdr.

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

index 62096b2f877bac61dcc2730e68b3e2a7f0d338ef..b5528ac848b0b5bac0198e8906622b7a045a508a 100644 (file)
@@ -946,7 +946,7 @@ flow_dv_convert_encap_data(const struct rte_flow_item *items, uint8_t *buf,
        struct udp_hdr *udp = NULL;
        struct rte_vxlan_hdr *vxlan = NULL;
        struct rte_vxlan_gpe_hdr *vxlan_gpe = NULL;
-       struct gre_hdr *gre = NULL;
+       struct rte_gre_hdr *gre = NULL;
        size_t len;
        size_t temp_size = 0;
 
@@ -1059,7 +1059,7 @@ flow_dv_convert_encap_data(const struct rte_flow_item *items, uint8_t *buf,
                        break;
                case RTE_FLOW_ITEM_TYPE_GRE:
                case RTE_FLOW_ITEM_TYPE_NVGRE:
-                       gre = (struct gre_hdr *)&buf[temp_size];
+                       gre = (struct rte_gre_hdr *)&buf[temp_size];
                        if (!gre->proto)
                                return rte_flow_error_set(error, EINVAL,
                                                RTE_FLOW_ERROR_TYPE_ACTION,
index 05aa9d143e43c443bf857f5fa6c4a3159f6d8388..b5279ede17658486fc9396bfa1b18bb5b0d50769 100644 (file)
@@ -16,7 +16,7 @@ extern "C" {
  * GRE Header
  */
 __extension__
-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 5551cce171de51c9e1feb347ed9d5ddbc79a3f3c..d858ab15517aca99136942b79a7341816889934e 100644 (file)
@@ -140,8 +140,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);