net: add rte prefix to udp structure
[dpdk.git] / drivers / net / enic / enic_flow.c
index fd5b2d1..2787bc8 100644 (file)
@@ -397,7 +397,7 @@ enic_copy_item_udp_v1(const struct rte_flow_item *item,
        const struct rte_flow_item_udp *spec = item->spec;
        const struct rte_flow_item_udp *mask = item->mask;
        struct filter_ipv4_5tuple *enic_5tup = &enic_filter->u.ipv4;
-       struct udp_hdr supported_mask = {
+       struct rte_udp_hdr supported_mask = {
                .src_port = 0xffff,
                .dst_port = 0xffff,
        };
@@ -735,19 +735,19 @@ enic_copy_item_udp_v2(const struct rte_flow_item *item,
 
        if (*inner_ofst == 0) {
                memcpy(gp->layer[FILTER_GENERIC_1_L4].mask, &mask->hdr,
-                      sizeof(struct udp_hdr));
+                      sizeof(struct rte_udp_hdr));
                memcpy(gp->layer[FILTER_GENERIC_1_L4].val, &spec->hdr,
-                      sizeof(struct udp_hdr));
+                      sizeof(struct rte_udp_hdr));
        } else {
                /* Inner IPv6 header. Mask/Val start at *inner_ofst into L5 */
-               if ((*inner_ofst + sizeof(struct udp_hdr)) >
+               if ((*inner_ofst + sizeof(struct rte_udp_hdr)) >
                     FILTER_GENERIC_1_KEY_LEN)
                        return ENOTSUP;
                memcpy(&gp->layer[FILTER_GENERIC_1_L5].mask[*inner_ofst],
-                      mask, sizeof(struct udp_hdr));
+                      mask, sizeof(struct rte_udp_hdr));
                memcpy(&gp->layer[FILTER_GENERIC_1_L5].val[*inner_ofst],
-                      spec, sizeof(struct udp_hdr));
-               *inner_ofst += sizeof(struct udp_hdr);
+                      spec, sizeof(struct rte_udp_hdr));
+               *inner_ofst += sizeof(struct rte_udp_hdr);
        }
        return 0;
 }