net/ice/base: ignore inverse switch recipes
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 29 Aug 2019 02:36:56 +0000 (10:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:53 +0000 (15:00 +0200)
commit3ba381eb657612f64e48b4d960e6faed0f34280f
treece2793f35e8c8834bc6b0a9a4ef26656125bd533
parent8c1c61f970009e732280738c9155cc8b5e5c8fea
net/ice/base: ignore inverse switch recipes

When looking for an existing recipes, never choose an inverse
recipe as these are used for anti-spoofing. Choosing inverse
recipes for source MAC address rules was causing errors while
adding the rule.

Signed-off-by: Dan Nowlin <dan.nowlin@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/base/ice_switch.c