test: use lcore accessors
[dpdk.git] / app / test / test_flow_classify.c
index f2c100a..f4d2fdc 100644 (file)
@@ -74,7 +74,7 @@ static struct rte_acl_field_def ipv4_defs[NUM_FIELDS_IPV4] = {
                .input_index = SRCP_DESTP_INPUT_IPV4,
                .offset = sizeof(struct rte_ether_hdr) +
                        sizeof(struct rte_ipv4_hdr) +
-                       offsetof(struct tcp_hdr, src_port),
+                       offsetof(struct rte_tcp_hdr, src_port),
        },
        {
                /* rte_flow uses a bit mask for protocol ports */
@@ -84,7 +84,7 @@ static struct rte_acl_field_def ipv4_defs[NUM_FIELDS_IPV4] = {
                .input_index = SRCP_DESTP_INPUT_IPV4,
                .offset = sizeof(struct rte_ether_hdr) +
                        sizeof(struct rte_ipv4_hdr) +
-                       offsetof(struct tcp_hdr, dst_port),
+                       offsetof(struct rte_tcp_hdr, dst_port),
        },
 };
 
@@ -493,7 +493,7 @@ init_ipv4_udp_traffic(struct rte_mempool *mp,
 {
        struct rte_ether_hdr pkt_eth_hdr;
        struct rte_ipv4_hdr pkt_ipv4_hdr;
-       struct udp_hdr pkt_udp_hdr;
+       struct rte_udp_hdr pkt_udp_hdr;
        uint32_t src_addr = IPV4_ADDR(2, 2, 2, 3);
        uint32_t dst_addr = IPV4_ADDR(2, 2, 2, 7);
        uint16_t src_port = 32;
@@ -530,7 +530,7 @@ init_ipv4_tcp_traffic(struct rte_mempool *mp,
 {
        struct rte_ether_hdr pkt_eth_hdr;
        struct rte_ipv4_hdr pkt_ipv4_hdr;
-       struct tcp_hdr pkt_tcp_hdr;
+       struct rte_tcp_hdr pkt_tcp_hdr;
        uint32_t src_addr = IPV4_ADDR(1, 2, 3, 4);
        uint32_t dst_addr = IPV4_ADDR(5, 6, 7, 8);
        uint16_t src_port = 16;
@@ -567,7 +567,7 @@ init_ipv4_sctp_traffic(struct rte_mempool *mp,
 {
        struct rte_ether_hdr pkt_eth_hdr;
        struct rte_ipv4_hdr pkt_ipv4_hdr;
-       struct sctp_hdr pkt_sctp_hdr;
+       struct rte_sctp_hdr pkt_sctp_hdr;
        uint32_t src_addr = IPV4_ADDR(11, 12, 13, 14);
        uint32_t dst_addr = IPV4_ADDR(15, 16, 17, 18);
        uint16_t src_port = 10;