]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/sfc/sfc_flow.c
ethdev: add hash function to RSS flow API action
[dpdk.git] / drivers / net / sfc / sfc_flow.c
index 1a2c0299c38ed666bc66b845425e8d408fc3377c..779edad0c2b0ec00b6c0efcac2784c419a1a4a25 100644 (file)
@@ -1261,6 +1261,14 @@ sfc_flow_parse_rss(struct sfc_adapter *sa,
                        rxq_hw_index_max = rxq->hw_index;
        }
 
+       switch (rss->func) {
+       case RTE_ETH_HASH_FUNCTION_DEFAULT:
+       case RTE_ETH_HASH_FUNCTION_TOEPLITZ:
+               break;
+       default:
+               return -EINVAL;
+       }
+
        if ((rss->types & ~SFC_RSS_OFFLOADS) != 0)
                return -EINVAL;