net: add rte prefix to ip structure
[dpdk.git] / drivers / net / enic / enic_flow.c
index c964a5e..bf7fc32 100644 (file)
@@ -347,7 +347,7 @@ enic_copy_item_ipv4_v1(const struct rte_flow_item *item,
        const struct rte_flow_item_ipv4 *spec = item->spec;
        const struct rte_flow_item_ipv4 *mask = item->mask;
        struct filter_ipv4_5tuple *enic_5tup = &enic_filter->u.ipv4;
-       struct ipv4_hdr supported_mask = {
+       struct rte_ipv4_hdr supported_mask = {
                .src_addr = 0xffffffff,
                .dst_addr = 0xffffffff,
        };
@@ -635,19 +635,19 @@ enic_copy_item_ipv4_v2(const struct rte_flow_item *item,
                        mask = &rte_flow_item_ipv4_mask;
 
                memcpy(gp->layer[FILTER_GENERIC_1_L3].mask, &mask->hdr,
-                      sizeof(struct ipv4_hdr));
+                      sizeof(struct rte_ipv4_hdr));
                memcpy(gp->layer[FILTER_GENERIC_1_L3].val, &spec->hdr,
-                      sizeof(struct ipv4_hdr));
+                      sizeof(struct rte_ipv4_hdr));
        } else {
                /* Inner IPv4 header. Mask/Val start at *inner_ofst into L5 */
-               if ((*inner_ofst + sizeof(struct ipv4_hdr)) >
+               if ((*inner_ofst + sizeof(struct rte_ipv4_hdr)) >
                     FILTER_GENERIC_1_KEY_LEN)
                        return ENOTSUP;
                memcpy(&gp->layer[FILTER_GENERIC_1_L5].mask[*inner_ofst],
-                      mask, sizeof(struct ipv4_hdr));
+                      mask, sizeof(struct rte_ipv4_hdr));
                memcpy(&gp->layer[FILTER_GENERIC_1_L5].val[*inner_ofst],
-                      spec, sizeof(struct ipv4_hdr));
-               *inner_ofst += sizeof(struct ipv4_hdr);
+                      spec, sizeof(struct rte_ipv4_hdr));
+               *inner_ofst += sizeof(struct rte_ipv4_hdr);
        }
        return 0;
 }