net: add rte prefix to UDP structure
[dpdk.git] / examples / l3fwd-vf / main.c
index 5e3809b..0ef469c 100644 (file)
@@ -366,8 +366,8 @@ get_dst_port(struct rte_ipv4_hdr *ipv4_hdr, uint16_t portid,
              lookup_struct_t *l3fwd_lookup_struct)
 {
        struct ipv4_5tuple key;
-       struct tcp_hdr *tcp;
-       struct udp_hdr *udp;
+       struct rte_tcp_hdr *tcp;
+       struct rte_udp_hdr *udp;
        int ret = 0;
 
        key.ip_dst = rte_be_to_cpu_32(ipv4_hdr->dst_addr);
@@ -376,14 +376,14 @@ get_dst_port(struct rte_ipv4_hdr *ipv4_hdr, uint16_t portid,
 
        switch (ipv4_hdr->next_proto_id) {
        case IPPROTO_TCP:
-               tcp = (struct tcp_hdr *)((unsigned char *) ipv4_hdr +
+               tcp = (struct rte_tcp_hdr *)((unsigned char *) ipv4_hdr +
                                        sizeof(struct rte_ipv4_hdr));
                key.port_dst = rte_be_to_cpu_16(tcp->dst_port);
                key.port_src = rte_be_to_cpu_16(tcp->src_port);
                break;
 
        case IPPROTO_UDP:
-               udp = (struct udp_hdr *)((unsigned char *) ipv4_hdr +
+               udp = (struct rte_udp_hdr *)((unsigned char *) ipv4_hdr +
                                        sizeof(struct rte_ipv4_hdr));
                key.port_dst = rte_be_to_cpu_16(udp->dst_port);
                key.port_src = rte_be_to_cpu_16(udp->src_port);