test/log: skip regex on Windows
[dpdk.git] / examples / ip_reassembly / main.c
index 547b472..6e4c11c 100644 (file)
@@ -244,7 +244,7 @@ static struct rte_lpm6 *socket_lpm6[RTE_MAX_NUMA_NODES];
 #endif /* RTE_LIBRTE_IP_FRAG_TBL_STAT */
 
 /*
- * If number of queued packets reached given threahold, then
+ * If number of queued packets reached given threshold, then
  * send burst of packets on an output interface.
  */
 static inline uint32_t
@@ -371,7 +371,7 @@ reassemble(struct rte_mbuf *m, uint16_t portid, uint32_t queue,
                eth_hdr->ether_type = rte_be_to_cpu_16(RTE_ETHER_TYPE_IPV4);
        } else if (RTE_ETH_IS_IPV6_HDR(m->packet_type)) {
                /* if packet is IPv6 */
-               struct ipv6_extension_fragment *frag_hdr;
+               struct rte_ipv6_fragment_ext *frag_hdr;
                struct rte_ipv6_hdr *ip_hdr;
 
                ip_hdr = (struct rte_ipv6_hdr *)(eth_hdr + 1);
@@ -873,11 +873,11 @@ setup_queue_tbl(struct rx_queue *rxq, uint32_t lcore, uint32_t queue)
 
        /*
         * At any given moment up to <max_flow_num * (MAX_FRAG_NUM)>
-        * mbufs could be stored int the fragment table.
+        * mbufs could be stored in the fragment table.
         * Plus, each TX queue can hold up to <max_flow_num> packets.
         */
 
-       /* mbufs stored int the gragment table. 8< */
+       /* mbufs stored in the fragment table. 8< */
        nb_mbuf = RTE_MAX(max_flow_num, 2UL * MAX_PKT_BURST) * MAX_FRAG_NUM;
        nb_mbuf *= (port_conf.rxmode.mtu + RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN
                        + BUF_SIZE - 1) / BUF_SIZE;
@@ -895,7 +895,7 @@ setup_queue_tbl(struct rx_queue *rxq, uint32_t lcore, uint32_t queue)
                        "rte_pktmbuf_pool_create(%s) failed", buf);
                return -1;
        }
-       /* >8 End of mbufs stored int the fragmentation table. */
+       /* >8 End of mbufs stored in the fragmentation table. */
 
        return 0;
 }