ethdev: add fuzzy match in flow API
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 13 Jun 2017 03:07:05 +0000 (23:07 -0400)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 5 Jul 2017 17:51:56 +0000 (19:51 +0200)
commita3a2e2c8f7de433e10b1548df65b20bf10086d9c
treefeb8a07d8529fd4799b174944bdd53dcedc1340b
parent641566b38be46069c796c6e1ce2a89f3df2c2591
ethdev: add fuzzy match in flow API

Add new meta pattern item RTE_FLOW_TYPE_ITEM_FUZZY in flow API.

This is for device that support fuzzy match option.
Usually a fuzzy match is fast but the cost is accuracy.
i.e. Signature Match only match pattern's hash value, but it is
possible that two different patterns have the same hash value.

Matching accuracy level can be configured by subfield threshold.
Driver can divide the range of threshold and map to different
accuracy levels that device support.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
app/test-pmd/cmdline_flow.c
app/test-pmd/config.c
doc/guides/prog_guide/rte_flow.rst
doc/guides/testpmd_app_ug/testpmd_funcs.rst
lib/librte_ether/rte_flow.h