net/ice/base: add mask check to find switch recipe
authorWei Zhao <wei.zhao1@intel.com>
Fri, 10 Apr 2020 00:41:56 +0000 (08:41 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:08 +0000 (13:57 +0200)
commit7e9c8558428e1f437611e1d0398610701e7f8a77
treea409968e924ff0527751927925c7da0db3e4a939
parent312acce5e228250f6e1cd3e34dcd26b8af411419
net/ice/base: add mask check to find switch recipe

In order to find accurate recipe for switch filter, we
need to add mask as an element when searching for recipe.
If we create different rules with the same input set, but
using different masks, then proper recipes should use
those different mask.

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
Tested-by: Nannan Lu <nannan.lu@intel.com>
drivers/net/ice/base/ice_switch.c