update copyright date to 2013
[dpdk.git] / examples / dpdk_qat / main.c
index 2a4a0ec..0c89670 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  * 
- *   Copyright(c) 2010-2012 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
  *   All rights reserved.
  * 
  *   Redistribution and use in source and binary forms, with or without 
@@ -30,7 +30,6 @@
  *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  * 
- *  version: DPDK.L.1.2.3-3
  */
 
 #include <stdio.h>
@@ -170,10 +169,11 @@ static struct rte_eth_conf port_conf = {
        .rx_adv_conf = {
                .rss_conf = {
                        .rss_key = NULL,
-                       .rss_hf = ETH_RSS_IPV4,
+                       .rss_hf = ETH_RSS_IPV4 | ETH_RSS_IPV6,
                },
        },
        .txmode = {
+               .mq_mode = ETH_DCB_NONE,
        },
 };
 
@@ -319,6 +319,7 @@ nic_tx_send_packet(struct rte_mbuf *pkt, uint8_t port)
 static inline uint8_t
 get_output_port(uint8_t input_port)
 {
+       RTE_BUILD_BUG_ON((RTE_MAX_ETHPORTS & 1) != 0);
        return (uint8_t)(input_port ^ 1);
 }
 
@@ -493,10 +494,10 @@ static void
 print_usage(const char *prgname)
 {
        printf ("%s [EAL options] -- -p PORTMASK [--no-promisc]"
-               "  [--config (port,queue,lcore)[,(port,queue,lcore]]\n"
+               "  [--config '(port,queue,lcore)[,(port,queue,lcore)]'\n"
                "  -p PORTMASK: hexadecimal bitmask of ports to configure\n"
                "  --no-promisc: disable promiscuous mode (default is ON)\n"
-               "  --config (port,queue,lcore): rx queues configuration\n",
+               "  --config '(port,queue,lcore)': rx queues configuration\n",
                prgname);
 }
 
@@ -796,7 +797,7 @@ MAIN(int argc, char **argv)
                        fflush(stdout);
 
                        ret = rte_eth_rx_queue_setup(portid, queueid, nb_rxd,
-                                       socketid, &rx_conf, pktmbuf_pool[socketid]);
+                                       socketid, &rx_conf, pktmbuf_pool[socketid]);
                        if (ret < 0)
                                rte_panic("rte_eth_rx_queue_setup: err=%d,"
                                                "port=%d\n", ret, portid);