mbuf: rename in_port to just port
[dpdk.git] / examples / dpdk_qat / main.c
index a117d66..1599a0a 100644 (file)
@@ -170,7 +170,7 @@ static struct rte_eth_conf port_conf = {
        .rx_adv_conf = {
                .rss_conf = {
                        .rss_key = NULL,
-                       .rss_hf = ETH_RSS_IPV4 | ETH_RSS_IPV6,
+                       .rss_hf = ETH_RSS_IP,
                },
        },
        .txmode = {
@@ -384,7 +384,7 @@ main_loop(__attribute__((unused)) void *dummy)
                        }
                }
 
-               port = dst_ports[pkt->pkt.in_port];
+               port = dst_ports[pkt->port];
 
                /* Transmit the packet */
                nic_tx_send_packet(pkt, (uint8_t)port);
@@ -543,7 +543,7 @@ parse_config(const char *q_arg)
                if(size >= sizeof(s))
                        return -1;
 
-               rte_snprintf(s, sizeof(s), "%.*s", size, p);
+               snprintf(s, sizeof(s), "%.*s", size, p);
                if (rte_strsplit(s, sizeof(s), str_fld, _NUM_FLD, ',') != _NUM_FLD)
                        return -1;
                for (i = 0; i < _NUM_FLD; i++) {
@@ -654,7 +654,7 @@ init_mem(void)
                        return -1;
                }
                if (pktmbuf_pool[socketid] == NULL) {
-                       rte_snprintf(s, sizeof(s), "mbuf_pool_%d", socketid);
+                       snprintf(s, sizeof(s), "mbuf_pool_%d", socketid);
                        pktmbuf_pool[socketid] =
                                rte_mempool_create(s, NB_MBUF, MBUF_SIZE, 32,
                                        sizeof(struct rte_pktmbuf_pool_private),