]> git.droids-corp.org - dpdk.git/blobdiff - examples/ip_pipeline/link.c
examples/ip_pipeline: fix RSS
[dpdk.git] / examples / ip_pipeline / link.c
index 2ccfea4fac05c839dbebd5bd2c1be0c12ab43fb0..392a890fbe7122bdfac0c5c9f17a7e07470ef934 100644 (file)
@@ -158,12 +158,9 @@ link_create(const char *name, struct link_params *params)
        memcpy(&port_conf, &port_conf_default, sizeof(port_conf));
        if (rss) {
                port_conf.rxmode.mq_mode = ETH_MQ_RX_RSS;
-               if (port_info.flow_type_rss_offloads & ETH_RSS_IPV4)
-                       port_conf.rx_adv_conf.rss_conf.rss_hf |=
-                               ETH_RSS_IPV4;
-               if (port_info.flow_type_rss_offloads & ETH_RSS_IPV6)
-                       port_conf.rx_adv_conf.rss_conf.rss_hf |=
-                               ETH_RSS_IPV6;
+               port_conf.rx_adv_conf.rss_conf.rss_hf =
+                       (ETH_RSS_IP | ETH_RSS_TCP | ETH_RSS_UDP) &
+                       port_info.flow_type_rss_offloads;
        }
 
        cpu_id = (uint32_t) rte_eth_dev_socket_id(port_id);