eal: fix C++11 compilation
[dpdk.git] / examples / distributor / main.c
index 52266f0..13fb04d 100644 (file)
@@ -44,8 +44,6 @@
 #include <rte_debug.h>
 #include <rte_distributor.h>
 
-#include "main.h"
-
 #define RX_RING_SIZE 256
 #define TX_RING_SIZE 512
 #define NUM_MBUFS ((64*1024)-1)
@@ -96,11 +94,10 @@ static const struct rte_eth_conf port_conf_default = {
                .mq_mode = ETH_MQ_TX_NONE,
        },
        .rx_adv_conf = {
-                       .rss_conf = {
-                               .rss_hf = ETH_RSS_IPV4 | ETH_RSS_IPV6 |
-                                       ETH_RSS_IPV4_TCP | ETH_RSS_IPV4_UDP |
-                                       ETH_RSS_IPV6_TCP | ETH_RSS_IPV6_UDP,
-                       }
+               .rss_conf = {
+                       .rss_hf = ETH_RSS_IP | ETH_RSS_UDP |
+                               ETH_RSS_TCP | ETH_RSS_SCTP,
+               }
        },
 };
 
@@ -492,7 +489,7 @@ parse_args(int argc, char **argv)
 
 /* Main function, does initialization and calls the per-lcore functions */
 int
-MAIN(int argc, char *argv[])
+main(int argc, char *argv[])
 {
        struct rte_mempool *mbuf_pool;
        struct rte_distributor *d;