ethdev: add hash function to RSS flow API action
[dpdk.git] / drivers / net / e1000 / igb_rxtx.c
index 45bb345..d5c1cd3 100644 (file)
@@ -2905,6 +2905,7 @@ igb_rss_conf_init(struct igb_rte_flow_rss_conf *out,
            in->queue_num > RTE_DIM(out->queue))
                return -EINVAL;
        out->conf = (struct rte_flow_action_rss){
+               .func = in->func,
                .types = in->types,
                .key_len = in->key_len,
                .queue_num = in->queue_num,
@@ -2919,7 +2920,8 @@ int
 igb_action_rss_same(const struct rte_flow_action_rss *comp,
                    const struct rte_flow_action_rss *with)
 {
-       return (comp->types == with->types &&
+       return (comp->func == with->func &&
+               comp->types == with->types &&
                comp->key_len == with->key_len &&
                comp->queue_num == with->queue_num &&
                !memcmp(comp->key, with->key, with->key_len) &&